Code:
-- SPEC ID 258
-- v2.1 - Updated by thefrobel 1/26/15
ProbablyEngine.rotation.register_custom(258, "Frobes Shadow", {
-- SURVIVAL --
-- { "Fade", "Player.aggro ? --
{"#Healing Tonic", "player.health <= 30" },
{"Desperate Prayer", "player.health <= 30", "Player" },
{"Power Word: Shield", "player.health <= 30", "Player" },
{"Dispersion", "player.health <= 20", "Player" },
{"28880", "player.health <= 40", "player" },
--------------------
-- Start Rotation --
--------------------
{"15473", "!player.buff(15473)" },
-- Cooldowns
{"Shadowfiend", "toggle.cooldowns"},
{"#113835", "toggle.cooldowns"},
{"#109218", "player.hashero"},
-- AoE
{"Power Word: Shield", {"toggle.multitarget", "player.moving", "!player.buff(6788)"}},
{"Shadow Word: Death", {"toggle.multitarget", "target.health < 20"}},
{"!179338", {"toggle.multitarget", "player.buff(132573).duration <=1"}},
{"Mind Sear", {"toggle.multitarget", "player.buff(132573)" }},
{"Shadow Word: Death", {"toggle.multitarget", "player.moving"}},
{"Mind Blast", "toggle.multitarget"},
{"Devouring Plague", {"toggle.multitarget", "player.shadoworbs >= 3"}},
{"Halo", {"toggle.multitarget", "target.range >= 16", "target.range <= 30", "player.moving"}},
{"Halo", {"target.range >= 16", "target.range <= 30", "toggle.multitarget"}},
{"Shadow Word: Pain", {"toggle.multitarget", "Player.Moving"}},
{"Shadow Word: Pain", {"toggle.multitarget", "!target.debuff(Shadow Word: Pain)"}},
{"Mind Spike", {"toggle.multitarget", "target.debuff(Shadow Word: Pain).duration < 4"}},
{"mind flay", {"toggle.multitarget", "target.debuff(Shadow Word: Pain)"}},
-- If Moving
{"Power Word: Shield", {"player.moving", "!player.buff(6788)"}},
{"Dispersion", {"Player.moving", "player.health <= 20", "Player" }},
{"Shadow Word: Death", "player.moving"},
{"Mind Blast", "player.moving"},
{"Devouring Plague", "player.moving"},
{"Halo", {"target.range >= 16", "target.range <= 30", "player.moving"}},
-- Priority
-- Focus DOT target for 2 target fight --
{"Insanity", {"!toggle.multitarget", "player.buff(132573)", "target.health > 20"}},
{"Mind Blast"}, -- every time off CD
{"Shadow Word: Death", "target.health < 20"}, -- SW:Death if target < 20% health
{"Shadow Word: Death", {"toggle.TwoTargets", "focus.health < 20"}, "focus"},
{"Devouring Plague", "target.health < 20"},
{"Mind Spike", "player.buff(Surge of Darkness)", "target"},
--{"Halo", {"target.range <= 30", "target.debuff(Shadow Word: Pain).duration < 3", "player.shadoworbs = 4"}}, --"player.spell(Mind Blast).cooldown > 2",
{"Halo", {"target.range >= 16", "target.range <= 30", "toggle.TwoTargets"}},
{"Mind Spike",{"target.debuff(Shadow Word: Pain).duration < 3", "player.shadoworbs = 4", "!lastcast(Mind Spike)", "!lastcast(Halo)"}},
{"Shadow Word: Pain", {"toggle.TwoTargets", "!focus.debuff(Shadow Word: Pain)"}, "focus"}, -- Multi target SWP
{"Vampiric Touch", {"toggle.TwoTargets", "!focus.debuff(Vampiric Touch)"}, "focus"}, -- Multi target VT
{"Shadow Word: Pain", {"target.health > 20", "player.shadoworbs >= 4", "!target.debuff(Shadow word: Pain)"}}, -- Weave SWP
{"Vampiric Touch", {"target.health > 20","player.shadoworbs >= 4", "!target.debuff(Vampiric Touch)"}}, -- Weave VT
{"Devouring Plague", "player.shadoworbs = 5"}, -- DP
{"Devouring Plague", {"target.debuff(Vampiric Touch).duration > 1", "player.shadoworbs = 3" }}, -- Weave DP
{"Devouring Plague", {"target.health < 20", "player.shadoworbs = 3"}},
{"Insanity", {"!toggle.multitarget", "target.health < 20", "player.buff(132573).duration > 1", "player.spell(Shadow Word: Death).cooldown > 1.25", "player.spell(Mind Blast).cooldown > 1.25"}},
{"Mind Spike", {"target.debuff(Vampiric Touch).duration < 4"}},
{"Power Word: Shield", {"!player.buff(6788)"}},
{"Mind Flay", "target.health > 20"},
------------------
-- End Rotation --
------------------
}, {
---------------
-- OOC Begin --
---------------
{"Power Word: Fortitude", "!player.buff(Power Word: Fortitude)" },
{"15473", "!player.buff(15473)" },
-------------
-- OOC End --
-------------
},function()
ProbablyEngine.toggle.create('TwoTargets', 'Interface\\Icons\\ability_hunter_snipershot', 'Target/Focus','Set Boss as Focus and DPS target(s). Toggle off for single target boss dps.')
end)