Quantcast

Added Icefury

Taracque [08-29-16 - 12:29]
Added Icefury
Filename
modules/elemental.lua
diff --git a/modules/elemental.lua b/modules/elemental.lua
index 315e514..0998fc2 100755
--- a/modules/elemental.lua
+++ b/modules/elemental.lua
@@ -15,7 +15,8 @@ Elementarist.elemental = {
 			["Enhanced Chain Lightning"]  = GetSpellInfo(157766),
 			["Flame Shock"] = GetSpellInfo(188389),
 			["Totem Mastery"] = GetSpellInfo(210643),
-			["Fire Elemental"] = GetSpellInfo(198067)
+			["Fire Elemental"] = GetSpellInfo(198067),
+			["Icefury"] = GetSpellInfo(210714)
 		});

 		Elementarist.role = "DPS";
@@ -178,6 +179,16 @@ Elementarist.elemental = {
 			end
 		end

+		-- Icefury if available and Maelstrom <= 60
+		if (Elementarist.talents[5] == 3) then
+			if (UnitPower("player",11)<60) and (Elementarist:ZeroCount(Elementarist.SpellList["Icefury"],spellInCast,exspell1,exspell2)) then
+				d = Elementarist:GetSpellCooldownRemaining(Elementarist.SpellList["Icefury"])
+				if ((d - timeshift) <= 0) then
+					return Elementarist.SpellList["Icefury"]
+				end
+			end
+		end
+
 		-- Lava Burst
 		if ( (lvbCharges > 0) or((ascendanceExp-GetTime()-timeshift) > 0)  ) and
 			Elementarist:SpellAvailable(Elementarist.SpellList["Lava Burst"])