Add files via upload

This commit is contained in:
Relationship
2026-07-12 14:57:27 +01:00
committed by GitHub
parent d0329d309e
commit 28ef2ed7c9
7 changed files with 621 additions and 105 deletions
+9 -4
View File
@@ -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