benilla-re systems structs docs

s_petAttackLatch

global · ui

Address
0xb714b0 · 4 bytes, up to 0xb714b3
Type
uint32_t
Meaning
Holds 1 while the pet attack command is active, 0 at load
Confidence
verified, proof one
Finding
ui/petbar#pet-state

Finding: Pet state in ui: the pet bar and the form bar

The client keeps the pet's guid at 0xb714a0 (a zero guid is no pet), the tick at which a possession ends at 0xb714a8, an attack latch at 0xb714b0, ten slot words at 0xb71438 and a mode word at 0xb71468: byte 0 is the reaction (0 passive, 1 defensive, 2 aggressive), byte 1 the command (0 wait, 1 follow), and bit 27 comes only from the server. The slot word is type = byte 3 & 0x3f, action = low 16 bits, bit 31 autocast allowed and bit 30 autocast enabled. Types 1 to 5 are spells, 6 a reaction and 7 a command; a zero word is an empty slot.

The derivation is in the doc.