benilla-re systems structs docs

SyncPetSlotToSpellArray

function · ui · primitive

Address
0x4bd190 · 64 bytes, up to 0x4bd1cf
Signature
void __thiscall (void *this)
Meaning
Writes a type 1 slot word, flags included, into the matching raw pet spell
Confidence
verified, proof one
Finding
ui/petbar#pet-autocast

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

TogglePetAutocast(index) with a pet action on the cursor drops it; otherwise 0x4bcbb0(slot) runs the action and pet gates and does nothing unless bit 31 of the slot word is set. It flips bit 30 in the word, stores it, copies it into the raw pet spell array (0x4bd190), sends opcode 0x174 (u64 pet guid, u32 slot, u32 word) and signals PET_BAR_UPDATE. The bar repaints without waiting for the server. ToggleSpellAutocast (ui/spellbook) is a different message, 0x2f3.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.