From 28c37d2bd0de7fb2238091c0098d9ccd8be59fc1 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Thu, 8 May 2014 17:26:04 +0000 Subject: [PATCH] Hunter: Pool focus to improve Black Arrow uptime for Survival spec. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1396 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- scripts/ovale_hunter.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/ovale_hunter.lua b/scripts/ovale_hunter.lua index e632854..cf0970e 100644 --- a/scripts/ovale_hunter.lua +++ b/scripts/ovale_hunter.lua @@ -421,6 +421,16 @@ AddIcon mastery=marksmanship size=small checkboxon=opt_icons_right # spec=survival # talents=http://us.battle.net/wow/en/tool/talent-calculator#Yb!...200 +AddFunction SurvivalArcaneShotFocusCondition +{ + # Pool focus for Black Arrow if it is coming off of cooldown. + # If 2pT16 is not present, then also pool focus for Explosive Shot if it is coming off cooldown. + # + { SpellCooldown(black_arrow) > 0 or Focus() - FocusCost(arcane_shot) >= FocusCost(black_arrow) } + and { ArmorSetBonus(T16_melee 2) == 1 + or { ArmorSetBonus(T16_melee 2) == 0 and { SpellCooldown(explosive_shot) > 0 or Focus() - FocusCost(arcane_shot) >= FocusCost(explosive_shot) } } } +} + AddFunction SurvivalDefaultActions { #auto_shot @@ -441,7 +451,7 @@ AddFunction SurvivalDefaultActions #multi_shot,if=buff.thrill_of_the_hunt.react&dot.serpent_sting.remains<2 if BuffPresent(thrill_of_the_hunt_buff) and target.DebuffRemains(serpent_sting_debuff) < 2 Spell(multi_shot) #arcane_shot,if=buff.thrill_of_the_hunt.react - if BuffPresent(thrill_of_the_hunt_buff) Spell(arcane_shot) + if BuffPresent(thrill_of_the_hunt_buff) and SurvivalArcaneShotFocusCondition() Spell(arcane_shot) #dire_beast,if=enabled if TalentPoints(dire_beast_talent) Spell(dire_beast) #cobra_shot,if=dot.serpent_sting.remains<6 -- 1.7.9.5