Anyone good with macros? Mouseover/Other

Hey, I’m setting up my addons for TBC Classic and I just can’t get this to work:

#Showtooltip

/cast [mod:shift, @arena2] Hibernate (Rank 2); [mod:ctrl,@mouseover] Moonfire(Rank1); [nodmod] Moonfire(Rank8),

I know that arenas aint a thing so that won’t work, but the part of the macro which is broken for me is:

If I don’t have a mouseover when I press control it simply says “You have no target”, but if I have a target and NO mouseover I want it to throw the moonfire (rank 1) on my target.

That is the only issue I have with it, but its driving me crazy.

I have also tried writing [@target] but can’t get it to work

The way i deal with multitargeting is via /focus.
I have my scroll up down and in to put arena 1 2 3 on focus.
if i do shift scroll up or down it puts my current target on focus
if i do ctrl it does my mouseover target on focus.
And all my CC keybinds when done with shift modifier go on the /focus target.

Your macro only casts Moonfire(Rank1) when you are pressing control AND there is a mouseover. So just need to add a new condition where Moonfire(Rank1) casts when you have control pressed down that doesn’t rely on anything else:

#Showtooltip
/cast [mod:shift, @arena2] Hibernate (Rank 2); [mod:ctrl,@mouseover][mod:ctrl] Moonfire(Rank1); [nodmod] Moonfire(Rank8)

I don’t play Classic so couldn’t test it in-game, but that should work as offensive spells have an implicit @target when cast.