Macro not working

So I found this macro on several websites and they all show it being the same exact thing:

#showtooltip
/cast [@mouseover, help, nodead] [help, nodead] Lesser Healing Wave;
[harm, nodead] Lightning Bolt

It should cast heal on a friendly target, and should cast lightning bolt on an enemy, but it does neither. It just says in party chat "harm, nodead lightning bolt.

Now I changed it a little to:

#showtooltip
/cast [@mouseover, help, nodead] [help, nodead] Lesser Healing Wave;
/cast [@mouseover, harm, nodead] Lightning Bolt

And now it does cast the heal on friendly targets at least, but won’t cast lightning bolt.

I am aplying on the Classic TBC server if it makes a difference.

What am I doing wrong?

You’ve got your condition order wrong.

1 Like

I suspect that in the first macro, you’ve got a return character before the second line, so it’s interpreting it as a new line without a slash command in front of it. (Which will go to chat.) That’s why adding the slash command to the second line worked to fix it. However, it’s best macro practices to use only one command line for a single intended cast to avoid weirdness. Your first macro will work fine if you delete the carriage return.

#showtooltip
/cast [@mouseover, help, nodead] [help, nodead] Lesser Healing Wave; [harm, nodead] Lightning Bolt

As for the conditional order that Elvenbane mentioned, it depends on what you want to do. Your original macro doesn’t have a mouseover option for the enemy target. If you want a mouseover option for enemy targets, then use one of Elvenbane’s macros.

1 Like