If you have an auto-targeting weapon like the S3 Medusa and you fire it in an area that has both enemy ships and angry friendly ships, it will prioritize going after the enemy ships even if the angry friendlies are a lot closer. I would expect it to prioritize ships based on distance rather than faction.

george moromisato 24 Jan 2019:

Fixed in 1.8 Beta 5. Thanks!