From c3a3314bb81dbec9ff5c5ab03088cf5a063b1b27 Mon Sep 17 00:00:00 2001 From: liangtongchuan Date: Thu, 19 Nov 2020 14:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E6=AE=B5=E5=88=9D?= =?UTF-8?q?=E5=80=BC=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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game-server/app/servers/battle/handler/comBattleHandler.ts b/game-server/app/servers/battle/handler/comBattleHandler.ts index aa44258f9..08c0bcb63 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.headHid; - roleStatus.topFiveCe = topFiveCe || roleStatus.topFiveCe; + roleStatus.headHid = headHid || 1; + roleStatus.topFiveCe = topFiveCe || 0; roleStatus.roleId = roleId; roleStatus.isFrd = isFrd; const team = await ComBattleTeamModel.addRole(teamCode, roleStatus); @@ -126,7 +126,7 @@ export class ComBattleHandler { if (users.indexOf(roleId) === -1) { channel.add(roleId, sid); } - channel.pushMessage('onTeamJoin', {teamCode, roleInfo: {roleId, headHid, topFiveCe}}); + channel.pushMessage('onTeamJoin', {teamCode, roleInfo: {roleId, headHid: roleStatus.headHid, topFiveCe: roleStatus.topFiveCe}}); teamStatus.roleIds.push(roleId); teamStatus.roleStatus.push(roleStatus);