           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
+          [result, planeCount] = analogBattle sortieHp, enemyHp, combinedHp, true, isWater, body, 1, planeCount
           for i in [0..5]
             sortieHp.dmg[i] -= daySortieDmg[i]
             enemyHp.dmg[i] -= dayEnemyDmg[i]

    if api_kouku.api_stage2?
      planeCount[1] -= api_kouku.api_stage2.api_f_lostcount
      planeCount[3] -= api_kouku.api_stage2.api_e_lostcount
analogBattle = (sortieHp, enemyHp, combinedHp, isCombined, isWater, body, leastHp, planeCount) ->
  # First air battle
  planeCount = null
  console.log sortieHp.now, enemyHp.now
  if body.api_kouku?
    planeCount = analogKouku body.api_kouku, planeCount
    if body.api_kouku.api_stage3?
      koukuAttack sortieHp, enemyHp, body.api_kouku.api_stage3
    if body.api_kouku.api_stage3_combined?
      koukuAttack combinedHp, enemyHp, body.api_kouku.api_stage3_combined
  # Second air battle
  console.log sortieHp.now, enemyHp.now
  if body.api_kouku2?
    if body.api_kouku2.api_stage3?
      koukuAttack sortieHp, enemyHp, body.api_kouku2.api_stage3
    if body.api_kouku2.api_stage3_combined?
      koukuAttack combinedHp, enemyHp, body.api_kouku2.api_stage3_combined
  # Support battle
  console.log sortieHp.now, enemyHp.now
  if body.api_support_info?
    if body.api_support_info.api_support_airatack?
      supportAttack enemyHp, body.api_support_info.api_support_airatack.api_stage3.api_edam

          dayCombinedDmg = Object.clone combinedHp.dmg
          if path != '/kcsapi/api_req_battle_midnight/battle'
            getEnemyInfo enemyHp, enemyInfo, body, false

          [result, planeCount] = analogBattle sortieHp, enemyHp, combinedHp, false, false, body, 0, planeCount

          for i in [0..5]
            sortieHp.dmg[i] -= daySortieDmg[i]
            enemyHp.dmg[i] -= dayEnemyDmg[i]
