When I'm targeting someone in the raid it should cast Righteous Defense on them.
When I'm targeting a mob that's targeting someone else in the raid it should cast Hand of Reckoning on the mob, or Righteous Defense on the player if shift is held down (or if HoR is on cooldown?).
When I'm targeting a mob that's targeting me, Righteous Defense should be 'activated' on my cursor and I should be able to click anyone in my raid frames to cast it on them.
Possible? Or at least something similar?
Edit:
Would this work? I have no way of testing it out since I'm not on the PTR
#showtooltip
/cast [noharm,nodead][modifier:shift,target=targettarget,noharm,nodead]Righteous Defense;
[harm,nodead]Hand of Reckoning;
[target=targettarget,noharm,nodead]Righteous Defense
Note: noharm seems to work better with NPCs than help does, that's why it's there.
This doesn't automatically use RD if HoR is on cooldown, but I don't think that's possible without a castsequence macro, and I don't know how you'd fit all these conditionals in a castsequence.
Edit 2:
Only just realized that this doesn't account for when a hostile mob you have targeted is targeting you. As far as I know there is no conditional to check if the targeted mob has you targeted. I am assuming you can still use HoR by default on a mob that is targeting you.
