From 8b43d3d8e024260e301d265d4051505131ae5bf2 Mon Sep 17 00:00:00 2001 From: Taracque Date: Wed, 6 Mar 2013 12:42:21 +0100 Subject: [PATCH] Fixes for low level restoration shamans. --- modules/restoration.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 1.7.9.5