From 0b66f1c93da578dd02dec140263cfc6c756b7957 Mon Sep 17 00:00:00 2001 From: Taracque Date: Tue, 9 Dec 2014 13:16:54 +0100 Subject: [PATCH] Necrotic plague tracked in the debuff window. --- DKCrutch.lua | 64 +++++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 43 insertions(+), 21 deletions(-) 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 -- 1.7.9.5