Core/Tags: fix power color tags

This commit is contained in:
andrew6180
2023-05-23 10:47:37 -07:00
parent eb7d75c3d2
commit 2343eb2d99
4 changed files with 44 additions and 8 deletions
+11 -2
View File
@@ -506,8 +506,17 @@ function UF:AuraFilter(unit, button, name, _, _, _, debuffType, duration, expira
if not name then return end -- checking for an aura that is not there, pass nil to break while loop
local parent = self:GetParent()
local db = parent.db and parent.db[self.type]
if not db then return true end
local db
if self.isNamePlate then
db = NP:PlateDB(parent)
db = db and db[self.type]
else
db = parent.db and parent.db[self.type]
end
if not db then
return true
end
local isPlayer = (caster == "player" or caster == "vehicle")
local isFriend = unit and UnitIsFriend("player", unit) and not UnitCanAttack("player", unit)