Quantcast

* Temporary fix for the debuff highlight clearing

James Whitehead II [05-08-07 - 02:55]
* Temporary fix for the debuff highlight clearing
Filename
PerfectRaid_Buffs.lua
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