Prevent damage to bases not belonging to the player/team

Would it be possible to add an option so that an attack heli that has locked to a player/team to bases  can't damage a base that doesn't belong to the player/team that has locked them helicopter to themselves?

noted for later to see if i want to do this