![]() |
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns true if the player currently has an active (hunter) pet out.
hasUI, isHunterPet = HasPetUI()
Returns
- hasUI
- boolean -
Trueif the player has a pet User Interface,Falseif he does not. - isHunterPet
- boolean -
Trueif the pet is a hunter pet,Falseif it is not.
Example
local hasUI, isHunterPet = HasPetUI();
if hasUI then
if isHunterPet then
DoHunterPetStuff(); -- For hunters
else
DoMinionStuff(); -- For Warlock minions
end
end
