From bfa0755739995828579f8095b929a5699f054b11 Mon Sep 17 00:00:00 2001 From: luying Date: Sat, 26 Dec 2020 10:43:47 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=BB=8F=E9=AA=8C=E4=B9=A6=E4=B8=8D?= =?UTF-8?q?=E6=BB=A15=E7=BA=A7=E6=97=B6=E7=9B=B4=E6=8E=A5=E6=B6=88?= =?UTF-8?q?=E8=80=97=E4=B8=8D=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/role/handler/heroHandler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game-server/app/servers/role/handler/heroHandler.ts b/game-server/app/servers/role/handler/heroHandler.ts index 7c84cbce0..5eb938afc 100644 --- a/game-server/app/servers/role/handler/heroHandler.ts +++ b/game-server/app/servers/role/handler/heroHandler.ts @@ -123,7 +123,8 @@ export class HeroHandler { newExp += dicGoods.value * count; } } - if(newExp < needExp) { + + if (newExp == oldExp) { return resResult(STATUS.ROLE_EXP_NOT_ENOUGH); }