From 81a362d6aeeaef3e84878c063f39be1be0ebc576 Mon Sep 17 00:00:00 2001 From: luying Date: Sat, 17 Jul 2021 18:24:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A6=E5=B0=86=EF=BC=9A=E8=A7=89=E9=86=92?= =?UTF-8?q?=E5=90=8E=E5=93=81=E8=B4=A8=E5=8F=98=E4=B8=BA4?= 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 14eae5553..806207dfd 100644 --- a/game-server/app/servers/role/handler/heroHandler.ts +++ b/game-server/app/servers/role/handler/heroHandler.ts @@ -343,7 +343,7 @@ export class HeroHandler { if (star != HERO_GROW_MAX.STAR) { return resResult(STATUS.ROLE_WAKE_STAR_NOT_ENOUGH); } - if (quality != HERO_GROW_MAX.QUALITY) { + if (quality < HERO_GROW_MAX.QUALITY) { return resResult(STATUS.ROLE_QUALITY_NOT_ENOUGH); } // 根据dic_zyz_hero_wake 计算需要花的碎片并检查碎片数量 @@ -366,6 +366,7 @@ export class HeroHandler { let isUpStar = isWakeUp || newColorStarStage == ABI_STAGE.END; let update = { + quality: isWakeUp? quality + 1: quality, colorStar: isUpStar ? oldColorStar + 1 : oldColorStar, colorStarStage: isUpStar ? ABI_STAGE.START : newColorStarStage }