Mouseover heal/harm No Target Cast On Self

So like the title says is there a way to do this type of macro?

Something with this format should work:

#showtooltip
/cast [@mouseover, harm, nodead]Damage Spell;[@mouseover, help, nodead][@player]Helpful Spell

That particular macro will ignore what you actually have targetted and work only on mouseover. If you want to add in options for your target, it would look like this:

#showtooltip
/cast [@mouseover, harm, nodead][harm,nodead]Damage Spell;[@mouseover, help, nodead][help,nodead][@player]Helpful Spell
1 Like

I do not know if it is my stupidness showing but what does that actually mean. Like if i have a enemy targeted it will only cast a helpful spell on mouseover. I am sorry for the lack of knowledge but i guess i am just stupid and need a explanation like a 5 year old.

You can think of macros as a series of if/then statements read left to right. When multiple conditionals are in one set of [], then all must be true for that conditional to register as true. As soon as one registers as true, it executes it, then stops.

So, for the first macro I posted:

#showtooltip
/cast [@mouseover, harm, nodead]Damage Spell;[@mouseover, help, nodead][@player]Helpful Spell

[@mouseover, harm, nodead] >> If your mouse is over a target that is hostile and not dead, it will cast “Damage Spell”

If not, it moves on to the next conditional:
[@mouseover, help, nodead] >> If your mouse is over a target that is friendly and not dead, it will cast “Helpful Spell”

(Note that when you have a list of several conditionals that you want to work with the same spell, you can just put the spell at the end off all of those conditionals.)

So, if that’s also not true, then:
[@player] >> This is always true, so it will cast “Helpful Spell” on you.

As you can see, order is important. If you started with [@player], as it’s always true, you macro would always stop there. That’s why you want it at the end.

Here’s the breakdown for the second macro:

#showtooltip
/cast [@mouseover, harm, nodead][harm,nodead]Damage Spell;[@mouseover, help, nodead][help,nodead][@player]Helpful Spell

If your current mouseover is hostile and not dead, then cast Damage spell on your mouseover
Else if your current target is hostile and not dead, then cast Damage spell on your target
Else if your current mouseover is friendly and not dead, then cast Helpful spell on your mouseover
Else if your current target is friendly and not dead, then cast Helpful spell on your target
Else cast Helpful spell on your character

2 Likes

so if i wanted the second one to only work on targeted mobs would i just leave the @mouseover off of it?

Yup. If you just want it to work on targetted stuff and not mouseover you’d get:

#showtooltip
/cast [harm,nodead]Damage Spell;[help,nodead][@player]Helpful Spell
1 Like

Pins are your friend