From cee94b0cf0d2cf08838885bff6241bb774c780f2 Mon Sep 17 00:00:00 2001 From: luying Date: Wed, 28 Sep 2022 19:00:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BB=E5=AE=9D=EF=BC=9A=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=83=85=E8=B0=8A=E5=8A=A9=E6=88=98=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=E4=BC=9A=E6=8A=8A=E6=95=B4=E9=98=9F=E9=83=BD=E8=AE=BE=E6=88=90?= =?UTF-8?q?=E6=83=85=E8=B0=8A=E7=9A=84?= 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, 4 insertions(+), 2 deletions(-) diff --git a/game-server/app/servers/battle/handler/comBattleHandler.ts b/game-server/app/servers/battle/handler/comBattleHandler.ts index b94621dfa..e59b116c1 100644 --- a/game-server/app/servers/battle/handler/comBattleHandler.ts +++ b/game-server/app/servers/battle/handler/comBattleHandler.ts @@ -236,8 +236,10 @@ export class ComBattleHandler { return resResult(STATUS.COM_BATTLE_ASSIST_NOT_ENOUGH); } teamStatus.roleStatus.forEach(async st => { - st.isFrd = isFrd; - await ComBattleTeamModel.updateRoleStFrd(teamCode, roleId, isFrd); + if(st.roleId == roleId) { + st.isFrd = isFrd; + await ComBattleTeamModel.updateRoleStFrd(teamCode, roleId, isFrd); + } }); return resResult(STATUS.SUCCESS, { teamCode, isFrd }); }