mNo edit summary Tag: WoW API docs |
m (Remove elinks) Tag: WoW API docs |
||
Line 18: | Line 18: | ||
end |
end |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
− | |||
− | == External links == |
||
− | <!-- Please read https://wow.gamepedia.com/Wowpedia:External_links_policy before adding new links. --> |
||
− | {{Elinks-api}} |
Revision as of 00:29, 8 June 2021
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns True
if the player has a pet User Interface.
hasUI, isHunterPet = HasPetUI();
Returns
- hasUI
- boolean -
True
if the player has a pet User Interface,False
if he does not. - isHunterPet
- boolean -
True
if the pet is a hunter pet,False
if it is not.
Example
local hasUI, isHunterPet = HasPetUI();
if hasUI then
if isHunterPet then
DoHunterPetStuff(); -- For hunters
else
DoMinionStuff(); -- For Warlock minions
end
end