Conditional macros - /stopcasting if channeling, else /cleartarget

I’m trying to make a double-action hotkey: cancel spell cast, otherwise clear the target.
In practice, if there is a spell cast going on, the macro would only cancel the spell cast. If no cast is being made, it would clear the target.

I’m trying to make it since all too often I found myself mashing escape one time too many, and popping up the menu UI by accident. It’s especially annoying when I use Hover on a Dracthyr Evoker.

My trouble is that even if it sounds simple:

/stopcasting [channeling]
/cleartarget [nochanneling]

For some reason when I use the above during a spell cast, it only clears the target rather than aborting the spell. What’s the correct syntax?

Your macro is working as it should. Unfortunately [channeling] only works for, well, channeled spells, such as Disintegrate. With that, it will behave as you want. I don’t know if there’s a way to fulfill your wish for all spells.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.