GS Macro 1 button Work in progress

Hi.
Talents: 3132111.
Work in progress

Sequences["Priestdps"] = {
	StepFunction = [[
		limit = limit or 1
		if step == limit then
			limit = limit % #macros + 1
			step = 1
		else
			step = step % #macros + 1
		end
	]],
	PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
/cast [noform] !shadowform
	]],
            '/cast [nochanneling] Shadow Word: Death',
            '/cast [nochanneling] !mind blast',
            '/cast [nochanneling] !cascade',
            '/castsequence [nochanneling] reset=target devouring plague,mind flay',
            '/castsequence [nochanneling] reset=target mind spike',                                                                                                                                   
            '/cast [nochanneling] !Shadowfiend',                                                                                                                                                                                                                 
            '/use [combat][nochanneling] draenic intellect potion',
            '/use [combat][nochanneling] 13',                           	                                           
	PostMacro = [[
/console Sound_EnableSFX 1
	]],
}