API UnitIsBattlePet

From Wowpedia
Jump to: navigation, search

Returns whether the unit is a Battle Pet.

isBattlePet = UnitIsBattlePet("unit")

Arguments

unit 
String (UnitId) - unit to check, e.g. "target".

Returns

isBattlePet 
Boolean - true if the unit is a battle pet (including tamer NPCs' pets and wild battle pets), false otherwise.

See also

Patch history

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