add notplayer filter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user