Quantcast

Druid: Improve balance script precombat actions.

Johnny C. Lam [04-25-14 - 20:57]
Druid: Improve balance script precombat actions.

Move Wild Mushroom precombat actions to the Moving icon so as not to
obscure the actual first cast of the main rotation.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1334 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
scripts/ovale_druid.lua
diff --git a/scripts/ovale_druid.lua b/scripts/ovale_druid.lua
index 8db5c53..30c2bb2 100644
--- a/scripts/ovale_druid.lua
+++ b/scripts/ovale_druid.lua
@@ -137,8 +137,6 @@ AddFunction BalancePrecombatActions
 	#food,type=mogu_fish_stew
 	#mark_of_the_wild,if=!aura.str_agi_int.up
 	if not BuffPresent(str_agi_int any=1) Spell(mark_of_the_wild)
-	#wild_mushroom,if=buff.wild_mushroom.stack<buff.wild_mushroom.max_stack
-	if WildMushroomCount() < 3 Spell(wild_mushroom_caster)
 	#healing_touch,if=!buff.dream_of_cenarius.up&talent.dream_of_cenarius.enabled
 	if not BuffPresent(dream_of_cenarius_caster_buff) and TalentPoints(dream_of_cenarius_talent) Spell(healing_touch)
 	#moonkin_form
@@ -147,6 +145,12 @@ AddFunction BalancePrecombatActions
 	#snapshot_stats
 }

+AddFunction BalancePrecombatMovingActions
+{
+	#wild_mushroom,if=buff.wild_mushroom.stack<buff.wild_mushroom.max_stack
+	if WildMushroomCount() < 3 Spell(wild_mushroom_caster)
+}
+
 AddFunction BalancePrecombatCdActions
 {
 	#jade_serpent_potion
@@ -187,7 +191,7 @@ AddIcon mastery=balance help=main

 AddIcon mastery=balance help=moving
 {
-	if InCombat(no) BalancePrecombatActions()
+	if InCombat(no) BalancePrecombatMovingActions()
 	BalanceDefaultMovingActions()
 }