From 089653750b32d2d7393ff192932b1e38e7d5f1c9 Mon Sep 17 00:00:00 2001 From: dongkui555 Date: Mon, 15 Jan 2024 21:18:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E9=9A=8F=E6=9C=BA=E6=9C=AC?= =?UTF-8?q?=E7=BB=84=E9=98=9F=EF=BC=8C=E7=AD=89=E7=BA=A7=E8=BF=87=E4=BD=8E?= =?UTF-8?q?=E6=88=96=E8=BF=87=E9=AB=98=E6=97=A0=E6=B3=95=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E5=89=AF=E6=9C=AC=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/DungeonFinding/LFGMgr.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp index 36d5904f8f2eeb..9706e69c545d38 100644 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -424,6 +424,16 @@ namespace lfg lockData = LFG_LOCKSTATUS_NOT_IN_SEASON; else if (ar) { + // 检查玩家等级是否超出副本的允许范围 + if (dungeon->minlevel > level) + { + lockData = LFG_LOCKSTATUS_TOO_LOW_LEVEL; // 玩家等级过低,无法加入副本 + } + else if (dungeon->maxlevel < level) + { + lockData = LFG_LOCKSTATUS_TOO_HIGH_LEVEL; // 玩家等级过高,无法加入副本 + } + // Check required items for (const ProgressionRequirement* itemRequirement : ar->items) {