Returns whether a unit is the leader of any group


See also Unit functions, Raid functions, Party functions.

Signature:

uLead = UnitLeadsAnyGroup("unit")

Arguments:

  • unit - A unit to query (string, unitID)

Returns:

  • uLead - True if (name) is the leader of any group or raid (boolean)

Examples:

local uLeads = UnitLeadsAnyGroup(name)
if uLeads then
print(name.." in group "..grp.." leads a group")
end