Interrupt focus macro help

Shaman
Hi everyone, I need help with an interrupt macro that will do the following:

Cast wind shear on my focus if I don't have a target. If I have a target to cast it on my target instead.

Any help will be greatly appreciated.

Thanks in advance.
I'm not an expert with macros, but I think something along the lines of:

/cast [target=focus, exists, harm, nodead] Wind Shear; Wind Shear.

Might work. Could use some good polishing, though,
/cast [harm] Wind Shear; [target=focus,harm,exists] Wind Shear

u can add a modifer key to switch between the 2

/cast [mod:shift, target=focus, harm, exists][harm] Wind Shear

this should work when you press the shift key it will target your focus, but when u just hit the macro it will it you current target
You can now shorten "target" with @ instead.
/cast [@focus] your_spell
I use

#showtooltip wind shear
/stopcasting
/cast [@focus] wind shear
I use


#showtooltip Wind Shear
/stopcasting
/clearfocus [modifier:shift]
/clearfocus [target=focus,dead]
/clearfocus [target=focus,noexists]
/focus [target=focus,noexists]
/cast [target=focus] Wind Shear


It's an old macro..works but I'm sure it can be cleaned up.

Edit:

Didn't read OP correctly...Caizer's macro should work for you want.
Thanks everyone for your replies!
What does the "harm" mean in these macros?
02/15/2011 1:44 PMPosted by Superbowl
What does the "harm" mean in these macros?


Harm – Evaluates ‘true’ if target is hostile

http://borkweb.com/story/world-of-warcraft-20-macros

explains the values there

Join the Conversation

Return to Forum