C_PetBattles.GetNumPets

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 5.0.4

Returns the number of pets that the specified owner has in the pet battle.

numPets = C_PetBattles.GetNumPets(petOwner)

Arguments

petOwner
number
Value Enum Description
0 LE_BATTLE_PET_WEATHER
1 LE_BATTLE_PET_ALLY Current player
2 LE_BATTLE_PET_ENEMY Opponent

Returns

numPets
number - Amount of pets that the current owner has in the pet battle (always 1-3).

Patch changes

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