From 9851878f47abc9342d1cfb3f512b8eb9532193bf Mon Sep 17 00:00:00 2001 From: Taracque Date: Sat, 22 Dec 2012 19:18:38 +0100 Subject: [PATCH] Earth Shield tracker fixes. --- modules/restoration.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/restoration.lua b/modules/restoration.lua index 81b6e39..de8521f 100755 --- a/modules/restoration.lua +++ b/modules/restoration.lua @@ -51,6 +51,7 @@ Elementarist.restoration = { Elementarist.auraCooldowns["0"].seen = GetTime(); Elementarist:SetTexture(Elementarist.textureList["debuff"],select(3, GetSpellInfo(Elementarist.SpellList["Earth Shield"]))); Elementarist.textureList["debuff"]:Show(); + Elementarist.textList['debuff']:SetText( Elementarist.auraCooldowns["0"].charges ); end; if (event=="SPELL_HEAL") and (Elementarist.auraCooldowns["0"]) and (Elementarist.auraCooldowns["0"].charges) then Elementarist.auraCooldowns["0"].charges = Elementarist.auraCooldowns["0"].charges - 1; @@ -87,10 +88,12 @@ Elementarist.restoration = { if (not Elementarist.auraCooldowns["0"]) then Elementarist.auraCooldowns["0"] = {} end; - if (not Elementarist.auraCooldowns["0"]) or (not Elementarist.auraCooldowns["0"].charges) or (Elementarist.auraCooldowns["0"].charges == 0) then + if (not Elementarist.auraCooldowns["0"]) or (not Elementarist.auraCooldowns["0"].charges) or (Elementarist.auraCooldowns["0"].charges == 0) or (Elementarist.auraCooldowns["0"].charges ~= count) then Elementarist:SetTexture(Elementarist.textureList["debuff"],select(3, GetSpellInfo(Elementarist.SpellList["Earth Shield"]))); Elementarist.textureList["debuff"]:Show(); Elementarist.textList['debuff']:SetText( count ); + else + Elementarist.textList['debuff']:SetText(""); end; Elementarist.auraCooldowns["0"].charges = count; Elementarist.auraCooldowns["0"].seen = GetTime(); -- 1.7.9.5