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;