       koukuAttack sortieHp, enemyHp, body.api_kouku2.api_stage3
     if body.api_kouku2.api_stage3_combined?
       koukuAttack combinedHp, enemyHp, body.api_kouku2.api_stage3_combined
+    checkRepair sortieHp, combinedHp, sortieInfo, combinedInfo
   # Support battle
 
   if body.api_support_info?

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

  if body.api_hougeki1?

          if path != '/kcsapi/api_req_battle_midnight/battle'
            getEnemyInfo enemyHp, enemyInfo, body, false

          result = analogBattle sortieHp, enemyHp, combinedHp, false, false, body, 0, planeCount, sortieInfo, combinedInfo

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