v0.13.8

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

nametypedescription
petOwnernumber1: Current player, 2: Opponent
petIndexnumberAccepted 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.
abilityIndexnumberAccepted values are 1-3, corresponding to the ability in the slot with that number.

Returns

#nametypedescription
1idnumberThe ID of the ability returned back.
2namestringThe name of the ability.
3iconstringThe full path to the ability's icon.
4maxCooldownnumberThe normal cooldown period for the ability.
5unparsedDescriptionstringThe ability's description in its pure and unparsed form.
6numTurnsnumberDuration of the ability. This is typically 1, but some abilities last multiple rounds.
7petTypenumberReturned values are 1-10, based on the pet's type.
8noStrongWeakHintsbooleanTrue 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 ↗.