nameplates: only show stun border if no target detected

This commit is contained in:
shagu
2025-02-23 09:07:46 +01:00
parent 83aeb1a236
commit e813f32a7e
+1 -1
View File
@@ -48,7 +48,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
color = combatstate.THREAT
elseif C.nameplates.ccombatnothreat == "1" and UnitExists(target) then
color = combatstate.NOTHREAT
elseif C.nameplates.ccombatstun == "1" and not UnitIsPlayer(guid) then
elseif C.nameplates.ccombatstun == "1" and not UnitExists(target) and not UnitIsPlayer(guid) then
color = combatstate.STUN
end
end