From b562e854efbf70060fcf81b66facfe7b5a1a9071 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 9 Oct 2009 00:16:44 +0200 Subject: [PATCH] Add desaturating whitelist to target debuffs --- oUF_P3lim.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 80f790f..a47e646 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -42,6 +42,14 @@ local buffFilter = { [GetSpellInfo(49016)] = true, -- Death Knight: Hysteria } +local debuffFilter = { + [GetSpellInfo(770)] = true, -- Faerie Fire + [GetSpellInfo(16857)] = true, -- Faerie Fire (Feral) + [GetSpellInfo(48564)] = true, -- Mangle (Bear) + [GetSpellInfo(48566)] = true, -- Mangle (Cat) + [GetSpellInfo(46857)] = true, -- Trauma +} + local function menu(self) if(self.unit == 'player') then ToggleDropDownMenu(1, nil, oUF_P3lim_DropDown, 'cursor') @@ -103,10 +111,10 @@ local function updateBuff(self, icons, unit, icon, index) end local function updateDebuff(self, icons, unit, icon, index) - local _, _, _, _, dtype = UnitAura(unit, index, icon.filter) + local name, _, _, _, dtype = UnitAura(unit, index, icon.filter) if(icon.debuff) then - if(not UnitIsFriend('player', unit) and icon.owner ~= 'player' and icon.owner ~= 'vehicle') then + if(not debuffFilter[name] and not UnitIsFriend('player', unit) and icon.owner ~= 'player' and icon.owner ~= 'vehicle') then icon:SetBackdropColor(0, 0, 0) icon.icon:SetDesaturated(true) else -- 1.7.9.5