Easiest way is probably just using a mod-key for devastate.
/startattack
/cast Bloodrage
/cancelaura Hand of Protection
/cancelaura Divine Intervention
/cast [mod:alt] Devastate
/cast Heroic Strike
There's no legal way to have a macro stop at 5 stacks by itself. This way you just have to press alt (or the modifier key of your choice, you can swap that ofc) to use devastate if you feel like it.
Easiest way is probably just using a mod-key for devastate.
/startattack
/cast Bloodrage
/cancelaura Hand of Protection
/cancelaura Divine Intervention
/cast [mod:alt] Devastate
/cast Heroic Strike
There's no legal way to have a macro stop at 5 stacks by itself. This way you just have to press alt (or the modifier key of your choice, you can swap that ofc) to use devastate if you feel like it.