Here is the first iteration of the Prot Pally tanking macro for Legion. I’ve just returned to WoW so i’ll continue to improve this as I progress.
Sequences['Prot'] = {
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 Avenger's Shield",
'/cast Judgment',
'/cast Consecration',
'/cast Eye of Tyr',
'/cast Blessed Hammer',
PostMacro = [[
/cast Hand of the Protector
/cast Divine Protection
/cast Avenging Wrath
/startattack
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}