           damageHp = getDamage damageHp, nowHp, afterHp, 1
 
         when '/kcsapi/api_req_battle_midnight/sp_midnight'
-          beforeAttack = null
           for tmp, i in shipLv
             shipLv[i] = -1
           {_decks} = window

            jsonContent.totalTyku = getTyku jsonContent.ship, body.api_eSlot
            jsonContent.hp = Object.clone maxHp
            jsonContent.hp.splice 0, 6
          if body.api_hougeki?
            afterHp = hougekiAttack afterHp, body.api_hougeki
          damageHp = getDamage damageHp, nowHp, afterHp, 0

        when '/kcsapi/api_req_sortie/airbattle'
          beforeAttack = null
          for tmp, i in shipLv
            shipLv[i] = -1
          {_decks} = window

      shipLv: [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
      enemyInfo: null
      getShip: null
      enemyFormation: 0
      enemyTyku: 0
    handleResponse: (e) ->
      {method, path, body, postBody} = e.detail
      {afterHp, nowHp, maxHp, damageHp, shipName, shipLv, enemyInfo, getShip, enemyFormation, enemyTyku} = @state
      if path != '/kcsapi/api_req_sortie/battleresult'
        enemyState = [0, 0]
      flag = false
      switch path
        when '/kcsapi/api_req_map/start'
          jsonId = null
          flag = true
          shipLv[i] = -1 for i in [6..11]
          for tmp, i in shipLv
            damageHp[i] = 0
          getShip = null
          if body.api_enemy?
            console.log body.api_enemy.api_enemy_id
            if enemyInformation[body.api_enemy.api_enemy_id]?
              [shipName, shipLv, maxHp, nowHp, enemyFormation, enemyTyku] = getMapEnemy shipName, shipLv, maxHp, nowHp, enemyFormation, enemyTyku, enemyInformation[body.api_enemy.api_enemy_id]
              afterHp = Object.clone nowHp
            else
              jsonId = body.api_enemy.api_enemy_id

        when '/kcsapi/api_req_map/next'
          jsonId = null
          flag = true
          for tmp, i in shipLv
            damageHp[i] = 0
          getShip = null
          shipLv[i] = -1 for i in [6..11]
          if body.api_enemy?
            console.log body.api_enemy.api_enemy_id
            if enemyInformation[body.api_enemy.api_enemy_id]?
              [shipName, shipLv, maxHp, nowHp, enemyFormation, enemyTyku] = getMapEnemy shipName, shipLv, maxHp, nowHp, enemyFormation, enemyTyku, enemyInformation[body.api_enemy.api_enemy_id]
              afterHp = Object.clone nowHp
            else
              jsonId = body.api_enemy.api_enemy_id

        when '/kcsapi/api_req_sortie/battle'
          for tmp, i in shipLv
            shipLv[i] = -1
          {_decks} = window
