I'm trying to create a macro for purify/dispel magic since I want it to be on the same keybind and this is what I want it to do:
1. If mouseover is on friend, cast purify
2. If mouseover on enemy and target is on enemy, cast dispel magic
3. No mouseover nor target, purify on self
I tried to fix it myself, but I was struggling with step 2. As you can see, it doesn't say anything about having to target aswell as having mouseover on enemy if I want Dispel Magic.
/cast [help,target=mouseover,exists] Purify; [harm,target=mouseover,exists] Dispel Magic; Purify