Add files via upload
This commit is contained in:
@@ -439,14 +439,18 @@ function addon.Threat:GetThreatPercent(unit)
|
||||
if playerPct > 0 then
|
||||
return playerPct, playerSit
|
||||
end
|
||||
return 0, 0
|
||||
-- Player has no threat yet, but a party member is in
|
||||
-- the aggro seat. Show a low visible bar so the plate
|
||||
-- is still displayed (bar hides completely at pct=0).
|
||||
return 8, 0
|
||||
else
|
||||
-- Mob targets an outsider, or we can't see its target.
|
||||
-- Show player's own threat only.
|
||||
if playerPct > 0 then
|
||||
return playerPct, playerSit
|
||||
end
|
||||
return 0, 0
|
||||
-- Fall through: let ThreatEngine / heuristic decide
|
||||
-- below instead of hiding the bar outright.
|
||||
end
|
||||
end
|
||||
|
||||
@@ -576,12 +580,13 @@ function addon.Threat:GetThreatPercent(unit)
|
||||
-- has aggro, NOT the player. Showing 100% here would
|
||||
-- incorrectly light every mob in party combat up as full
|
||||
-- aggro on the player. Show a low estimate instead — the
|
||||
-- player is not in the aggro seat.
|
||||
-- player is not in the aggro seat, but the bar must still
|
||||
-- be visible so users know the mob is engaged.
|
||||
if UnitIsUnit("target", unit) then
|
||||
threatPct = 20
|
||||
situation = 0
|
||||
else
|
||||
threatPct = 0
|
||||
threatPct = 8
|
||||
situation = 0
|
||||
end
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user