From 135353a3649a0f57cc6c60c99b34804aa1fce50c Mon Sep 17 00:00:00 2001 From: Taracque Date: Thu, 13 Dec 2012 21:14:27 +0100 Subject: [PATCH] Stormlash totem added. --- Elementarist.lua | 3 ++- modules/elemental.lua | 8 ++++++++ modules/restoration.lua | 8 ++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Elementarist.lua b/Elementarist.lua index 21cf369..9c8c71c 100755 --- a/Elementarist.lua +++ b/Elementarist.lua @@ -68,7 +68,8 @@ Elementarist.SpellList = { ["Earthquake"] = GetSpellInfo(61882), ["Elemental Blast"] = GetSpellInfo(117014), ["Ascendance"] = GetSpellInfo(114049), - + ["Stormlash Totem"] = GetSpellInfo(120668), + -- racials ["Berserking"] = GetSpellInfo(26297), -- Troll racial ["Blood Fury"] = GetSpellInfo(33697), -- Orc racial diff --git a/modules/elemental.lua b/modules/elemental.lua index 5b0f4ce..8e8012d 100755 --- a/modules/elemental.lua +++ b/modules/elemental.lua @@ -277,6 +277,14 @@ Elementarist.elemental = { end end end + + -- Stormlash Totem + if Elementarist:SpellAvailable(Elementarist.SpellList["Stormlash Totem"]) then + d = Elementarist:GetSpellCooldownRemaining(Elementarist.SpellList["Stormlash Totem"]) + if d <= 0.5 then + return Elementarist.SpellList["Stormlash Totem"] + end + end -- Berserking if Elementarist:SpellAvailable(Elementarist.SpellList["Berserking"]) then diff --git a/modules/restoration.lua b/modules/restoration.lua index d0db3cc..81b6e39 100755 --- a/modules/restoration.lua +++ b/modules/restoration.lua @@ -229,6 +229,14 @@ Elementarist.restoration = { end end + -- Stormlash Totem + if Elementarist:SpellAvailable(Elementarist.SpellList["Stormlash Totem"]) then + d = Elementarist:GetSpellCooldownRemaining(Elementarist.SpellList["Stormlash Totem"]) + if d <= 0.5 then + return Elementarist.SpellList["Stormlash Totem"] + end + end + return "" end; IntSpell = function(self) -- 1.7.9.5