GS macro skipping arcane shot a lot

I’ve started to notice a lot lately that this has been skipping Arcane Shot quite a bit, even at full focus. Any ideas?


Sequences['HunterDPS'] = {
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]
/console Sound_EnableSFX 0
]],       
	'/cast [nochanneling] Bestial Wrath',
	'/cast [nochanneling] A Murder of Crows',
	'/cast [nochanneling] Kill Command',
	'/cast [nochanneling] Barrage',
	'/cast [nochanneling] Arcane Shot',
        '/cast [nochanneling] Focus Fire',
        '/cast [nochanneling] Cobra Shot',
PostMacro = [[
/startattack
/petattack
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
}

And I think I answered my own question…

I copied this from an older macro. Probably didn’t need the StepFunction. Took it out, and all seems right in the world again.