后台:修复重新计算战力

This commit is contained in:
luying
2022-06-27 17:07:29 +08:00
parent e0d9681635
commit ed1586fefe

View File

@@ -321,7 +321,7 @@ export async function calculateCes(type: HERO_SYSTEM_TYPE, roleId: string, serve
for(let { schoolId, hid, } of schools) {
let curHero = heroes.find(cur => cur.hid == hid);
calCe.setSchool(true, hid, schoolId, curHero.star, curHero.colorStar, curHero.quality);
if(curHero) calCe.setSchool(true, hid, schoolId, curHero.star, curHero.colorStar, curHero.quality);
}
for(let { id } of skins) {