When the unit belongs to a player, units and base defenses do not ignore it.
The unit only gets ignored when it belongs to the neutral side.
Whilst it may, at a pinch, be acceptable for human players to have to target the unit manually, it is not good enough for the AI - who get wiped out in a matter of minutes if they ignore the unit.