is this for lua? (oUF) or something like pubull or stuf
i got this from p3lim
Code:
local function updateDebuff(self, icons, unit, icon, index)
local _, _, _, _, dtype = UnitAura(unit, index, icon.filter)
if(icon.debuff) then
if(not UnitIsFriend('player', unit) and icon.owner ~= 'player' and icon.owner ~= 'vehicle') then
icon:SetBackdropColor(0, 0, 0)
icon.icon:SetDesaturated(true)
else
local color = DebuffTypeColor[dtype] or DebuffTypeColor.none
icon:SetBackdropColor(color.r * 0.6, color.g * 0.6, color.b * 0.6)
icon.icon:SetDesaturated(false)
end
end
end
if you need help how to use it, pm me.