API C_PetBattles.GetAbilityInfoByID

From Wowpedia
Jump to: navigation, search

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 pet's type.
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 history

Mists of Pandaria Patch 5.0.4 (2012-08-28): Added.

See also