If AI initiates the battle, they will not flee as the calcualtion takes place before the initiate it If player is attacking, then the AI fleet moves first (being the defender) - if you see that the AI did not move in its first turn, that means that they have hit the retreat button and will be gone ...