战力:修复重生的时候百家学宫没有更新的bug
This commit is contained in:
@@ -21,6 +21,7 @@ import { createHero, createHeroes } from '../../../services/role/createHero';
|
||||
import { CheckMeterial } from '../../../services/role/checkMaterial';
|
||||
import { HeroParam } from '../../../domain/roleField/hero';
|
||||
import { calculateCeWithHero } from '../../../services/playerCeService';
|
||||
import { SchoolModel } from '../../../db/School';
|
||||
|
||||
export default function (app: Application) {
|
||||
new HandlerService(app, {});
|
||||
@@ -651,7 +652,8 @@ export class HeroHandler {
|
||||
}
|
||||
}
|
||||
|
||||
let { curHero } = await calculateCeWithHero(HERO_SYSTEM_TYPE.REBIRTH, roleId, serverId, sid, hid, initInfo, { });
|
||||
let school = await SchoolModel.findByHid(roleId, hid);
|
||||
let { curHero } = await calculateCeWithHero(HERO_SYSTEM_TYPE.REBIRTH, roleId, serverId, sid, hid, initInfo, { schoolId: school?.schoolId });
|
||||
let goods = await addItems(roleId, roleName, sid, consumes, ITEM_CHANGE_REASON.REBIRTH);
|
||||
|
||||
const heroResult = new HeroParam(curHero);
|
||||
|
||||
Reference in New Issue
Block a user