Quantcast

Elemental has Healing Stream Totem sugeststion

Taracque [12-10-12 - 22:20]
Elemental has Healing Stream Totem sugeststion
Filename
modules/elemental.lua
modules/restoration.lua
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" );