API C_PetBattles.IsPlayerNPC

From Wowpedia
Jump to: navigation, 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

See also