Originally Posted by
Reyll
If Judgement is on cooldown
Not possible.
Here's what you want, just without the cooldown part:
Code:
#showtooltip
/use [@mouseovertarget,harm] Judgment; [@mouseover,help][@player] Flash of Light
This will cast Judgment on your mouseover's target if it's an enemy. If your mouseover is friendly and doesn't have an enemy targeted, cast Flash of Light on them. If you have no mouseover or your mouseover doesn't fit the last two conditions, Flash of Light yourself.
I assume when you say target, you actually meant mouseover, since you stated you wanted a mouseover healing macro. "Mouseover" and "Target" are two different things.
Going back to Judgment's cooldown, you may run into an issue where your macro will continue to try to cast Judgment if your mouseover has an enemy targeted, even if it's on cooldown. This is intended behavior, since macros doing things based on cooldowns leads to one button rotations and Blizzard considers that automation.