Target Macro Options?

Hey there, returning from a long hiatus (WOD) and trying to be a better player. I’m just getting my feet wet at level 45 and healing levelling dungeons. Looking for a targeting macro to help improve my damage contributions.

I had been using [@mouseovertarget] macroed to all of my dps abilities to easily attack the tanks target when hovering over their party frame. Recently changed over to help/harm macros so this won’t do anymore.

I’m trying to create a macro which will target my friendly mouseover’s target, else target my enemy mouseover target, else target nearest enemy. All in one button. Can’t seem to make it work.

Closest I’ve gotten is /target [@mouseovertarget,harm,nodead]; [@mouseover,harm,nodead];

I can’t figure out the third part. Any help/input is appreciated!

Not quite what you asked for but it gives you better control imo.

You will probably be better off using a macro like Elvenbane posted.

However, I played around and I think this will do what you want:

/target [@mouseovertarget,harm,nodead][@mouseover,harm,nodead]
/targetenemy [noexists][help]

If you don’t want it to target an enemy if you have a friendly target, then drop the [help].

Thanks to both for the help!

I may have to re-think my play style and ui/keybind strategy. Thanks!