WoW:API UnitDetailedThreatSituation: Difference between revisions

→‎Returns: fixed indentation
(fix cats)
(→‎Returns: fixed indentation)
Line 17: Line 17:
=== Returns ===
=== Returns ===
<!-- List each return value, together with its type -->
<!-- List each return value, together with its type -->
:;isTanking : Integer - returns 1 if the unit is primary threat target of the mob (is tanking), or nil otherwise.
:;isTanking : Boolean - returns true if the unit is primary threat target of the mob (is tanking), or false otherwise.
:;status : Integer - returns the [[API TYPE ThreatStatus|threat status]] for the unit on the mob, or nil if unit is not on mob's threat table. (3 = securely tanking, 2 = insecurely tanking, 1 = not tanking but higher threat than tank, 0 = not tanking and lower threat than tank)
:;status : Integer - returns the [[API TYPE ThreatStatus|threat status]] for the unit on the mob, or nil if unit is not on mob's threat table. (3 = securely tanking, 2 = insecurely tanking, 1 = not tanking but higher threat than tank, 0 = not tanking and lower threat than tank)
:;threatpct : Number - returns the unit's threat on the mob as a percentage of the amount required to pull aggro, scaled according to the unit's range from the mob.  At 100 the unit will pull aggro.  Returns 100 if the unit is tanking and nil if the unit is not on the mob's threat list.
:;threatpct : Number - returns the unit's threat on the mob as a percentage of the amount required to pull aggro, scaled according to the unit's range from the mob.  At 100 the unit will pull aggro.  Returns 100 if the unit is tanking and nil if the unit is not on the mob's threat list.
Anonymous user