API UnitPlayerControlled

Return whether the "unit" is controlled by a player or an NPC. UnitIsPlayerControlled = UnitPlayerControlled("unit")

Arguments

 * unit : - The UnitId to select as a target. Using a unit's name as the unit ID only works if the unit is a member of your party.

Returns

 * UnitIsPlayerControlled : - Returns true if the "unit" is controlled by a player. Returns false if the "unit" is an NPC.