Need help with code

The code below keeps saying spell not ready. the spells are off cool down but he only auto attacks. I will target the enemy and do outbreak, raise pet and unholy blight. It only shows the tool tips for other spells but never does them. I am trying to create on i can spam.

Sequences["Unholy"] = {
	StepFunction = [[
		limit = limit or 1
		if step == limit then
			limit = limit % #macros + 1
			step = 1
		else
			step = step % #macros + 1
		end
	]],
PreMacro = [[
/targetenemy [noharm][dead]
/cast [combat] Outbreak
/cast [nopet] Raise Dead
/cast [combat] Unholy Blight
    ]],
	'/cast Plague Strike',
	'/cast Death Strike',
	'/cast Soul Reaper',
	'/cast Scourge Strike',
	'/cast Festering Strike',
	'/cast Death Strike',
PostMacro = [[
/use [combat]13
/use [combat]14
/cast [combat] Summon Gargoyle
    ]],
}

Hey Jesse,

Put these also in your postmacro:

/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1

Cheers,

Tim Roeleveld