Debuff saturation on oUF (both Nerd and P3lim great layouts) not working, tried modyfying the code on many ways but still all debuffs on target frame are normal or all are grayed out.
Anyone more experiencing same problem and found any way to fix it?
Code below is from newest oUF 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