Quantcast

Earth Shield tracker fixes.

Taracque [12-22-12 - 18:18]
Earth Shield tracker fixes.
Filename
modules/restoration.lua
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();