🐞 fix(pvp): 防守阵容设置的状态无效
This commit is contained in:
@@ -248,6 +248,7 @@ async function generPlayerOppHis(pvpdefense: PvpDefenseType, roleId: string, pos
|
|||||||
heroInfo.setAttribute(attribute);
|
heroInfo.setAttribute(attribute);
|
||||||
let enemy = new PvpEnemies(warJson, heroInfo, hs ? hs.score : 0, ce);
|
let enemy = new PvpEnemies(warJson, heroInfo, hs ? hs.score : 0, ce);
|
||||||
enemy.setOutIndex(h.order);
|
enemy.setOutIndex(h.order);
|
||||||
|
enemy.initial_ai = h.ai;
|
||||||
heroes.push(enemy);
|
heroes.push(enemy);
|
||||||
defCe += ce;
|
defCe += ce;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user