UnitIsGroupLeader
Jump to navigation
Jump to search
Returns whether the unit is the leader of a party or raid.
isLeader = UnitIsGroupLeader(unit [, partyCategory])
Arguments
- unit
- string : UnitId
- partyCategory
- number?
- If omitted, defaults to
INSTANCE
if applicable,HOME
otherwise.
- If omitted, defaults to
Value | Enum | Description |
---|---|---|
1 | LE_PARTY_CATEGORY_HOME | Home-realm group, i.e. a manually created group. |
2 | LE_PARTY_CATEGORY_INSTANCE | Instance-specific temporary group, e.g. Battlegrounds, Dungeon Finder |
Returns
- isLeader
- boolean
Patch changes
Patch 5.0.4 (2012-08-28): Added.