Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns ability information for an ability in a slot on a pet that you own.
id, name, icon, maxCooldown, unparsedDescription, numTurns, petType, noStrongWeakHints = C_PetBattles.GetAbilityInfo(petOwner, petIndex, abilityIndex)
Arguments[]
- 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[]
- id
- number - The ID of the ability returned back.
- name
- string - The name of the ability.
- icon
- string - The full path to the ability's icon.
- maxCooldown
- number - The normal cooldown period for the ability.
- unparsedDescription
- string - The ability's description in its pure and unparsed form.
- numTurns
- number - Duration of the ability. This is typically 1, but some abilities last multiple rounds.
- petType
- number - Returned values are 1-10, based on the pet's type.
- noStrongWeakHints
- boolean - True if the ability should not show Strong/Weak indicators, false otherwise.
Patch changes[]
Patch 5.0.4 (2012-08-28): Added.
See also[]
- C_PetBattles.GetAbilityInfoByID - an alternative way to get the same information
- C_PetJournal.GetPetAbilityList - the slot numbers are the indexes in the idTable from this function
- C_PetBattles.GetAbilityEffectInfo - return ability specific effects
- Pet Battle Functions