Pins are your friend
#showtooltip
/cast [mod:alt,@player] [@mouseover,help,nodead] Shadow Mend; [@mouseover,harm,nodead] [harm] Smite; Shadow Mend
A common misconception. With regards to macros, the self cast key only initializes a variable SELFCAST
that you can use in place of ctrl/shift/alt etc. It doesn’t automatically affect them at all.
https://wow.gamepedia.com/Macro_conditionals#Modifier_Variables