you can target a party or non-party character to get their current target.
ie: casting fireball at a friendly character will be directed at his target instead.

just remember to enable some options in INTERFACE - COMBAT:

111.jpg