This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.5
PTR
10.2.6
Macro - cast on mouseover if nothing targeted
Post Reply
Return to board index
Post by
1114221
This post was from a user who has deleted their account.
Post by
Splondir
#showtooltip
/cast SpellThis will work. By listing the mouseover second, the other condition will be checked first.
You don't need to do
because
@target
is already assumed as the default; the follow three are the exact same./cast Fireball
/cast Fireball
Post by
Mike
#showtooltip
/use Swiftmend
/use Rejuvenation
This is what I use for one of my healing macros.
If mouseover - heal mouseover
if target, WITH mouseover - heal mouseover.
If target, no mouseover - heal target
if no target no mouseover - heal self/player
you may be able to butcher it to your needs.
Post by
Nulgar
I know that #showtooltip
/cast will cast on target if mouseover doesn't exist implies , so that can be omitted :) See
Macro conditionals#exists
Post by
pelf
A few minor points to add...
Assuming
SPELL
is an offensive spell.
/cast
Adding
harm
will avoid issues where you've moused over something friendly. If "Auto Self Cast" is disabled, instead of falling back to the
behavior for a defensive-spell macro...
/cast
...under "Auto Self Cast", it will first examine your
target
to determine if it is a valid target -- if it is, then it will cast on
target
; if not, it will try to cast it on
player
. That setting can save some macro space as, without it, the equivalent macro would be...
/cast SPELL
To the actual OP ... as they said, yea, priority is just a matter of which conditional is listed first. It only gets complicated if you have a dual-purpose macro like this...
#showtooltip
/cast Spellsteal; Remove Curse; Spellsteal; Remove Curse; Remove Curse
Yikes.
Before someone says, "Silly pelf,
harm
implies
exists
," there was a bug with that for a long time where it didn't. Not sure if it's fixed now.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.