Script::GetSpellCooldown
function · ui · primitive
- Address
0x4b40a0· 214 bytes, up to0x4b4175- Signature
int __fastcall (lua_State *L)- Meaning
- Returns a book spell's cooldown start and duration in seconds and its enable flag
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/spellbook#book-spell-functions
- Test
ui::luabind_4b40a0_get_spell_cooldown
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 4
- ReadBookSlotArgs ui
- GetSpellCooldown spell
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.