From b4dcfbbc21fdb61aaff2c89fc31921478984cd3b Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 29 Jul 2021 17:12:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E6=88=90=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=97=8F=E5=AE=9D=E5=9B=BE=E5=90=88=E6=88=90=E6=B6=88=E8=80=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/role/handler/equipHandler.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/game-server/app/servers/role/handler/equipHandler.ts b/game-server/app/servers/role/handler/equipHandler.ts index 286b37c40..29e0e1f16 100644 --- a/game-server/app/servers/role/handler/equipHandler.ts +++ b/game-server/app/servers/role/handler/equipHandler.ts @@ -974,11 +974,9 @@ export class EquipHandler { if (!dicTargetInfo) return resResult(STATUS.WRONG_PARMS); if (dicTargetInfo.quality != dicCompose.targetQuality) return resResult(STATUS.COM_BLUEPRT_QUALITY_ERROR); - // 添加寻宝币 - original.concat(dicCompose.coinNum); // 消耗藏宝图和寻宝币 - let costResult = await handleCost(roleId, sid, original); + let costResult = await handleCost(roleId, sid, [...original, ...dicCompose.coinNum]); if (!costResult) return resResult(STATUS.ROLE_MATERIAL_NOT_ENOUGH); const reward = [{ id: target, count: 1 }];