Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns very detailed information about a specific ability.
id, name, icon, maxCooldown, unparsedDescription, numTurns, petType, noStrongWeakHints = C_PetBattles.GetAbilityInfoByID(abilityID)
Arguments[]
- abilityID
- number - ID of the ability.
Returns[]
- abilityID
- 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 battlePetTypeID⊞
ID | English Name† |
---|---|
Humanoid | |
Dragonkin | |
Flying | |
Undead | |
Critter | |
Magic | |
Elemental | |
Beast | |
Aquatic | |
Mechanical |
- noStrongWeakHints
- boolean - True if the ability should not show Strong/Weak indicators, false otherwise.
Details[]
- Despite falling under the realm of C_PetBattles, this function is incredibly useful outside Pet Battles too because it provides far more information than its C_PetJournal counterpart - C_PetJournal.GetPetAbilityInfo.
Patch changes[]
Patch 5.0.4 (2012-08-28): Added.
See also[]
- C_PetJournal.GetPetAbilityInfo - Get information about a pet ability when you don't know the abilityID
- C_PetJournal.GetPetAbilityList - Get list of abilities for the specified pet species
- Pet Battle Functions