C_PetJournal. GetPetStats
functionguessedavailable in: camelot
Returns the stats of a collected battle pet.
The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.
Parameters
| name | type | description |
|---|---|---|
petID | string | GUID of pet in Pet Journal (different than speciesID and displayID) |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | health | number | Current health of the pet. Zero or negative if the pet is dead. |
| 2 | maxHealth | number | Maximum health of the pet |
| 3 | power | number | |
| 4 | speed | number | |
| 5 | rarity | number | 1: "Poor", 2: "Common", 3: "Uncommon", 4: "Rare", 5: "Epic", 6: "Legendary" |
In wowlua's emulated client
guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean
sources
Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.