diff --git a/game-server/app/services/pvpService.ts b/game-server/app/services/pvpService.ts index c6363cbc7..bd8c8d713 100644 --- a/game-server/app/services/pvpService.ts +++ b/game-server/app/services/pvpService.ts @@ -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();