I am trying to create a Holy Shock macro that allows me to do 2 things:
cast Holy Shock on a raid member by mousing over their raid frame
cast Holy Shock on an enemy when I have an enemy unit selected as my target
The problem I am having is that when I have an enemy unit as my target, sometimes Holy Shock will cast on a friendly unit if I accidentally place my mouse cursor over their character in the world.
So basically you’re hoping for a conditional that only listens to “mouseover” if its a raidframe and not a character? I’m not sure that exists.
Thank you! I sure hope so! You wouldn’t happen to know how to make something like this auto-self cast on myself when I don’t have a target or a mouseover, would you?
First it checks if you have a target to cast Holy Light. If that fails it casts Holy Light on yourself. This is also automatically done by the game if you check the “Auto Self Cast” option.
Thank you! Your Holy Light macro worked! I wish there was some way to avoid mouseovers in the game world from working with that Holy Shock macro. Any idea of an addon that might function in that way (only mouseovers on raid frames work, while mouseovers in the game world are ignored)? Thanks!
This is the macro I use on all my healers, the only aggravating part is that it makes it so you can’t use holy shock or penance offensively because they’re the only two heals in the game that are like that. I’d kill to have a macro that could do what this one does AND let me use those spells on enemy targets.
Im 3 years too late but if you are still looking for a macro, or are even still playing the game
Been using this macro since wrath, or was it mop? I cant remember. #showtooltip
/cast [@mouseover,help,nodead][exists,nodead][@player]Holy Shock
Have a friendly target but heal the mouseover friendly frame or player
Heal a friendly target when having no mouseover
Hostile target but heal the mouseover friendly player or frame
Damage hostile target when no mouseover
Hostile target but heal you when mouseover yourself