       enemyShip[i - 1].hp[0] -= damage
   if kouku.api_fdam?
     for damage, i in kouku.api_fdam
-      continue if (kouku.api_fbak_flag <= 0 && kouku.api_frai_flag <= 0) || i == 0
+      continue if (kouku.api_fbak_flag[i] <= 0 && kouku.api_frai_flag[i] <= 0) || i == 0
       damage = Math.floor(damage)
       dmg = []
       dmg.push damage

  list = []
  if kouku.api_edam?
    for damage, i in kouku.api_edam
      continue if (kouku.api_ebak_flag <= 0 && kouku.api_erai_flag <= 0) || i == 0
      damage = Math.floor(damage)
      dmg = []
      dmg.push damage

      # api_cl_list		：クリティカルフラグ 0=ミス, 1=命中, 2=クリティカル　命中(0ダメージ)も存在する？
      list.push new Attack AttackType[checkAttackType[attackType]], enemyShip[damageFrom - 6], sortieShip[target], sortieShip[target].hp[1], sortieShip[target].hp[0], dmg, critical
      sortieShip[target].hp[0] -= totalDamage
      checkRepairItem sortieShip[target]
    else
      # api_cl_list		：クリティカルフラグ 0=ミス, 1=命中, 2=クリティカル　命中(0ダメージ)も存在する？
      list.push new Attack AttackType[checkAttackType[attackType]], sortieShip[damageFrom], enemyShip[target - 6], enemyShip[target - 6].hp[1], enemyShip[target - 6].hp[0], dmg, critical
