From 16b3be4fef911698814f3c9425072a59d14727a2 Mon Sep 17 00:00:00 2001 From: liangtongchuan Date: Tue, 14 Mar 2023 14:16:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(comBattle):=20=E5=AF=BB?= =?UTF-8?q?=E5=AE=9D=E5=90=8C=E5=86=9B=E5=9B=A2=E9=A2=9D=E5=A4=96=E5=A5=96?= =?UTF-8?q?=E5=8A=B1=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/comBattleService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-server/app/services/comBattleService.ts b/game-server/app/services/comBattleService.ts index a53fa931d..48d959375 100644 --- a/game-server/app/services/comBattleService.ts +++ b/game-server/app/services/comBattleService.ts @@ -183,7 +183,7 @@ export async function getRealReward(blueprtId: number, roleSts: RoleStatus[], ro } } if(hasTimeExtraReward && hasExtraReward) { - let sameGuildCnt = roleSts.filter(cur => cur.guildCode == roleSt.guildCode && cur.roleId != roleSt.roleId).length; + let sameGuildCnt = roleSts.filter(cur => !!roleSt.guildCode && cur.guildCode == roleSt.guildCode && cur.roleId != roleSt.roleId).length; if(sameGuildCnt > 0) { let dicGuildReward = roleSt.isCap? dicReward.captainTimeGuildReward: dicReward.teammateTimeGuildReward; let guildRewards = dicGuildReward.get(sameGuildCnt)||[]