           <Table>
             <tbody>
             {
-              for shipName, i in @state.enemyShipName
-                continue unless @state.enemyShipLv[i] != -1
-                <tr key={i + 8}>
-                  <td>Lv. {@state.enemyShipLv[i]} - {shipName}</td>
+              for tmpName, i in @state.shipName
+                continue unless (@state.shipLv[i] != -1 && i >= 6)
+                <tr key={i}>
+                  <td>Lv. {@state.shipLv[i]} - {tmpName}</td>
                   <td className="hp-progress">
-                    <ProgressBar bsStyle={getHpStyle @state.nowEnemyHp[i] / @state.maxEnemyHp[i] * 100}
-                      now={@state.nowEnemyHp[i] / @state.maxEnemyHp[i] * 100}
-                      label={"#{@state.nowEnemyHp[i]} / #{@state.maxEnemyHp[i]}"} />
+                    <ProgressBar bsStyle={getHpStyle @state.nowHp[i] / @state.maxHp[i] * 100}
+                      now={@state.nowHp[i] / @state.maxHp[i] * 100}
+                      label={"#{@state.nowHp[i]} / #{@state.maxHp[i]}"} />
                   </td>
                   <td className="hp-progress">
-                    <ProgressBar bsStyle={getHpStyle @state.afterEnemyHp[i] / @state.maxEnemyHp[i] * 100}
-                      now={@state.afterEnemyHp[i] / @state.maxEnemyHp[i] * 100}
-                      label={if @state.damageEnemy[i] > 0 then "#{@state.afterEnemyHp[i]} / #{@state.maxEnemyHp[i]} (-#{@state.damageEnemy[i]})" else "#{@state.afterEnemyHp[i]} / #{@state.maxEnemyHp[i]}"} />
+                    <ProgressBar bsStyle={getHpStyle @state.afterHp[i] / @state.maxHp[i] * 100}
+                      now={@state.afterHp[i] / @state.maxHp[i] * 100}
+                      label={if @state.damageHp[i] > 0 then "#{@state.afterHp[i]} / #{@state.maxHp[i]} (-#{@state.damageHp[i]})" else "#{@state.afterHp[i]} / #{@state.maxHp[i]}"} />
                   </td>
                 </tr>
             }


      return unless flag
      @setState
        afterFriendHp: afterFriendHp
        nowFriendHp: nowFriendHp
        maxFriendHp: maxFriendHp
        afterEnemyHp: afterEnemyHp
        nowEnemyHp: nowEnemyHp
        maxEnemyHp: maxEnemyHp
        damageFriend: damageFriend
        damageEnemy: damageEnemy
        enemyShipName: enemyShipName
        enemyShipLv: enemyShipLv
        friendShipName: friendShipName
        friendShipLv: friendShipLv
        enemyInfo: enemyInfo
        getShip: getShip
    componentDidMount: ->
      window.addEventListener 'game.response', @handleResponse


  link: 'https://github.com/Chibaheit'
  reactClass: React.createClass
    getInitialState: ->
      afterHp: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
      nowHp: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
      maxHp: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
      damageHp: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
      shipName: ["空", "空", "空", "空", "空", "空", "空", "空", "空", "空", "空", "空"]
      shipLv: [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
      enemyInfo: null
      getShip: null
    handleResponse: (e) ->
      {method, path, body, postBody} = e.detail
      {afterHp, nowHp, maxHp, damageHp, shipName, shipLv, enemyInfo, getShip} = @state
      flag = false
      switch path
        when '/kcsapi/api_req_sortie/battle'
          for tmp, i in shipLv
            shipLv[i] = -1
          {_decks} = window
          flag = true
          [shipName, shipLv] = getInfo shipName, shipLv, _decks[body.api_dock_id - 1].api_ship, body.api_ship_ke, body.api_ship_lv
          [maxHp, nowHp] = getHp maxHp, nowHp body.api_maxhps, body.api_nowhps
          afterHp = Object.clone nowHp
          if body.api_kouku.api_stage3?
            afterHp = koukuAttack afterHp, body.api_kouku.api_stage3
          if body.api_opening_atack?
            afterHp = openAttack afterHp, body.api_opening_atack
          if body.api_hougeki1?
            afterHp = hougekiAttack afterHp, body.api_hougeki1
          if body.api_hougeki2?
            afterHp = hougekiAttack afterHp, body.api_hougeki2
          if body.api_hougeki3?
            afterHp = hougekiAttack afterHp, body.api_hougeki3
          if body.api_raigeki?
            afterHp = raigekiAttack afterHp, body.api_raigeki
          damageHp = getDamage damageHp, nowHp, afterHp, 0

        when '/kcsapi/api_req_battle_midnight/battle'
          flag = true
          nowHp = Object.clone afterHp
          if body.api_hougeki?
            afterHp = hougekiAttack afterHp, body.api_hougeki
          damageHp = getDamage damageHp, nowHp, afterHp, 0

        when '/kcsapi/api_req_practice/battle'
          for tmp, i in shipLv
            shipLv[i] = -1
          {_decks} = window
          flag = true
          shipName = getName shipName, _decks[body.api_dock_id - 1].api_ship, body.api_ship_ke
          shipLv = getLv shipLv, _decks[body.api_dock_id - 1].api_ship, body.api_ship_ke, body.api_ship_lv
          maxHp = getHp maxHp, body.api_maxhps
          nowHp = getHp nowHp, body.api_nowhps
          afterHp = Object.clone nowHp
          if body.api_kouku.api_stage3?
            afterHp = koukuAttack afterHp, body.api_kouku.api_stage3
          if body.api_opening_atack?
            afterHp = openAttack afterHp, body.api_opening_atack
          if body.api_hougeki1?
            afterHp = hougekiAttack afterHp, body.api_hougeki1
          if body.api_hougeki2?
            afterHp = hougekiAttack afterHp, body.api_hougeki2
          if body.api_hougeki3?
            afterHp = hougekiAttack afterHp, body.api_hougeki3
          if body.api_raigeki?
            afterHp = raigekiAttack afterHp, body.api_raigeki
          damageHp = getDamage damageHp, nowHp, afterHp, 1

        when '/kcsapi/api_req_practice/midnight_battle'
          flag = true
          nowHp = Object.clone afterHp
          if body.api_hougeki?
            afterHp = hougekiAttack afterHp, body.api_hougeki
          damageHp = getDamage damageHp, nowHp, afterHp, 1

        when '/kcsapi/api_req_battle_midnight/sp_midnight'
          for tmp, i in shipLv
            shipLv[i] = -1
          {_decks} = window
          flag = true
          shipName = getName shipName, _decks[body.api_deck_id - 1].api_ship, body.api_ship_ke
          shipLv = getLv shipLv, _decks[body.api_dock_id - 1].api_ship, body.api_ship_ke, body.api_ship_lv
          maxHp = getHp maxHp, body.api_maxhps
          nowHp = getHp nowHp, body.api_nowhps
          afterHp = Object.clone nowHp
          if body.api_hougeki?
            afterHp = hougekiAttack afterHp, body.api_hougeki
          damageHp = getDamage damageHp, nowHp, afterHp, 0

        when '/kcsapi/api_req_sortie/battleresult'
          flag = true
          if body.api_get_ship?
