From 8e7366e31b168a4e8ce7805a274e1f6494dd196e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 20 Sep 2024 15:51:31 +0800 Subject: [PATCH] 1 --- webapp/controller/BattleController.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index 013ba723..0aed5a7a 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -827,6 +827,11 @@ class BattleController extends BaseAuthedController { myself()->_rspErr(2, 'map mode error'); return; } + if ($mapModeMeta['mapMode'] == \mt\MapMode::CIRCUIT_MODE && + !myself()->_switchIsOpen('circuitMatch')){ + myself()->_rspErr(2, 'map mode error'); + return; + } $mapMeta = mt\Map::get($mapId); if (empty($mapMeta)) { myself()->_rspErr(2, 'map meta error');