寻宝:修复匹配机器人开战提示寻宝未开始的 bug
This commit is contained in:
@@ -251,7 +251,12 @@ export class ComBattleHandler {
|
||||
}
|
||||
// 机器人队伍 3 秒直接开战
|
||||
setTimeout(async () => {
|
||||
await ComBattleTeamModel.updateStatus(teamCode, COM_TEAM_STATUS.FIGHTING);
|
||||
let t = await ComBattleTeamModel.updateStatus(teamCode, COM_TEAM_STATUS.FIGHTING);
|
||||
let memT = thiz.teamMap.get(teamCode);
|
||||
if (!t || !memT) {
|
||||
return;
|
||||
}
|
||||
memT.status = COM_TEAM_STATUS.FIGHTING;
|
||||
channelService.pushMessageByUids('onComBtlStart', {teamCode, roleStatus: comTeam.roleStatus}, [{uid: roleId, sid}]);
|
||||
}, 3000);
|
||||
}, COM_BTL_CONST.ASSIST_TIME);
|
||||
|
||||
Reference in New Issue
Block a user