Wowpedia
Advertisement
Wowpedia
240,452
pages
Game Flavors
Links
Patch
Added in 5.0.4

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 
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


Patch history

See also

Advertisement