Quantcast

Shaman: Maintain Elemental Blast spirit buff as restoration.

Johnny C. Lam [12-17-14 - 06:45]
Shaman: Maintain Elemental Blast spirit buff as restoration.
Filename
scripts/ovale_shaman.lua
scripts/ovale_shaman_spells.lua
diff --git a/scripts/ovale_shaman.lua b/scripts/ovale_shaman.lua
index f1fdd46..5c24f01 100644
--- a/scripts/ovale_shaman.lua
+++ b/scripts/ovale_shaman.lua
@@ -484,6 +484,7 @@ AddFunction RestorationMainActions
 	#
 	if Glyph(glyph_of_totemic_recall) and TotemPresent(water totem=healing_stream_totem) and TotemExpires(water 3) and TotemExpires(fire) and TotemExpires(earth) and TotemExpires(air) Spell(totemic_recall)

+	if Talent(elemental_blast_talent) and BuffRemaining(elemental_blast_spirit_buff) < CastTime(elemental_blast) Spell(elemental_blast)
 	if BuffPresent(unleash_life_buff) Spell(healing_wave)
 	if Talent(totemic_persistence_talent) or TotemExpires(water) Spell(healing_stream_totem)
 	if Glyph(glyph_of_riptide no) Spell(riptide)
@@ -491,9 +492,13 @@ AddFunction RestorationMainActions

 AddFunction RestorationAoeActions
 {
+	if BuffExpires(water_shield_buff) Spell(water_shield)
+	if BuffCountOnAny(earth_shield_buff) == 0 Spell(earth_shield)
+
+	if Talent(elemental_blast_talent) and BuffRemaining(elemental_blast_spirit_buff) < CastTime(elemental_blast) Spell(elemental_blast)
 	if BuffPresent(unleash_life_buff) Spell(chain_heal)
-	if Talent(totemic_persistence_talent) or TotemExpires(water) Spell(cloudburst_totem)
 	if Talent(totemic_persistence_talent) or TotemExpires(water) Spell(healing_stream_totem)
+	if Talent(totemic_persistence_talent) or TotemExpires(water) Spell(cloudburst_totem)
 	Spell(healing_rain)
 	Spell(chain_heal)
 }
diff --git a/scripts/ovale_shaman_spells.lua b/scripts/ovale_shaman_spells.lua
index f71ce45..abcdc44 100644
--- a/scripts/ovale_shaman_spells.lua
+++ b/scripts/ovale_shaman_spells.lua
@@ -89,8 +89,11 @@ Define(echo_of_the_elements_talent 12)
 Define(elemental_blast 117014)
 	SpellInfo(elemental_blast cd=12)
 	SpellAddBuff(elemental_blast ancestral_swiftness_buff=0 if_spell=ancestral_swiftness)
+	SpellAddBuff(elemental_blast elemental_blast_spirit_buff=1 specialization=restoration)
 	SpellAddBuff(elemental_blast maelstrom_weapon_buff=0 if_spell=maelstrom_weapon)
 	SpellAddBuff(elemental_blast unleash_flame_buff=0 if_spell=unleash_flame)
+Define(elemental_blast_spirit_buff 173187)
+	SpellInfo(elemental_blast_spirit_buff duration=8)
 Define(elemental_blast_talent 18)
 Define(elemental_fusion 152257)
 Define(elemental_fusion_buff 157174)