I’m trying to write this macro so that it casts Intervene if my mouseover if friendly, Charge at my mouseover if hostile, and otherwise Charges my target if no mouseover is present. The first two work but if I just try Charging my target it just gives me the “You have no target” error.
I played around a bit, and got the same results with your macro. Changing the “noharm” to “help” appears to fix the macro. Best I can guess is that “noharm” isn’t implying exists, which is tripping up the macro. (Edit: did a quick check, and that does appear to be the case. Adding exists to your macro for the Intervene also fixes it. Of course, “help” is a lot shorter than “noharm,exists”.)
idk if anyone even still needs this but this is my AIO Charge Macro: #showtooltip Charge
/cancelaura Bladestorm
/cast [@mouseover, exists, help, nodead] Intervene
/cast [@mouseover, exists, nodead, harm] Charge
/cast Hamstring
Binds Intervene and Charge and Hamstring and if needed cancel bladestorm to all 1 Press