View Single Post
05-14-09, 10:59 AM   #1026
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by duhwhat View Post
Thanks for your help pelim. This was working well, although the target frame filtered both debuffs AND buffs. Is there a way to white/blacklist only the debuffs?

Also, does anyone know where to look for a comprehensive list of "special" debuffs? I would prefer a whitelist method for debuff filtering, rather than blacklisting almost everything under the sun, but I would like to not miss any of these debuffs. For example, Pyrite, Engulf in Flames, etc.
To filter buffs:
Code:
local function customFilter(icons, unit, icon, name)
   if(whitelist[name] and not icon.debuff) then return true end
end
To filter debuffs:
Code:
local function customFilter(icons, unit, icon, name)
   if(whitelist[name] and icon.debuff) then return true end
end