Code:
local GUI = {
}
local exeOnLoad = function()
MTSCR.ExeOnLoad()
end
local notcasting = '!player.casting(Mind Blast) & !player.casting(Vampiric Touch) & !player.casting(Void Eruption) & !player.channeling(Mind Sear) & !player.channeling(Void Torrent)'
local StAI = {
{'!Void Eruption'},
{'!Mind Blast'},
{'!Shadow Word: Death', 'player.insanity < 65'},
}
local CDs = {
{'Shadowfiend'},
{'Mindbender'},
{'Power Infusion'},
{'!Void Torrent', notcasting},
{'!Dispersion', 'spell(Mind Flay).casting & player.buff(Voidform).count > 50 & player.insanity < 10'},
{'!Dispersion', 'spell(Mind Flay).casting & player.buff(Voidform).count > 50 & player.insanity < 30 & player.health < 40'},
}
local AoE = {
{'Mind Bomb'},
{'Mind Sear'},
}
local ST = {
--{'Shadowform', '!player.buff'},
{StAI, notcasting},
{'Shadow Word: Pain', 'target.debuff(Shadow Word: Pain).duration < 3'},
{'Vampiric Touch', 'target.debuff(Vampiric Touch).duration < 3'},
{'Mind Flay', nil, 'target'},
{'Mind Spike'},
}
local inCombat = {
{CDs, 'toggle(cooldowns)'},
{AoE, 'keybind(lshift)'},
{'Mass Dispell', 'keybind(lalt)', 'mouseover.ground'},
{ST},
}
local outCombat = {
{'Power Word: Shield', 'player.moving', 'player'},
}
NeP.CR:Add(258, '[|cff'..MTSCR.Interface.addonColor..'MTS|r] Priest - Shadow', inCombat, outCombat, exeOnLoad, GUI)
I give all my CR work to MTS to distribute as his CRs in his pack, but I'm pretty sure he's going to stop writing CRs all together and just focus on NEP core and other stuff.