need help with my PTR Protection macro

Hello

I trying to make a proc macro, but it just wont load on the ptr :(, can any1 help me pls…

Talent i use is: 3,3,1,3,2,3,1

My Macro is:

Sequences['PaladinTank'] = {
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 [combat]Avenging Wrath
]],
   '/cast Hammer of the Righteous',
   '/cast Consecration',
   '/cast Judgment',
   '/cast Shield of the Righteous',
PostMacro = [[
/startattack
/cast [combat]Light of the Protector

/use [combat]13
/use [combat]14
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
}

Fixed it for ya
also removed unnecessary code


Sequences['PTank'] = {
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 Hammer of the Righteous',
   '/cast Consecration',
   '/cast Judgment',
   '/cast Shield of the Righteous',
PostMacro = [[
/startattack
/cast [combat] Light of the Protector
/cast [combat] Avenging Wrath
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Clear()
]],
}


Ty John, for your help :slight_smile: