benilla-re systems structs docs

Script::GetPetActionCooldown

function · ui · primitive

Address
0x4bdfa0 · 259 bytes, up to 0x4be0a2
Signature
int __fastcall (lua_State *L)
Meaning
Returns a pet spell slot's cooldown start and duration in seconds and its enable flag
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/petbar#pet-predicates-and-cooldowns
Test
ui::luabind_4bdfa0_get_pet_action_cooldown

Finding: Pet predicates and cooldowns in ui: the pet bar and the form bar

IsPetAttackActive(index) pushes a boolean, true for a pet guid, an index below 10, a command slot of action 2 and the latch set. HasPetUI pushes two values: 1 when the pet resolves, its object type lacks the player bit (0x10) and UNIT_FIELD_PETNUMBER is nonzero, else nil; and 1 when 0x6116e0 holds, else nil. GetPetActionCooldown(index) returns start and duration times 0.001 and the enable flag for a spell slot (types 1 to 5) from the pet's bank (0x6e2ea0 with bank 1), and zeros for anything else.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 6

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