     if api_kouku.api_stage2?
       planeCount[1] -= api_kouku.api_stage2.api_f_lostcount
       planeCount[3] -= api_kouku.api_stage2.api_e_lostcount
+    planeCount
 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?
+    planeCount = analogKouku body.api_kouku, planeCount
+    
     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

          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
          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
