When attacking a pirate fleet, the first fleet to engage will take the damage. When attacking Space Stations, the fleets inside will target random fleets of the attackers.