WoWInterface - View Single Post - API UnitExists("pet")
View Single Post
12-29-19, 09:43 PM   #4
A Cobalt Mageweaver
jeruku's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 215
You can use UnitIsVisible to make sure you even have a pet. The function HidePetActionBar is used in the default UI whenever the pet is dismissed, this includes when it "vanishes," so hooking it works alongside UnitIsVisible to determine whether it's dead or vanished/despawned.
"I have not failed, I simply found 10,000 ways that did not work." - Thomas Edison
  Reply With Quote