hide raid marks not in current combat

This commit is contained in:
pepopo978
2024-06-30 12:18:45 -07:00
parent cd65ee960a
commit 7730729a38
+2 -2
View File
@@ -66,8 +66,8 @@ function Cursive:ShouldDisplayGuid(guid)
return true
end
-- always show raid marks if attackable
if filter.icon(guid) and filter.attackable(guid) then
-- always show raid marks if attackable and not in combat or this guid is affecting combat
if filter.icon(guid) and filter.attackable(guid) and (not UnitAffectingCombat("player") or UnitAffectingCombat(guid)) then
return true
end