Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
→ WoW API
Returns 1 if the player has a pet User Interface.
hasUI, isHunterPet = HasPetUI();
- hasUI, isHunterPet
- The number 1 if the player has a pet User Interface, nil if he does not.
- The number 1 if the pet is a hunter pet, nil if it is not.
if ( HasPetUI() ) then DoPetStuff(); end
local hasUI, isHunterPet = HasPetUI(); if hasUI then if isHunterPet then DoHunterPetStuff(); -- For hunters else DoMinionStuff(); -- For Warlock minions end end
- Known Issues
Does not work for Frost Mages' Water Elemental pets. Even with a Water Elemental out (and the Pet UI showing), HasPetUI() returns nil,nil