Dispel Magic Macro
WoW Classic Era Priest Macro
This macro casts Dispel Magic on your mouseover target without breaking your current target. It will only cast the spell if the target is friendly and alive. Additionally, the macro includes two other components: the first one will cast Dispel Magic on a hostile target as long as they're still alive, while the second one will trigger the macro on any target that exists, regardless of whether they're friendly or hostile. Finally, if you aren't targeting anything, [@player] will trigger the macro to cast Dispel Magic on yourself.
#showtooltip /cast [@mouseover, help, nodead] Dispel Magic;[harm, nodead][exists, nodead][@player] Dispel Magic