WoW API: UnitIsPartyLeader

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API UnitIsPartyLeader to API UnitIsPartyLeader without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < UnitIsPartyLeader

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.