That's easily doable though I've never ran into an issue where my current setup doesn't work. That said I am only on council in ToT currently so maybe later fights it won't work. Could create a seperate rotation for those particular bosses as well if it's only specific ones. If I remember my own code correctly, currently guard is fired if you are below a current health amount to allow your vengeance to stack up and make a bigger bubble as I don't agree at all with people who simply use it on CD.
What did you want to see? The general rotation code is basically done at this point so I open to suggestions for new updates.