 {PaneBody} = require './parts'
 
 inBattle = [false, false, false, false]
+goback = {}
+
 getStyle = (state) ->
   if state in [0..5]
     # 0: Cond >= 40, Supplied, Repaired, In port

            for shipId in deck.api_ship
              continue if shipId == -1
              ship = _ships[shipId]
              if ship.api_nowhp / ship.api_maxhp < 0.250001
                toggleModal '进击注意！', "Lv. #{ship.api_lv} - #{ship.api_name} 大破，可能会被击沉！"
        else
          flag = false
      return unless flag

          for shipId in deck.api_ship
            continue if shipId == -1
            ship = _ships[shipId]
            if ship.api_nowhp / ship.api_maxhp < 0.250001 and !goback[shipId]
              toggleModal '出击注意！', "Lv. #{ship.api_lv} - #{ship.api_name} 大破，请到舰队面板确认是否有应急修理要员/女神携带！"
        when '/kcsapi/api_req_map/next'
          {decks, states} = @state
          {_ships} = window
