[Macro Help] cast on hostile mouseover if available, otherwise target

Hey all, having a lot of trouble getting this macro to work (assuming its even possible).

What I’m looking for is a macro that will cast Solar Beam on my mouseover target if I have one and on my primary target if I don’t have my mouse over anything.

So far I’ve only been able to get it to cast on my mouseover if I don’t have a primary target at all, and as soon as I have a primary target it ignores what I have my cursor over.

This should work. I tested it on my shaman and did what you were asking.
/cast [@mouseover,harm] Lightning Bolt; Lava Burst

/cast [@mouseover,harm] Solar Beam; Solar Beam

1 Like

That works, thanks a lot

Pins are your friend

1 Like

Elvenbane’s example includes NODEAD which i also recommend if you want to make sure the macro always works

/cast [@mouseover,harm,nodead] Lightning Bolt; Lava Burst