Wowpedia
Advertisement
Wowpedia
240,485
pages
Game Flavors
Links
Patch
Added in 1.1.0 / 1.13.2

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
Advertisement