             getShip = body.api_get_ship
         result = body.api_win_rank
       if isBattle?
+        escapeId = towId = -1
         flag = true
         sortiePre = Object.clone sortieHp
         enemyPre = Object.clone enemyHp

          [combinedHp, combinedInfo] = getDeckInfo combinedHp, combinedInfo, 1
      if isGoBack?
        flag = true
        damagedId = -1
        for i in [0..5]
          if sortieInfo[i] != -1 && damagedId == -1 && sortieHp[i] < 0.250001 * sortieHp[i + 6]
            damagedId = i
            break
          if combinedInfo[i] != -1 && damagedId == -1 && combinedHp[i] < 0.250001 * combinedHp[i + 6]
            damagedId = i + 6
            break
        for i in [0..5]
          if combinedInfo[i] != -1 && damagedId != -1 && combinedHp[i] > 0.750001 * combinedHp[i + 6]
            goBack[i + 6] = goBack[damagedId] = 1
            break
      if isShipDeck? && combinedFlag == 0
        flag = true
        [sortieHp, sortieInfo] = getDeckInfo sortieHp, sortieInfo, body.api_deck_data[0].api_id - 1
      if isResult?
        flag = true
        if isPractice == null
          tmpShip = " "
          for i in [0..5]
            if sortieHp[i] < (sortieHp[6 + i] * 0.2500001)
              tmpShip = tmpShip + sortieInfo[6 + i] + " "
            if combinedHp[i] < (combinedHp[6 + i] * 0.2500001)
              tmpShip = tmpShip + combinedInfo[6 + i] + " "
          if tmpShip != " "
            notify "#{tmpShip}" + __ 'Heavily damaged',
              type: 'damaged'
              icon: join(ROOT, 'views', 'components', 'ship', 'assets', 'img', 'state', '4.png')

          enemyHp[i] = enemyHp[i] - enemyPre[i]
          combinedHp[i] = combinedHp[i] - combinedPre[i]
      if isPort?
        goBack = Object.clone initData0
        flag = true
        combinedFlag = body.api_combined_flag
        for i in [0..5]
