Quantcast

Fixes for low level restoration shamans.

Taracque [03-06-13 - 11:42]
Fixes for low level restoration shamans.
Filename
modules/restoration.lua
diff --git a/modules/restoration.lua b/modules/restoration.lua
index a9e0410..f26c23e 100755
--- a/modules/restoration.lua
+++ b/modules/restoration.lua
@@ -182,7 +182,7 @@ Elementarist.restoration = {
 				end;
 				if (count == 0) then
 					e = Elementarist:GetSpellCooldownRemaining(Elementarist.SpellList["Riptide"])
-					if (e-timeshift <= 0) then
+					if (e) and (e-timeshift <= 0) then
 						return Elementarist.SpellList["Riptide"];
 					end
 				end;
@@ -192,7 +192,7 @@ Elementarist.restoration = {
 		-- Healing Rain
 		if (exspell1 ~= Elementarist.SpellList["Healing Rain"]) and (exspell2 ~= Elementarist.SpellList["Healing Rain"]) then
 			e = Elementarist:GetSpellCooldownRemaining(Elementarist.SpellList["Healing Rain"]);
-			if (e-timeshift <= 0) then
+			if (e) and (e-timeshift <= 0) then
 				return Elementarist.SpellList["Healing Rain"];
 			end;
 		end;
@@ -208,7 +208,7 @@ Elementarist.restoration = {
 		-- Spirit Link Totem
 		if (exspell1 ~= Elementarist.SpellList["Spirit Link Totem"]) and (exspell2 ~= Elementarist.SpellList["Spirit Link Totem"]) then
 			e = Elementarist:GetSpellCooldownRemaining(Elementarist.SpellList["Spirit Link Totem"]);
-			if (e-timeshift <= 0) then
+			if (e) and (e-timeshift <= 0) then
 				return Elementarist.SpellList["Spirit Link Totem"];
 			end;
 		end;