Code:
-- SPEC ID 258
-- 12/30/14 - Updated by thefrobel
ProbablyEngine.rotation.register(258, {
--------------------
-- Start Rotation --
--------------------
{ "Shadow Form", "!player.buff(Shadowform)" },
-- Cooldowns
{ "Power Infusion", "modifier.cooldowns" },
{ "Shadowfiend", "modifier.cooldowns" },
-- Keybinds
{ "Mind Sear", "modifier.shift" },
{ "Mind Sear", "modifier.shift" },
-- If Moving
{ "Power Word: Shield", "player.moving" },
{ "Mind Blast", "player.moving" },
{ "Shadow Word: Death", "player.moving" },
{ "Devouring Plague", "player.moving" },
-- Priority
{ "Shadow Word: Death", "target.health < 20" }, -- SW:Death if target < 20% health
{ "Mind Blast", "player.shadoworbs < 5" }, --Mind Blast less then 5 orbs
{ "Shadow Word: Pain", {"player.shadoworbs >= 4", "!target.debuff(Shadow word: Pain)" }}, -- Weave SWP
{ "Vampiric Touch", {"player.shadoworbs >= 4", "!target.debuff(Vampiric Touch)" }}, -- Weave VT
{ "Devouring Plague", "player.shadoworbs = 5" }, -- DP
{ "Insanity", "player.buff(Shadow Word: Insanity).duration > 1" }, --Insanity with Proc Up
{ "Devouring Plague", {"target.debuff(Vampiric Touch).duration > 1", "player.shadoworbs = 3" }}, -- Weave DP
{ "Mind Spike", "target.debuff(Vampiric Touch).duration < 3" },
------------------
-- End Rotation --
------------------
}, {
---------------
-- OOC Begin --
---------------
{ "Power Word: Fortitude", "!player.buff(Power Word: Fortitude)" },
{ "Inner Fire", "!player.buff(Inner Fire)" },
{ "Shadow Form", "!player.buff(Shadowform)" },
-------------
-- OOC End --
-------------
})
Need to spruce up the execute portion of this. Is .timeToDie a built in function ? or something like it?