A helping/attacking macro using focus
I dualbox a pally/druid combo and have seen a few of the other leaderless macros that allow me to help/attack whatever the focus is targeting, but they didn't quite work right if I wasn't partied and they all locked the slave's target and didn't switch with the main right.
Occasionally I run with just the druid, so macros that refer to my paladin by name or party position (eg; target=party1) is not helpful if I am not group leader.
To solve this I poked around wowwiki and a few other threads and came up with this:
/cast [modifier:alt,target=player][target=focustarget,exists,help][target=playertarget,help][target=focus,exists] Abolish Poison
This allows me to /cast Abolish Poison (or anything helpful) under the following conditions in this order:
target myself if I happen to be controlling my toon at the moment and I hold down alt
[modifier:alt,target=player]
or
target my focus' target if the focus has a target (or if I even have a focus set) and it's helpful to the target
[target=focustarget,exists,help]
or
target my own target if it's helpful
[target=playertarget,help]
or
target the focus if I have a focus
[target=focus,exists]
Now when I want to abolish poison (or remove curse, or cast thorns, motw, etc) it will work from my main as well as my slave, grouped, focused, solo or otherwise!
I just figured this out, so I might play with the order of the conditions in case my focus is targeting a friendly I don't want to cast at and I want the slave's target to be first condition in line.
This also works for attack spells as well, eg:
/cast [target=focustarget,exists,nodead,harm][target=playertarget,exists] Starfire
Cast Starfire at:
My focus' target (if I have a focus and they are targeting a target that is alive and unfriendly)
[target=focustarget,exists,nodead,harm]
or
my own target if I have something targeted
[target=playertarget,exists]
You might change the order if it's desirable for you to "set" your slave's target pre-fight and you want to leave it there. I read in another thread a few people like to do this when fighting mobs with minions.
Hope that helps someone!
RE: A helping/attacking macro using focus
Quote:
Originally Posted by 'Outlaw73',index.php?page=Thread&postID=129974#pos t129974
This also works for attack spells as well, eg:
/cast [target=focustarget,exists,nodead,harm][target=playertarget,exists] Starfire
You can write it as:
Code:
/cast [target=focustarget, harm][harm] Starfire
This will cast Starfire on your focustarget if it is an enemy otherwise it will cast on your current target if it is an enemy. There are numerous examples in the threads that discuss setting your main as focus.