pvp:保存防守阵容错误

This commit is contained in:
luying
2021-04-26 18:40:20 +08:00
parent 8c1be43b87
commit bc5c6bbdbe
3 changed files with 4 additions and 4 deletions

View File

@@ -951,7 +951,7 @@ export class GuildHandler {
const serverId = session.get('serverId');
const { code, active, id } = msg;
const result = await addActive(roleId, serverId, id);
const result = await addActive(roleId, serverId, id, null, active);
if(result.status == 0) return result.resResult;
const { guild, userGuild } = result;

View File

@@ -338,9 +338,9 @@ export class PvpHandler {
let isInTop = topLineup.find(cur => cur.hid == hero.actorId);
if(!isInTop) {
hero.actorId = hids.shift();
dataIds.push(hero.dataId);
orders.push(hero.order);
}
dataIds.push(hero.dataId);
orders.push(hero.order);
}
}
for(let hid of hids) {