From 0a01be58a531c78de6f6996afde6ca4103d62fac Mon Sep 17 00:00:00 2001 From: Taracque Date: Mon, 10 Dec 2012 23:20:08 +0100 Subject: [PATCH] Elemental has Healing Stream Totem sugeststion --- modules/elemental.lua | 13 ++++++++++++- modules/restoration.lua | 8 +++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/modules/elemental.lua b/modules/elemental.lua index 42cc49b..2d3868a 100755 --- a/modules/elemental.lua +++ b/modules/elemental.lua @@ -246,7 +246,18 @@ Elementarist.elemental = { return Elementarist.SpellList["Searing Totem"] end end - + + -- Healing Stream Totem + if Elementarist:SpellAvailable(Elementarist.SpellList["Healing Stream Totem"]) then + local haveWaterTotem,waterTotemName,_,_ = GetTotemInfo(3) + if (waterTotemName == "") then + e = Elementarist:GetSpellCooldownRemaining(Elementarist.SpellList["Healing Stream Totem"]); + if (e < 1) then + return Elementarist.SpellList["Healing Stream Totem"]; + end; + end + end + -- Elemental Mastery if Elementarist:SpellAvailable(Elementarist.SpellList["Elemental Mastery"]) then d = Elementarist:GetSpellCooldownRemaining(Elementarist.SpellList["Elemental Mastery"]) diff --git a/modules/restoration.lua b/modules/restoration.lua index 674f815..d0db3cc 100755 --- a/modules/restoration.lua +++ b/modules/restoration.lua @@ -100,15 +100,17 @@ Elementarist.restoration = { UpdateAuraTracker = function(self) -- check all friendly units and refresh buff durations (Riptide and Earth Shield) - local _,i,friendGUID,name,count,d,e,groupType = ""; + local _,i,friendGUID,name,count,d,e,groupType; if (Elementarist.inParty == 2) then groupType = "raid"; elseif (Elementarist.inParty == 1) then groupType = "party"; end; - for i=1,GetNumGroupMembers() do - Elementarist.restoration:UpdateBuffs( groupType .. i ); + if (groupType) then + for i=1,GetNumGroupMembers() do + Elementarist.restoration:UpdateBuffs( groupType .. i ); + end; end; -- check player Elementarist.restoration:UpdateBuffs( "player" ); -- 1.7.9.5