Quantcast

Necrotic plague tracked in the debuff window.

Taracque [12-09-14 - 12:16]
Necrotic plague tracked in the debuff window.
Filename
DKCrutch.lua
diff --git a/DKCrutch.lua b/DKCrutch.lua
index a3d78de..d01a9bc 100755
--- a/DKCrutch.lua
+++ b/DKCrutch.lua
@@ -1331,33 +1331,55 @@ function DKCrutch:Update()
 		end
 	end
 	if (not DKCrutchDB.debuffDisabled) then
-		local name, _, icon, _, _, d, e = DKCrutch:hasDeBuff("target", DKCrutch.SpellList["Frost Fever"], "player")
-		if (name) and (icon) then
-			if (DKCrutch.lastD1 ~= icon) then
-				DKCrutch.debuff1Frame.texture:SetTexture( icon )
-				DKCrutch.lastD1 = icon
-			end
-			DKCrutch.debuff1Frame:SetCooldown( e-d, d)
-		else
-			if (DKCrutch.lastD1 ~= "") then
-				DKCrutch.debuff1Frame.texture:SetTexture( "" )
-				DKCrutch.debuff1Frame:SetCooldown( 0, 0)
-				DKCrutch.lastD1 = ""
-			end
-		end
-		name, _, icon, _, _, d, e = DKCrutch:hasDeBuff("target", DKCrutch.SpellList["Blood Plague"], "player")
-		if (name) and (icon) then
-			if (DKCrutch.lastD2 ~= icon) then
-				DKCrutch.debuff2Frame.texture:SetTexture( icon )
-				DKCrutch.lastD2 = icon
+		if (DKCrutch.tier7talent == 21207) then
+			local name, _, icon, _, _, d, e = DKCrutch:hasDeBuff("target", DKCrutch.SpellList["Necrotic Plague"], "player")
+			if (name) and (icon) then
+				if (DKCrutch.lastD1 ~= icon) then
+					DKCrutch.debuff1Frame.texture:SetTexture( icon )
+					DKCrutch.lastD1 = icon
+				end
+				DKCrutch.debuff1Frame:SetCooldown( e-d, d)
+			else
+				if (DKCrutch.lastD1 ~= "") then
+					DKCrutch.debuff1Frame.texture:SetTexture( "" )
+					DKCrutch.debuff1Frame:SetCooldown( 0, 0)
+					DKCrutch.lastD1 = ""
+				end
 			end
-			DKCrutch.debuff2Frame:SetCooldown( e-d, d)
-		else
 			if (DKCrutch.lastD2 ~= "") then
 				DKCrutch.debuff2Frame.texture:SetTexture( "" )
 				DKCrutch.debuff2Frame:SetCooldown( 0, 0)
 				DKCrutch.lastD2 = ""
 			end
+		else
+			local name, _, icon, _, _, d, e = DKCrutch:hasDeBuff("target", DKCrutch.SpellList["Frost Fever"], "player")
+			if (name) and (icon) then
+				if (DKCrutch.lastD1 ~= icon) then
+					DKCrutch.debuff1Frame.texture:SetTexture( icon )
+					DKCrutch.lastD1 = icon
+				end
+				DKCrutch.debuff1Frame:SetCooldown( e-d, d)
+			else
+				if (DKCrutch.lastD1 ~= "") then
+					DKCrutch.debuff1Frame.texture:SetTexture( "" )
+					DKCrutch.debuff1Frame:SetCooldown( 0, 0)
+					DKCrutch.lastD1 = ""
+				end
+			end
+			name, _, icon, _, _, d, e = DKCrutch:hasDeBuff("target", DKCrutch.SpellList["Blood Plague"], "player")
+			if (name) and (icon) then
+				if (DKCrutch.lastD2 ~= icon) then
+					DKCrutch.debuff2Frame.texture:SetTexture( icon )
+					DKCrutch.lastD2 = icon
+				end
+				DKCrutch.debuff2Frame:SetCooldown( e-d, d)
+			else
+				if (DKCrutch.lastD2 ~= "") then
+					DKCrutch.debuff2Frame.texture:SetTexture( "" )
+					DKCrutch.debuff2Frame:SetCooldown( 0, 0)
+					DKCrutch.lastD2 = ""
+				end
+			end
 		end
 	end
 	if (not DKCrutchDB.weaponDisabled) then