GS Feral dps macro

Let me know what you guys think =)

Sequences['FDPVPD'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
		step = step % #macros + 1
PreMacro = [[
/targetenemy [noharm][dead]
	'/cast Wild Charge',
	'/castsequence [nochanneling] reset=50 Mighty Bash',
    '/castsequence [nochanneling] reset=combat rake,shred,shred,rip,shred,shred,Ferocious Bite',
    '/castsequence [nochanneling] reset=combat berserk',
	'/cast [nochanneling] rake',
	'/cast [nochanneling] shred',
	'/cast [nochanneling] shred',
	'/cast [nochanneling] rip',
	'/cast [nochanneling] shred',
	'/cast [nochanneling] shred',
	'/cast [nochanneling] Ferocious Bite',
PostMacro = [[
/cast [combat] berserk
/cast [combat] Incarnation: King of the jungle
/cast [combat] Nature's Vigil
/cast [combat] Tiger's Fury
/console Sound_EnableSFX 1

Pvp or pve?

Looking at its name i was guess pvp

Can only get it to apply the first rake then it locks up, no idea why.