寻宝:扣减藏宝图顺序

This commit is contained in:
luying
2021-08-17 10:57:55 +08:00
parent e1f4d7b52a
commit b4c9d27299
3 changed files with 19 additions and 17 deletions

View File

@@ -435,8 +435,8 @@ export class ComBattleHandler {
let channel = channelService.getChannel(teamCode, false);
let team = await ComBattleTeamModel.syncTeamData({teamCode, status: COM_TEAM_STATUS.LOOSE, roleStatus: teamStatus.roleStatus, bossHpArr: teamStatus.bossHpArr}, true);
if (!team) return resResult(STATUS.COM_BATTLE_RESULT_ERR);
// 将藏宝图加回去
await addItems(roleId, roleName, sid, [{ id: team.blueprtId, count: 1 }])
// // 将藏宝图加回去
// await addItems(roleId, roleName, sid, [{ id: team.blueprtId, count: 1 }])
teamStatus.timeout = true;
channel.pushMessage('onTeamComplete', resResult(STATUS.SUCCESS, {teamCode, result: false, timeout: true}));
thiz.teamMap.delete(teamCode);