pvp:保存防守阵容错误

This commit is contained in:
luying
2021-04-26 18:41:22 +08:00
parent 8c1be43b87
commit bc5c6bbdbe
3 changed files with 4 additions and 4 deletions
@@ -951,7 +951,7 @@ export class GuildHandler {
const serverId = session.get('serverId'); const serverId = session.get('serverId');
const { code, active, id } = msg; 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; if(result.status == 0) return result.resResult;
const { guild, userGuild } = result; const { guild, userGuild } = result;
@@ -338,9 +338,9 @@ export class PvpHandler {
let isInTop = topLineup.find(cur => cur.hid == hero.actorId); let isInTop = topLineup.find(cur => cur.hid == hero.actorId);
if(!isInTop) { if(!isInTop) {
hero.actorId = hids.shift(); 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) { for(let hid of hids) {
+1 -1
View File
@@ -28,7 +28,7 @@ export const COUNTER = {
ROLE: { name: 'role', def: 1 } ROLE: { name: 'role', def: 1 }
}; };
export const DEFAULT_HEROES = [19, 53, 55, 54, 13]; export const DEFAULT_HEROES = [44, 46, 56, 53, 19, 32, 40, 24, 28, 22, 18, 17, 34];
export const DEFAULT_ITEMS = [ export const DEFAULT_ITEMS = [
{ "id": 11004, "count": 99999999 }, { "id": 11004, "count": 99999999 },
{ "id": 11013, "count": 999999 }, { "id": 11013, "count": 999999 },