🐞 fix(共鸣系统):修改数据下发

This commit is contained in:
zhangxk
2023-10-11 20:18:47 +08:00
parent 6470bfd5d8
commit b6e6281744
4 changed files with 33 additions and 17 deletions

View File

@@ -146,8 +146,9 @@ export async function getModuleData(type: string, data: { role: RoleType, sessio
let { dbResonanceMap } = await getResonanceDataMap(role.roleId);
role['heros'] = heros.map(hero => new HeroParam(hero));
for(let hero of role['heros']){
if(dbResonanceMap.has(hero.hid)){
for (let hero of role['heros']) {
hero.isResonance = false;
if (dbResonanceMap.has(hero.hid)) {
hero.isResonance = true;
}
}