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 battlePetTypeID
battlePetTypeID
ID English NameEnglish: _G["PET_TYPE_SUFFIX"][id]
Localized: _G["BATTLE_PET_NAME_"..id]
1
Humanoid
2
Dragonkin
3
Flying
4
Undead
5
Critter
6
Magic
7
Elemental
8
Beast
9
Aquatic
10
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 history

See also