#showtooltip
/cleartarget
/assist (name of main)
/cast [target=target,help,exist] [target=(name of main)] Renew

What it does:
If your main guy has a bad guy targeted, or if he has no target, then this will heal your main guy. If your main guy has a friendly targeted, this will heal the friendly.