Script::ToggleSpellAutocast
function · ui · orchestration
- Address
0x4b4240· 93 bytes, up to0x4b429c- Signature
int __fastcall (lua_State *L)- Meaning
- Toggles the autocast of a pet-book spell
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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 0
None by a direct call or jump.
Callees 3
- ReadBookSlotArgs ui
- SendSpellAutocast ui
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.