🐞 fix(pvp): 防守阵容设置的状态无效

This commit is contained in:
luying
2023-05-12 18:08:35 +08:00
parent 6f925d3bda
commit 0ba10b6bf8

View File

@@ -248,6 +248,7 @@ async function generPlayerOppHis(pvpdefense: PvpDefenseType, roleId: string, pos
heroInfo.setAttribute(attribute);
let enemy = new PvpEnemies(warJson, heroInfo, hs ? hs.score : 0, ce);
enemy.setOutIndex(h.order);
enemy.initial_ai = h.ai;
heroes.push(enemy);
defCe += ce;
}