Is it possible to make a macro that when you left click on the icon, it casts it on yourself, and if you right click, it casts it on your focus, and if you don't have a focus it casts it on your pet?
Is it possible to make a macro that when you left click on the icon, it casts it on yourself, and if you right click, it casts it on your focus, and if you don't have a focus it casts it on your pet?
I believe this would work, have not tested.
#1Perhaps you could try this one for the petCode:#showtooltip Spirit Mend /cast [button:1] Spirit Mend /cast [button:2][@focus] Spirit Mend
#2Edit: Added #2.Code:#showtooltip Spirit Mend /cast [button:1][@pet] Spirit Mend /cast [button:2][@focus] Spirit Mend
#3Edit: I am 99.9% certain that #3 will work perfectly as it is my Misdirect macro with the MD changed to Spirit Mend.Code:#showtooltip Spirit Mend /cast [target=focus, exists, nodead],[target=pet, exists, nodead] Spirit Mend
Edit: Also with #3 there is no need for right or left clicking. But here's another to try and help with that.
#4Now that last one I am not 100% certain if it will work or not.Code:#showtooltip Spirit Mend /cast [button:1][target=player],[button:2][target=pet] Spirit Mend
Edit: You can also switch "[target=????]" with [@????]" They do the same thing.
Last edited by Serj Tankian; 2011-03-13 at 12:44 AM.
Would something like this work?
#showtooltip Spirit Mend
/cast [button:1] Spirit Mend
/cast [button:2][@focus,nodead][@pet] Spirit Mend
If I'm reading it correctly, if I left click, it'll cast on myself, if I right click it, it'll cast it on my focus target, if it's alive. If I don't have a focus, or it's dead, it'll cast it on my pet?
---------- Post added 2011-03-12 at 07:20 PM ----------
This works:
#showtooltip Spirit Mend
/cast [button:2] [@saedora] Spirit Mend <<<<<<<<<<(put your name in here)
/cast [button:1] [target=focus, exists, nodead],[target=pet, exists, nodead] Spirit Mend
left click to cast on yourself, right click to cast at your focus, or pet, if your focus doesn't exist.
Last edited by redsunrising15; 2011-03-13 at 01:55 AM.
You can use "player" to indicate casting onto yourself.
/cast [button:2] [target=player] Spirit Mend
Euhm... I use this. Works like a charm!
/tar YourNameHere
/use Spirit Mend
The one above makes you switch targets to yourself.....this is not good in the middle of a fight so I tweaked it a little...In order to use my macro you will have to set YOURSELF as your focus..... similar to the way you do tanks in raids for your MD macro.....this way you don't have to switch targets mid fight!
/cast [target=focus] Spirit Mend
Saltydawgz of Undermine
how about /cast [target=yournamehere] Spirit Mend?
I just have it on auto cast. Sometimes my little one is smart and will cast it on someone whose low on health, other times he just sits there going "what do?"
EDIT: Was talking to the person just above me, for some reason it didnt show anyone elses posts so it looked like s/he was the thread creator. My badness
#showtooltip Spirit Mend
/cast [button:2][target=player] Spirit Mend
/cast [button:1][target=focus, exists, nodead],[target=pet, exists, nodead] Spirit Mend
This should do the trick. Left-click casts on yourself, right-click casts on your focus if you have one or your pet if not.
#4Now that last one I am not 100% certain if it will work or not.Code:#showtooltip Spirit Mend /cast [button:1][target=player],[button:2][target=pet] Spirit Mend
You have to be 100% sure Coz you are.
This one works as what OP wants, just tested:
/cast [button:1,@player] Spirit Mend; [button:2,@focus] Spirit Mend; [@pet] Spirit Mend
When you create macros with conditions, if you type
What it means is: "if Condition A OR Condition B then cast Spell./cast [condition A][condition B] Spell
In order to make them have 2 conditions at once, you gotta type it like this:
Which would mean "if condition A AND condition B then cast Spell"/cast [condition A, Condition B] Spell
Last edited by Sylar Hao; 2012-09-05 at 09:27 PM.
LeyrHao: How could that be modified, like if i wanted to have Shift+Button 1 or 2.
@Danko215: just include the modifier as
/cast [mod:shift, button:1] Spirit Mend