From f07109d11cf9a9de08e24ad0651a0c6513c397bc Mon Sep 17 00:00:00 2001 From: liangtongchuan Date: Thu, 19 Nov 2020 10:18:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E4=BF=AE=E6=94=B9=E8=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BC=BA=E5=B0=91=E5=AD=97=E6=AE=B5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/battle/handler/comBattleHandler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game-server/app/servers/battle/handler/comBattleHandler.ts b/game-server/app/servers/battle/handler/comBattleHandler.ts index 84a02cda4..aa44258f9 100644 --- a/game-server/app/servers/battle/handler/comBattleHandler.ts +++ b/game-server/app/servers/battle/handler/comBattleHandler.ts @@ -111,8 +111,8 @@ export class ComBattleHandler { let roleStatus = new RoleStatus(); roleStatus.heroes = []; roleStatus.isCap = false; - roleStatus.headHid = headHid; - roleStatus.topFiveCe = topFiveCe; + roleStatus.headHid = headHid || roleStatus.headHid; + roleStatus.topFiveCe = topFiveCe || roleStatus.topFiveCe; roleStatus.roleId = roleId; roleStatus.isFrd = isFrd; const team = await ComBattleTeamModel.addRole(teamCode, roleStatus);