add notplayer filter

This commit is contained in:
pepopo978
2025-04-20 14:05:42 -07:00
parent fa03a011b5
commit 6a6f563e7b
3 changed files with 24 additions and 0 deletions
+8
View File
@@ -13,6 +13,10 @@ filter.player = function(unit)
return UnitIsPlayer(unit) and true or false
end
filter.notplayer = function(unit)
return not UnitIsPlayer(unit) and true or false
end
filter.infight = function(unit)
return UnitAffectingCombat(unit) and true or false
end
@@ -125,6 +129,10 @@ function Cursive:ShouldDisplayGuid(guid)
shouldDisplay = shouldDisplay and filter.player(guid)
end
if Cursive.db.profile.filternotplayer then
shouldDisplay = shouldDisplay and filter.notplayer(guid)
end
if Cursive.db.profile.filterignored then
shouldDisplay = shouldDisplay and filter.notignored(guid)
end