_**Spirit Mend macro**_
This will select a mouseover target if it’s friendly, and if there is none, will default to you.
/cast [@mouseover,help][@player] Spirit Mend
This will select your pet using Alt, if it is the focus using Control and if there is no modifier, will default to you.
#showtooltip Spirit Mend
/cast [nomod, @player] Spirit Mend
/cast [mod:ALT,@pet,exists] Spirit Mend
/cast [mod:CTRL,@focus,exists] Spirit Mend
and copied from Blizz’ UI and Macro’s Forum :
Casts Spirit Mend on a friendly mouseover
Casts Spirit Shock on an enemy Mouseover
Casts Spirit Shock on the current target if its an enemy
Casts Spirit Mend on myself if I have no friendly mouseover and no enemy mouseover
/cast [mod:alt,@player] [@mouseover,help,nodead] Spirit Mend; [@mouseover,harm,nodead] [harm] Spirit Shock; [@player] Spirit Mend
otherwise go and see Sir Ewing’s post at this post