need help with my PTR Surviavel Hunter macro

I Cant get it to vork in game, and i cant see what is a problem with the macro, pls help me out…

this is the macro:

Sequences['SVHST'] = {
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 Mongoose Bite',
'/cast Lacerate',
'/cast Flanking Strike',
'/cast A Murder of Crows',
'/cast Raptor Strike',
PostMacro = [[
/startattack
/use [combat]13
/use [combat]14
]],
}

it is not my own creation :slight_smile:

Jimmy


Sequences['SurvivelH'] = {
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 Mongoose Bite',
'/cast Lacerate',
'/cast Flanking Strike',
'/cast A Murder of Crows',
'/cast Raptor Strike',
PostMacro = [[
/startattack
/use [combat]13
/use [combat]14
]],
}

Try this

ty Spoony for your help