benilla-re systems structs docs

TogglePetSlotAutocast

function · ui · primitive

Address
0x4bcbb0 · 254 bytes, up to 0x4bccad
Signature
void __fastcall (uint32_t slot)
Meaning
Flips the autocast bit of a pet slot, stores it, sends it and signals PET_BAR_UPDATE
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 8

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