View Single Post
02-03-09, 04:09 PM   #613
coree
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 28
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