🐞 fix(pvp): 修复巅峰演武刷新对手问题

This commit is contained in:
luying
2023-03-21 21:03:39 +08:00
parent 4abd831f20
commit 9115794b82

View File

@@ -229,7 +229,8 @@ async function generPlayerOppHis(pvpdefense: PvpDefenseType, roleId: string, pos
let h = defenseHeroes.find(cur => cur.actorId == dbHero.hid); // 阵容里是否有这个武将
let hs = heroScores.find(cur => cur.hid == dbHero.hid); // 这个武将是否有这个得分
if (!!h) {
let mapWarJson = gameData.warJson.get(warId);
let dicWar = gameData.war.get(warId);
let mapWarJson = gameData.warJson.get(dicWar.dispatchJsonId);
let warJson = mapWarJson.find(cur => cur.dataId == h.dataId);
if (warJson && warJson.relation == 2) {
let heroInfo = new PvpHeroInfo();