From c38dad1108a1f064d3edf856af4288f90ec4fb68 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Thu, 8 May 2014 17:25:49 +0000 Subject: [PATCH] Priest: Mind Flay (Insanity) is only available with the right talent. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1394 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleSimulationCraft.lua | 4 +++- scripts/ovale_priest.lua | 8 ++++---- scripts/ovale_priest_spells.lua | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/OvaleSimulationCraft.lua b/OvaleSimulationCraft.lua index dfdc70f..c801ec2 100644 --- a/OvaleSimulationCraft.lua +++ b/OvaleSimulationCraft.lua @@ -525,7 +525,9 @@ do if needAnd then tinsert(scriptLine, "and") end - tinsert(scriptLine, "target.DebuffPresent(devouring_plague_debuff)") + tinsert(scriptLine, "TalentPoints(solace_and_insanity_talent) and target.DebuffPresent(devouring_plague_debuff)") + tinsert(self.symbols, "solace_and_insanity_talent") + tinsert(self.symbols, "devouring_plague_debuff") needAnd = true elseif action == "stance" and scriptLine.choose then if needAnd then diff --git a/scripts/ovale_priest.lua b/scripts/ovale_priest.lua index 0a8ceb1..f3b41e6 100644 --- a/scripts/ovale_priest.lua +++ b/scripts/ovale_priest.lua @@ -37,9 +37,9 @@ AddFunction ShadowDefaultActions #shadow_word_death,if=buff.shadow_word_death_reset_cooldown.stack=0&active_enemies<=5 if BuffStacks(shadow_word_death_reset_cooldown_buff) == 0 Spell(shadow_word_death usable=1) #mind_flay_insanity,if=target.dot.devouring_plague_tick.ticks_remain=1,chain=1 - if target.DebuffPresent(devouring_plague_debuff) and target.TicksRemain(devouring_plague_debuff) == 1 Spell(mind_flay) + if TalentPoints(solace_and_insanity_talent) and target.DebuffPresent(devouring_plague_debuff) and target.TicksRemain(devouring_plague_debuff) < 2 Spell(mind_flay) #mind_flay_insanity,interrupt=1,chain=1,if=active_enemies<=5 - if target.DebuffPresent(devouring_plague_debuff) Spell(mind_flay) + if TalentPoints(solace_and_insanity_talent) and target.DebuffPresent(devouring_plague_debuff) Spell(mind_flay) #shadow_word_pain,cycle_targets=1,max_cycle_targets=5,if=miss_react&!ticking if True(miss_react) and not target.DebuffPresent(shadow_word_pain_debuff) and DebuffCountOnAny(shadow_word_pain_debuff) <= 5 Spell(shadow_word_pain) #vampiric_touch,cycle_targets=1,max_cycle_targets=5,if=remains