Returns information on a battle pet's ability
See also Pet battles functions.
Signature:
id,
name,
icon,
maxcooldown,
desc,
numTurns,
abilityPetType,
nostrongweak
=
C_PetBattles.GetAbilityInfo(owner,
slotnumber,
spellIndex)
Arguments:
owner
- The owner of the pet (number
)1
- The player2
- The opponent
slotnumber
- The pet slot number (number
)spellIndex
- The ability slot number (number
)
Returns:
id
- The ID number of the ability (number
)name
- The name of the ability (string
)icon
- The icon of the ability (string
)maxcooldown
- The max cooldown of the ability (number
)desc
- The description of the ability (string
)numTurns
- The number of turns it takes (number
)abilityPetType
- The family the ability belongs to (number
)nostrongweak
- Whether the ability has a strong/weak against (boolean
)