任务:寻宝和pvp的达成条件都放在开始

This commit is contained in:
luying
2022-02-12 11:37:59 +08:00
parent 597911448a
commit 49a86040e1
5 changed files with 7 additions and 10 deletions
@@ -149,6 +149,7 @@ export class PvpHandler {
const { warId, roleId: oppRoleId } = msg;
let roleId = session.get('roleId');
let roleName = session.get('roleName');
let sid = session.get('sid');
let warInfo = gameData.war.get(warId);
if (!warInfo) {
@@ -179,7 +180,8 @@ export class PvpHandler {
warType: warInfo.warType,
record: { heroes, pos: curOpp.pos, oppRoleId }
}
}, true);
}, true);
await checkTask(roleId, sid, TASK_TYPE.PVP, 1, true, {});
return resResult(STATUS.SUCCESS, {
battleCode