Reworked on the sequence of actions when a ship attacks.