API UnitBattlePetSpeciesID

From Wowpedia
Jump to: navigation, search

Returns the battle pet species ID of a specified unit.

speciesID = UnitBattlePetSpeciesID("unit")

Arguments

unit 
String (UnitId) - unit to return the species ID of.

Returns

speciesID 
Number - battle pet species ID of the specified unit; 71 if the unit is a player, or nil if the unit is not a battle pet.

See also

Patch history

Mists of Pandaria Patch 5.1.0 (2012-11-27): Added.