Script::HasPetUI
function · ui · primitive
- Address
0x4be670· 141 bytes, up to0x4be6fc- Signature
int __fastcall (lua_State *L)- Meaning
- Returns whether the pet has a UI and whether it passes the hunter pet test
- 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 4
- ClntObjMgrObjectPtr objectlayer
- CGUnit_C::IsPlayerOrHunterPet objectlayer
- lua_pushnil lua
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.