🐞 fix(pvp): 修复巅峰演武刷新对手问题
This commit is contained in:
@@ -229,7 +229,8 @@ async function generPlayerOppHis(pvpdefense: PvpDefenseType, roleId: string, pos
|
|||||||
let h = defenseHeroes.find(cur => cur.actorId == dbHero.hid); // 阵容里是否有这个武将
|
let h = defenseHeroes.find(cur => cur.actorId == dbHero.hid); // 阵容里是否有这个武将
|
||||||
let hs = heroScores.find(cur => cur.hid == dbHero.hid); // 这个武将是否有这个得分
|
let hs = heroScores.find(cur => cur.hid == dbHero.hid); // 这个武将是否有这个得分
|
||||||
if (!!h) {
|
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);
|
let warJson = mapWarJson.find(cur => cur.dataId == h.dataId);
|
||||||
if (warJson && warJson.relation == 2) {
|
if (warJson && warJson.relation == 2) {
|
||||||
let heroInfo = new PvpHeroInfo();
|
let heroInfo = new PvpHeroInfo();
|
||||||
|
|||||||
Reference in New Issue
Block a user