FindPetSpell
function · ui · primitive
- Address
0x4bd160· 44 bytes, up to0x4bd18b- Meaning
- Returns the address of the last pet spell dword whose low 16 bits equal a spell id, or 0
- Confidence
- verified, proof one
- Finding
- ui/spellbook#book-spell-functions
Finding: Book spell functions in ui: the spell book
GetSpellCooldown (0x4b40a0) returns start and duration times 0.001 and the enable flag, from
0x6e2ea0 for the slot's spell. GetSpellAutocast (0x4b4180) returns two values, nil unless the slot
is a pet-book spell, then bits 31 and 30 of its pet spell flags (0x4bd160) as 1 or nil.
ToggleSpellAutocast (0x4b4240) toggles a pet-book spell through 0x4bccb0. IsSpellPassive
(0x4b44e0) pushes 1 for Attributes & 0x40, else nil. PlayerHasSpells (0x4b43f0) always pushes 1.
HasPetSpells (0x4b4410) pushes nil, nil for an empty pet book, else the pet spell count and the
pet token of the player's class record (+0x10), or PET without a player.
The derivation is in the doc.
Callers 4
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.