Take the best and leave the rest… enjoy.
Sequences['FrostDPS'] = {
StepFunction = [[
order = newtable(1, 5, 6, 7, 1, 2, 1, 1, 1, 1, 1, 2, 2, 4, 3, 3, 3)
newstep = (newstep and (newstep % #order + 1)) or 2
step = order[newstep]
]],
PreMacro = [[
/targetenemy [noharm][dead]
/cast [nopet] summon water elemental
/petattack [@target,harm]
]],
PostMacro = [[
/startattack
/use [combat,nochanneling]13
/use [combat,nochanneling]14
]],
-- Macro 1 - Main Single Target Sequence For Frostmage
[[
/castsequence reset=combat/target frostbolt, Frostbolt, Frostbolt, Ice lance, Ice Lance, Ice Lance, Frostfire Bolt',
]],
-- Macro 2 - Frostbolt
[[
/cast Frostbolt
]],
-- Macro 3 - Ice Lance
[[
/cast Ice Lance
]],
-- Macro 4 - Frostfire Bolt
[[
/cast Frostfire Bolt
]],
-- Macro 5 - Ice Barrier
[[
/cast !Ice Barrier
]],
-- Macro 6 - Icy Veins
[[
/cast !Icy Veins
]],
-- Macro 7 - Deep Freeze
[[
/cast Deep Freeze
]],
}