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!

API C_PetJournal.GetPetStats

From Wowpedia
Jump to: navigation, search

Returns a pet's stats from the Pet Journal

health, maxHealth, power, speed, rarity = C_PetJournal.GetPetStats("petID")

Arguments

petID
String - GUID of pet in Pet Journal (different than speciesID and displayID)

Returns

health
Number - Current health of the pet. Zero or negative if the pet is dead.
maxHealth
Number - Maximum health of the pet
power
Number
speed
Number
rarity
Number - 1: "Poor", 2: "Common", 3: "Uncommon", 4: "Rare", 5: "Epic", 6: "Legendary"

Notes

Use _G["BATTLE_PET_BREED_QUALITY"..rarity] to convert the rarity to a String while drawing on Blizzard's pre-existing localization information.

Patch history

Mists of Pandaria Patch 5.0.4 (2012-08-28): Added.