API UnitIsGroupLeader

Returns whether the unit is the leader of a party or raid. isLeader = UnitIsGroupLeader(unit [, partyCategory])

Arguments

 * unit : string : UnitId
 * partyCategory : number ?

Returns

 * isLeader : boolean