DoesSpellOpenGameObjectLock
function · objectlayer · primitive
- Address
0x5f8260· 359 bytes, up to0x5f83c6- Meaning
- Tests whether a spell opens a game object's lock by skill or by the item it targets
- Confidence
- verified, proof one
- Finding
- objectlayer/gameobjects#lock-actions-and-spell-targets
Finding: Lock actions and spell targets in objectlayer: game objects
0x5f81d0(action) tests a lock slot's action against the object's state: action 4 needs the
destroyed state 2; the others refuse it, actions 0, 1 and 3 also need state 1; action 0 needs
GAMEOBJECT_FLAGS bit 0x2 clear, 1 needs it set, 2 needs state 0. 0x5f8260(&guid, spell), the
pending spell's target test, passes when an effect 33 matches a skill slot, or an effect 59 an
item slot of the item the GUID names, whose action holds.
The derivation is in the doc.
Callers 2
- SpellTargetCanPickGameObject spell
- SpellCanTargetObject spell
Callees 3
- ClntObjMgrObjectPtr objectlayer
- CGGameObject_C::GetLockRow objectlayer
- CGGameObject_C::LockActionAllowed objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.