The following is an application to space combat scenarios:
I try to keep an eye on those I fly wing with. If they need the assistance, I gladly will target their ship and offer what ever heal or buff I have available. Is there an easier way to target your own ship (in a hurry) when YOU need to heal, or buff your own ship?
IMHO there needs to be a little easier method to be able to switch between an ally ship or your own.
Alternatly, you can just clear your target.
If you have an enemy targeted, and he has a team mate targeted, your abilities that work on friend or self will go to whoever your target is attacking. If you clear your target, the ability will work on you.