Quantcast

Hunter: Focus Fire should remove Frenzy stacks from the player.

Johnny C. Lam [04-25-14 - 20:56]
Hunter: Focus Fire should remove Frenzy stacks from the player.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1323 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleSimulationCraft.lua
scripts/ovale_hunter.lua
scripts/ovale_hunter_spells.lua
diff --git a/OvaleSimulationCraft.lua b/OvaleSimulationCraft.lua
index 81e79d2..edc82a7 100644
--- a/OvaleSimulationCraft.lua
+++ b/OvaleSimulationCraft.lua
@@ -480,7 +480,7 @@ do
 					if needAnd then
 						tinsert(scriptLine, "and")
 					end
-					tinsert(scriptLine, "pet.BuffStacks(pet_frenzy_buff any=1) == 5")
+					tinsert(scriptLine, "BuffStacks(frenzy_buff any=1) == 5")
 					needAnd = true
 				end
 				if action == "stance" and scriptLine.choose then
diff --git a/scripts/ovale_hunter.lua b/scripts/ovale_hunter.lua
index b9af270..aa85a10 100644
--- a/scripts/ovale_hunter.lua
+++ b/scripts/ovale_hunter.lua
@@ -43,7 +43,7 @@ AddFunction BeastMasteryDefaultActions
 	#arcane_shot,if=buff.thrill_of_the_hunt.react|buff.beast_within.up
 	if BuffPresent(thrill_of_the_hunt_buff) or BuffPresent(beast_within_buff) Spell(arcane_shot)
 	#focus_fire,five_stacks=1
-	if pet.BuffStacks(pet_frenzy_buff any=1) == 5 Spell(focus_fire)
+	if BuffStacks(frenzy_buff any=1) == 5 Spell(focus_fire)
 	#cobra_shot,if=dot.serpent_sting.remains<6
 	if target.DebuffRemains(serpent_sting_debuff) < 6 Spell(cobra_shot)
 	#arcane_shot,if=focus>=61
@@ -77,7 +77,7 @@ AddFunction BeastMasteryDefaultAoeActions
 	#arcane_shot,if=buff.thrill_of_the_hunt.react|buff.beast_within.up
 	if BuffPresent(thrill_of_the_hunt_buff) or BuffPresent(beast_within_buff) Spell(arcane_shot)
 	#focus_fire,five_stacks=1
-	if pet.BuffStacks(pet_frenzy_buff any=1) == 5 Spell(focus_fire)
+	if pet.BuffStacks(frenzy_buff any=1) == 5 Spell(focus_fire)
 	#cobra_shot,if=dot.serpent_sting.remains<6
 	if target.DebuffRemains(serpent_sting_debuff) < 6 Spell(cobra_shot)
 	#arcane_shot,if=focus>=61
diff --git a/scripts/ovale_hunter_spells.lua b/scripts/ovale_hunter_spells.lua
index 1dbab91..577c1d8 100644
--- a/scripts/ovale_hunter_spells.lua
+++ b/scripts/ovale_hunter_spells.lua
@@ -109,8 +109,8 @@ Define(multi_shot 2643)
 	SpellAddTargetDebuff(multi_shot serpent_sting_debuff=1 if_spell=serpent_spread)
 Define(pet_beast_cleave_buff 118455)
 	SpellInfo(pet_beast_cleave_buff duration=4)
-Define(pet_frenzy_buff 19615)
-	SpellInfo(pet_frenzy_buff duration=30)
+Define(frenzy_buff 19615)
+	SpellInfo(frenzy_buff duration=30)
 Define(powershot 109259)
 	SpellInfo(powershot cd=60 focus=15)
 	SpellInfo(powershot buff_focus_half=beast_within_buff mastery=beast_mastery)