C_PetBattles. GetAbilityInfo
functionguessedavailable in: camelot
Returns ability information for an ability in a slot on a pet that you own.
The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.
Parameters
| name | type | description |
|---|---|---|
petOwner | number | 1: Current player, 2: Opponent |
petIndex | number | Accepted values are 1-3, but the order is based off of the initial order. Which pet is currently active is irrelevant to the index, if it was your 3rd pet when you entered battle, it will always be 3 on the index. |
abilityIndex | number | Accepted values are 1-3, corresponding to the ability in the slot with that number. |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | id | number | The ID of the ability returned back. |
| 2 | name | string | The name of the ability. |
| 3 | icon | string | The full path to the ability's icon. |
| 4 | maxCooldown | number | The normal cooldown period for the ability. |
| 5 | unparsedDescription | string | The ability's description in its pure and unparsed form. |
| 6 | numTurns | number | Duration of the ability. This is typically 1, but some abilities last multiple rounds. |
| 7 | petType | number | Returned values are 1-10, based on the pet's type. |
| 8 | noStrongWeakHints | boolean | True if the ability should not show Strong/Weak indicators, false otherwise. |
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 ↗.