🐞 fix(共鸣系统):修改数据下发
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user