diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index bff26aa5..b684df94 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -1176,6 +1176,12 @@ class BattleController extends BaseAuthedController { public function requestAllocBoxNum() { + if (!myself()->_switchIsOpen('bigEventBoxDrop')) { + myself()->_rspData(array( + 'box_num' => 0 + )); + return; + } $roomUuid = getReqVal('room_uuid', ''); $row = SqlHelper::ormSelectOne( $this->_getSelfMysql(),