API C_PetBattles.GetNumPets

From Wowpedia
Jump to: navigation, search

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

numPets = C_PetBattles.GetNumPets(petOwner)

Arguments

petOwner
Number - 1: Current player, 2: Opponent

Returns

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

Patch history

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

See also