I am trying to filter out some debuffs (i.e "Exhaustion" and "Recently Bandaged").
That's what i have:
Code:
local dblacklist = {
[1] = 57723, --Exhaustion
[2] = 11196, -- Recently Bandaged
}
local function PostUpdateAuraIcon(self, icons, unit, icon, index, offset, filter, debuff)
if(debuff) then
for index, value in ipairs(dblacklist) do
local name, _, _, _, _, _, _, _, _ = GetSpellInfo(value)
for i=1, 40, 1 do
local dname, _, _, _, _, _, _, _, _ = UnitAura("player", i, filter);
if dname == name then
icon:Hide()
end
end
end
end
end
But, now all debuffs will be hidden. So i need some help to hide the debuffs from the blacklist only. Any idea ? thanks in advance