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 UnitIsPartyLeader

From Wowpedia
Jump to: navigation, search

Removed

use UnitIsGroupLeader instead.

Returns 1 if the unit is party leader, nil otherwise.

isTrue = UnitIsPartyLeader("arg1")

Parameters

Arguments

arg1 
String - Unit who should be checked

Returns

isTrue 
1 or nil

Example

local TargetIsLeader = UnitIsPartyLeader("target")

Result

TargetIsLeader = 1   - If your target is leader of their party
TargetIsLeader = nil - If your target is not leader of their party

Details

Seems to work on players outside of their party.

Patch changes