Script::HasPetSpells
function · ui · primitive
- Address
0x4b4410· 194 bytes, up to0x4b44d1- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the pet spell count and the class's pet token, or nil, nil
- 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 5
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- lua_pushnil lua
- lua_pushnumber lua
- lua_pushstring lua
Calls and jumps by a bare address, from tables/calls.tsv.