CGItem_C::HasUseSpell
function · objectlayer · primitive
- Address
0x5d8c00· 121 bytes, up to0x5d8c78- Meaning
- Returns whether an item's record has a use spell: a spell whose trigger is 0
- Confidence
- verified, proof one
- Finding
- objectlayer/items#item-use-gates
Finding: Item use gates in objectlayer: items
An equippable item with a use spell must be held by the active player in one of the first 23
slots of its list, not broken, and not a disarmed hand's. Then a use spell whose record's +0x1d8
is set and whose aura is on the player with bit 0 of its aura flags is cancelled instead of
cast. A bind-on-use item (+0x194 = 3) not yet bound
asks first: unless confirmed, it keeps the item and target GUIDs and signals
USE_BIND_CONFIRM; the confirmation 0x5d9290 uses the kept item with confirmed 1. Otherwise
CastSpellAsActivePlayer casts the use spell with the item at the target.
The derivation is in the doc.
Callers 2
- CGGameUI::SetCursorItem ui
- CGItem_C::Use objectlayer
Callees 2
- ClntObjMgrGetActivePlayer objectlayer
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
Calls and jumps by a bare address, from tables/calls.tsv.