任务:寻宝和pvp的达成条件都放在开始
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user