Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!
Returns a pet's stats from the Pet Journal
health, maxHealth, power, speed, rarity = C_PetJournal.GetPetStats("petID")
- String - GUID of pet in Pet Journal (different than speciesID and displayID)
- Number - Current health of the pet. Zero or negative if the pet is dead.
- Number - Maximum health of the pet
- Number - 1: "Poor", 2: "Common", 3: "Uncommon", 4: "Rare", 5: "Epic", 6: "Legendary"
Use _G["BATTLE_PET_BREED_QUALITY"..rarity] to convert the rarity to a String while drawing on Blizzard's pre-existing localization information.
Patch 5.0.4 (2012-08-28): Added.