As you may know, there is an option in RIFT for self-cast: Settings > Interface > Combat > Auto Self-Cast
If you enable the option, when you have an enemy targeted and cast a beneficial spell that can be cast on other players, that spell is cast on you, but your enemy remains as your target. This is the behavior I typically want in PVP.
However, that UI option does not work if you are using a macro!
Take for example the following Cleric macro which is intended for self-healing:
#show Healing Breath suppressmacrofailure cast Healing Breath cast Doctrine of Bliss cast Healing Grace
If you have an enemy targeted and cast that macro to heal yourself, the target in the UI switches from your enemy to you if the spell cast is Healing Breath or Healing Grace, because those spells can be cast on other players. This can be really annoying to deal with, especially in group / raid fighting when you want to keep the same enemy targeted.
There is a simple fix to get Auto Self-Cast working for macros. Simply add the @self parameter for any spells that you want to be cast on yourself without causing a target switch:
#show Healing Breath suppressmacrofailures cast @self Healing Breath cast Doctrine of Bliss cast @self Healing Grace