~/forever/addon-api/function/UnitThreatLeadSituation
UnitThreatLeadSituation
documented function · Unit
UnitThreatLeadSituation(unit, mobGUID) : resultReturns a threat state (0-3; representing none, yellow, orange, red) that indicates how far the provided unit is above the secondmost threat on the provided mob. If the unit is not first on threat, will always return red. Can return nil if the provided mob does not exist.
──ARGUMENTS
- unit
- UnitToken
- mobGUID
- UnitToken
──RETURNS
- result
- number, optional
──DETAILS
- Secret When Unit Threat State Restricted
- true
- Secret Arguments
- AllowedWhenUntainted
──VERSION HISTORY
Present since at least 1.60.1.70707, the first build we track.