diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index f8835df3..260cffba 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -1121,6 +1121,9 @@ class BattleController extends BaseAuthedController { private function checkTicket($r, $customData, $mapModeMeta) { + if ($mapModeMeta['map_mode'] == 501) { + return false; + } $itemId = $mapModeMeta['admission_item_id']; if (empty($itemId)) { return true; @@ -1128,9 +1131,6 @@ class BattleController extends BaseAuthedController { if (!$mapModeMeta['is_open']) { return false; } - if ($mapModeMeta['map_mode'] == 501) { - return false; - } $roomUuid = $customData['room_uuid']; if ($r->get(DEC_BATTLE_TICKET . $roomUuid)) { return true;