From b5f2f466c8f8bbb53ac6e136865eee97f151012c Mon Sep 17 00:00:00 2001 From: luying Date: Tue, 29 Dec 2020 21:20:48 +0800 Subject: [PATCH] fix bug --- game-server/app/services/expeditionService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-server/app/services/expeditionService.ts b/game-server/app/services/expeditionService.ts index 82dab89f7..55327ab3f 100644 --- a/game-server/app/services/expeditionService.ts +++ b/game-server/app/services/expeditionService.ts @@ -111,7 +111,7 @@ export async function matchRobots(scale: number, myCe: number, robotCe: number, } let ce = 0; for(let attrName in attribute) { - ce += attribute[attrName] * getAttrCeRatio(attrName); + ce += attribute[attrName] * getAttrCeRatio(attrName)||0; } enemyObj.enemies.push({...enemy, attribute, lv}); allCe += ce;