v0.13.8

UnitDetailedThreatSituation

functionimplementedavailable in: camelot

Returns detailed info for the threat status of one unit against another.

signaturewowlua
function UnitDetailedThreatSituation(    unit: string,    mobGUID: string): (boolean?, number?, number?, number?, number?)

Parameters

nametypedescription
unitstringThe player or pet whose threat to request.
mobGUIDstringThe NPC whose threat table to query.

Returns

#nametypedescription
1isTankingboolean?Returns true if the unit is the primary threat target of the mobUnit, returns false otherwise.
2statusnumber?Threat status of the unit on the mobUnit.
3scaledPercentagenumber?The unit's threat percentage against mobUnit. At 100% the unit will become the primary target. This value is also scaled the closer the unit is to the mobUnit.
4rawPercentagenumber?The unit's threat percentage against mobUnit relative to the threat of mobUnit's primary target. Can be greater than 100, up to 255. Stops updating when you become the primary target.
5rawThreatnumber?

Blizzard's documentation says it may return nothing.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Unit system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.