API C_PetJournal.GetPetAbilityInfo

From Wowpedia
Jump to: navigation, search

Returns information about a battle pet ability.

name, icon, type = C_PetJournal.GetPetAbilityInfo(abilityID)

Arguments

abilityID 
Number - battle pet ability ID, as returned by C_PetJournal.GetPetAbilityList, e.g. 362 for [Howl].

Returns

name 
String - Ability name, e.g. "Howl"
icon 
String - Ability icon texture path, e.g. "INTERFACE\ICONS\ABILITY_SHAMAN_FREEDOMWOLF.BLP"
type 
Number - Battle pet type this ability belongs to, as an index into the global PET_TYPE_SUFFIX, e.g. 8 for "Beast"
  • 1: Magic
  • 2: Dragonkin
  • 3: Flying
  • 4: Undead
  • 5: Critter
  • 6: Magic
  • 7: Elemental
  • 8: Beast
  • 9: Aquatic
  • 10: Mechanical

Patch history

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

See also