Help
Moderator: Demon Hunters
Help
Because I am terrible at writing macro's that arn't super simplified and sloppy, I ask for help (looking at EB or Lealla).
Can you construct a macro for me to Earth Shield my focus without having to actually click or switch targets onto him/her. I have a general idea of how to do it, but I figure you'd get it right the first time.
Can you construct a macro for me to Earth Shield my focus without having to actually click or switch targets onto him/her. I have a general idea of how to do it, but I figure you'd get it right the first time.
No.
- Lealla
- Class Leader
- Posts: 3797
- Location: Orefield, PA
- WoW character race: Night Elf
- WoW character class: Druid
- WoW character gender: Female
- WoW character level: 100
- WoW character guild: You and Whose Army
- Contact:
Well, assuming that you set your focus beforehand...
If you'd rather not use focus and don't mind editing your macro to fix the MT's name each time, you could use this instead (using a name in the target conditional works if the unit is in your party or raid)...
If you want to preserve your self-casting key option, use this:
Lastly, remember that the macro cannot test for range, so if you have a valid target for the conditional, but it's out of range, you will not be able to cast ES at all. You could force an override by adding a modifier key, so that the macro will use the default spell behavior when you hold Shift or Ctrl.
Code: Select all
#showtooltip
/cast [target=focus,help,nodead] [] Earth Shield
Code: Select all
#showtooltip
/cast [target=Hyrion,help,nodead] [] Earth Shield
Code: Select all
#showtooltip
/cast [mod:SELFCAST,target=player] [target=focus,help,nodead] [] Earth Shield
Code: Select all
#showtooltip
/cast [mod:SELFCAST,target=player] [target=focus,nomod,help,nodead] [] Earth Shield
Code: Select all
#showtooltip Earth Shield
/focus [target=focus,noharm][target=focus,dead]
/clearfocus [target=focus,noharm] [target=focus,dead] [mod:ctrl]
/cast [target=focus,exists] Earth Shield
-Heart

At the brink of danger I stand. Clad in armour, shield and sword in hand.
- Lealla
- Class Leader
- Posts: 3797
- Location: Orefield, PA
- WoW character race: Night Elf
- WoW character class: Druid
- WoW character gender: Female
- WoW character level: 100
- WoW character guild: You and Whose Army
- Contact:
Heart's macro will set focus automatically, even if you'd rather not in a particular situation. My preferred method is to set focus on Shift, clear it on Ctrl, and then have the spell figure out the appropriate target.
Using the above macro, you will only ever focus on a friendly target, and will only attempt to cast on a living, friendly target. I omitted the other conditions for clearing focus because you may not want to reset it automatically if the tank is dead or if you're using it for something else; in these cases it'll just target normally.
Oh, and as a last resort, you can also combine this with mouseover casting, as follows:
Code: Select all
#showtooltip
/focus [mod:shift,help]
/clearfocus [mod:ctrl]
/cast [mod:SELFCAST,target=player][target=focus,help,nodead][] Earth Shield
Oh, and as a last resort, you can also combine this with mouseover casting, as follows:
Code: Select all
#showtooltip
/focus [mod:shift,target=mouseover,help][mod:shift,help]
/clearfocus [mod:ctrl]
/cast [mod:SELFCAST,target=player][target=focus,help,nodead][target=mouseover,help,nodead][] Earth Shield