Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

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