From 328b5f3c1b2fa635c3783ff50cccecea1562a1cc Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 8 May 2007 02:55:30 +0000 Subject: [PATCH] * Temporary fix for the debuff highlight clearing --- PerfectRaid_Buffs.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PerfectRaid_Buffs.lua b/PerfectRaid_Buffs.lua index 42cd290..ce442f5 100644 --- a/PerfectRaid_Buffs.lua +++ b/PerfectRaid_Buffs.lua @@ -210,6 +210,7 @@ function Buffs:UNIT_AURA(event, unit) -- Check to see if we need to change the backdrop local opt = PerfectRaid.db.profile.highlight + local bdset = true local r,g,b,a if buffcache.Curse and opt.curse then r,g,b,a = 0.6,0,1,0.7 @@ -219,17 +220,16 @@ function Buffs:UNIT_AURA(event, unit) r,g,b,a = 0.6,0.4,0,0.7 elseif buffcache.Magic and opt.magic then r,g,b,a = 0.2,0.6,1,0.7 + else + r,g,b,a = 0,0,0,0 + bdset = false end local status = strjoin(" ", unpack(work)) for frame in pairs(frames[unit]) do frame.aura:SetText(status) - if r then - frame:SetBackdropColor(r,g,b,a) - frame.backdropset = true - elseif frame.backdropset then - frame:SetBackdropColor(0,0,0,0) - end + frame:SetBackdropColor(r,g,b,a) + frame.backdropset = bdset end end -- 1.7.9.5