🐞 fix(武将攻略): 武将对比时将我方全局值也下发
This commit is contained in:
@@ -252,7 +252,7 @@ export class HeroHandler {
|
||||
update['consumes'] = addConsumeToHero(hero.consumes, material)
|
||||
}
|
||||
|
||||
await SchoolModel.updateByHid(roleId, hid, { hid, star: update.quality });
|
||||
await SchoolModel.updateByHid(roleId, hid, { hid, quality: update.quality });
|
||||
let { curHero } = await calculateCeWithHero(HERO_SYSTEM_TYPE.QUALITY, roleId, serverId, sid, hid, update, { hero });
|
||||
await checkTaskInHeroQUalityUp(serverId, roleId, sid, curHero);
|
||||
// pushHeroQualityUpMsg(roleId, roleName, serverId, curHero);
|
||||
@@ -330,7 +330,7 @@ export class HeroHandler {
|
||||
|
||||
let { curHero } = await calculateCeWithHero(HERO_SYSTEM_TYPE.COLORSTAR, roleId, serverId, sid, hid, update, { hero, isUpStar });
|
||||
if (isUpStar) {
|
||||
await SchoolModel.updateByHid(roleId, hid, { hid, star: update.colorStar });
|
||||
await SchoolModel.updateByHid(roleId, hid, { hid, quality: update.quality, colorStar: update.colorStar });
|
||||
await checkTaskInHeroWakeUp(serverId, roleId, sid, curHero, oldColorStar); // 任务
|
||||
}
|
||||
if (isWakeUp) pushHeroWakeUp(roleId, roleName, serverId, curHero); // 第一次觉醒
|
||||
|
||||
Reference in New Issue
Block a user