That macro shouldn’t work, SoR is on the GCD so it can’t be combined with other abilities, and Blizz has a history of only caring whether or not you know a spell when it comes to triggering the GCD, not whether or not it’s castable.
Emphasis mine.
That said, assuming I’m wrong, /startattack
doesn’t change your target, if you have one, the only time it’ll pick a target is if you don’t currently have one. But again, like the previous macro you could just stick [harm]
on it, same with Judgment.