C_PetBattles.IsPlayerNPC

From Warcraft Wiki
Jump to navigation Jump to search

Returns whether or not a pet battle team is controlled by an NPC.

isNPC = C_PetBattles.IsPlayerNPC(petOwner)

Arguments

petOwner
number - 1: Current player, 2: Opponent.

Returns

isNPC
boolean - false if the pet owner is a player, true otherwise.

Patch changes

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

See also