Advanced ship modules overriding target priority calculations
You can make invincible first-target ships
I read that the order that the AI targets ships is Total Attack / (Total Defense + Hit Points) highest number first. However I was seeing a ship of mine that had very high defense and comparatively little attack being the first one fired upon and covering the whole fleet. I did some testing and it was because it had a module that increased fleet attack. It makes a certain amount of sense that you'd want to take out that ship first since it's powering up the whole fleet, but this ship was not going to be taken down so much more vulnerable and dangerous ships got a free pass. The ship does have to have some attack power to be targeted though but a 1 attack 200 defense ship with a module would get targeted before a 200 attack 0 defense ship. This would be very abusable by the player. The worse part is that it also works for non-fleet modules like the KillZone Computer which only affect one ship and only in your influence. I remembered once I had high defense ships covering for low defense ones and then other times it didn't work that way. Now I know why.
The more logical way to handle this would be to add the fleet module attack bonus to the ship with the module's attack for the calculation since it is the source of it
I checked to see if there is a flag on the modules that says something like <target_first>1</target_first> but there wasn't so it seems like it's hard coded.
Is there anything that can be done about this or am I stuck being able to fool the AI so easily? They can do the same but I doubt they know how to do it.