🐞 fix(远征&巅峰): 获取对手装备上的天晶

This commit is contained in:
luying
2023-07-07 15:59:34 +08:00
parent 8d21c5ecbf
commit 02625de882
3 changed files with 11 additions and 19 deletions
@@ -159,7 +159,6 @@ export async function matchPlayers(roleId: string, scale: number, range: number,
let { star, lv, ce, skins, colorStar, quality, job, subHid = 0, subActorId = 0, ePlace = [] } = h;
let artifact = h.artifact? artifacts.find(cur => cur.seqId == h.artifact): null;
let skin = skins?.find(cur => cur.enable);
let curJewels = jewels.filter(jewel => jewel.hid == h.hid);
let dicHero = gameData.hero.get(hero.hid);
let attr = attrByHid.get(hero.hid);
@@ -182,8 +181,7 @@ export async function matchPlayers(roleId: string, scale: number, range: number,
artifact: artifact? [{ artifactId: artifact.artifactId, lv: artifact.lv }]: [],
subHid,
subActorId,
ePlace,
jewels: curJewels
ePlace: ePlace.map(cur => ({ ...cur, jewel: jewels.find(ccur => cur.jewel == ccur.seqId) })),
};
enemyObj.enemies.push({...json, ...heroInfo});