Priest: Mind Flay (Insanity) is only available with the right talent.
Johnny C. Lam [05-08-14 - 17:25]
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
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<cast_time&miss_react
@@ -102,8 +102,8 @@ AddFunction ShadowDefaultShortCdActions
or { ShadowOrbs() == 3 and { SpellCooldown(mind_blast) < 1.5 or target.HealthPercent() < 20 and SpellCooldown(shadow_word_death) < 1.5 } }
or Spell(mind_blast)
or { BuffStacks(shadow_word_death_reset_cooldown_buff) == 0 and Spell(shadow_word_death usable=1) }
- or { target.DebuffPresent(devouring_plague_debuff) and target.TicksRemain(devouring_plague_debuff) == 1 }
- or target.DebuffPresent(devouring_plague_debuff)
+ or { TalentPoints(solace_and_insanity_talent) and target.DebuffPresent(devouring_plague_debuff) and target.TicksRemain(devouring_plague_debuff) < 2 }
+ or { TalentPoints(solace_and_insanity_talent) and target.DebuffPresent(devouring_plague_debuff) }
or { True(miss_react) and not target.DebuffPresent(shadow_word_pain_debuff) }
or { target.DebuffRemains(vampiric_touch_debuff) < CastTime(vampiric_touch) and True(miss_react) }
or { True(miss_react) and target.TicksRemain(shadow_word_pain_debuff) <= 1 }
diff --git a/scripts/ovale_priest_spells.lua b/scripts/ovale_priest_spells.lua
index 542d277..6265dae 100644
--- a/scripts/ovale_priest_spells.lua
+++ b/scripts/ovale_priest_spells.lua
@@ -70,6 +70,7 @@ Define(shadowfiend 34433)
Define(shadowform 15473)
Define(silence 15487)
SpellInfo(silence cd=45)
+Define(solace_and_insanity_talent 9)
Define(surge_of_darkness_buff 87160)
SpellInfo(surge_of_darkness_buff duration=10 maxstacks=2)
Define(vampiric_embrace 15286)