           daySortieDmg = Object.clone sortieHp.dmg
           dayEnemyDmg = Object.clone enemyHp.dmg
           dayCombinedDmg = Object.clone combinedHp.dmg
-          result = analogBattle sortieHp, enemyHp, combinedHp, false, false, body, 1, planeCount
+          [result, planeCount] = analogBattle sortieHp, enemyHp, combinedHp, false, false, body, 1, planeCount
           for i in [0..5]
             sortieHp.dmg[i] -= daySortieDmg[i]
             enemyHp.dmg[i] -= dayEnemyDmg[i]

          dayCombinedDmg = Object.clone combinedHp.dmg
          if path != '/kcsapi/api_req_combined_battle/midnight_battle'
            getEnemyInfo enemyHp, enemyInfo, body, false
          result = analogBattle sortieHp, enemyHp, combinedHp, true, isWater, body, 1, planeCount
          for i in [0..5]
            sortieHp.dmg[i] -= daySortieDmg[i]
            enemyHp.dmg[i] -= dayEnemyDmg[i]

    else
      supportAttack enemyHp, body.api_support_info.api_damage
  # Opening battle

  if body.api_opening_atack?
    if isCombined
      raigekiAttack combinedHp, enemyHp, body.api_opening_atack
    else
      raigekiAttack sortieHp, enemyHp, body.api_opening_atack
  # Night battle

  if body.api_hougeki?
    if isCombined
      hougekiAttack combinedHp, enemyHp, body.api_hougeki
    else
      hougekiAttack sortieHp, enemyHp, body.api_hougeki
  # First hougeki battle

  if body.api_hougeki1?
    if isCombined && !isWater
      hougekiAttack combinedHp, enemyHp, body.api_hougeki1
    else
      hougekiAttack sortieHp, enemyHp, body.api_hougeki1
  # Second hougeki battle

  if body.api_hougeki2?
    hougekiAttack sortieHp, enemyHp, body.api_hougeki2
  # Combined hougeki battle

  if body.api_hougeki3?
    if isCombined && isWater
      hougekiAttack combinedHp, enemyHp, body.api_hougeki3
    else
      hougekiAttack sortieHp, enemyHp, body.api_hougeki3
  # Raigeki battle

  if body.api_raigeki?
    if isCombined
      raigekiAttack combinedHp, enemyHp, body.api_raigeki
    else
      raigekiAttack sortieHp, enemyHp, body.api_raigeki

  result = getResult sortieHp, enemyHp, combinedHp, leastHp
  [result, planeCount]

escapeId = -1
towId = -1
