Script::IsPetAttackActive
function · ui · primitive
- Address
0x4be0e0· 152 bytes, up to0x4be177- Signature
int __fastcall (lua_State *L)- Meaning
- Returns a boolean: the slot is the attack command and the attack latch is set
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/petbar#pet-predicates-and-cooldowns
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 5
- __ftol crt
- lua_isnumber lua
- lua_tonumber lua
- lua_pushboolean lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.