From b7783a48a55fc08dc6263b150da4ba0d8463acdc Mon Sep 17 00:00:00 2001 From: qiaoxin Date: Thu, 13 May 2021 17:59:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=EF=BC=9A=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/taskService.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/game-server/app/services/taskService.ts b/game-server/app/services/taskService.ts index 37af237d9..4b3615627 100644 --- a/game-server/app/services/taskService.ts +++ b/game-server/app/services/taskService.ts @@ -253,12 +253,14 @@ export async function checkTaskConditionEquipSuitJewelStage(hero: HeroType) { for (let j = 0; j < equipObj.holes.length; j++) { let jewel = equipObj.holes[j].jewel; let jewelInfo = getGoodById(jewel); - if (jewelLevel == -1) { - jewelLevel = jewelInfo.lvLimited; - } else if (jewelInfo.lvLimited != jewelLevel) { - //宝石阶数不同 - isTask = false; - break; + if (jewelInfo) { + if (jewelLevel == -1) { + jewelLevel = jewelInfo.lvLimited; + } else if (jewelInfo.lvLimited != jewelLevel) { + //宝石阶数不同 + isTask = false; + break; + } } } } else {