From f3b5def9536ee5f09c3fcd0367caad8312897346 Mon Sep 17 00:00:00 2001 From: luying Date: Wed, 27 Apr 2022 14:07:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E5=8D=A1=EF=BC=9A=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=AD=89=E7=BA=A7=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/battle/handler/normalBattleHandler.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/game-server/app/servers/battle/handler/normalBattleHandler.ts b/game-server/app/servers/battle/handler/normalBattleHandler.ts index c048b6710..974c9fe27 100644 --- a/game-server/app/servers/battle/handler/normalBattleHandler.ts +++ b/game-server/app/servers/battle/handler/normalBattleHandler.ts @@ -56,7 +56,9 @@ export class NormalBattleHandler { if (ap < warInfo.cost) { return resResult(STATUS.BATTLE_ACTION_POINT_LACK); } - + if(role.lv < warInfo.lvLimited) { + return resResult(STATUS.COM_BATTLE_LV_NOT_ENOUGH); + } // 前置关卡是否挑战过 let previousGk = warInfo.previousGk; if (previousGk) {