pvp:修复挑战阵容战力问题
This commit is contained in:
@@ -46,7 +46,7 @@ export async function calPlayerCeAndSave(type: number, roleId: string, originHer
|
||||
let { topLineup, topLineupCe } = await calculatetopLineup(role, originHero.hid, heroCe, originHero._id); // 计算更新最强五人战力
|
||||
role = await RoleModel.updateRoleInfo(roleId, { ce: role.ce + incCe, topLineup, topLineupCe });
|
||||
|
||||
await PvpDefenseModel.updateCe(roleId, originHero.hid, incCe); // 更新pvp防守阵战力
|
||||
await PvpDefenseModel.updateCe(roleId, originHero.hid, reduceCe(incCe)); // 更新pvp防守阵战力
|
||||
let guild = await GuildModel.updateCe(roleId, incCe); // 公会更新战力
|
||||
|
||||
let pushHeros = new Array<{ hid: number, ce: number, incHeroCe: number }>();
|
||||
@@ -83,7 +83,7 @@ export async function reCalAllHeroCe(type: number, roleId: string, update: RoleU
|
||||
allIncCe += incHeroCe;
|
||||
pushHeros.push({ hid: hero.hid, ce: reduceCe(heroCe), incHeroCe: reduceCe(incHeroCe) });
|
||||
await HeroModel.updateHeroInfo(roleId, hero.hid, { ce: heroCe });
|
||||
await PvpDefenseModel.updateCe(roleId, hero.hid, incHeroCe); // 更新pvp防守阵战力
|
||||
await PvpDefenseModel.updateCe(roleId, hero.hid, reduceCe(incHeroCe)); // 更新pvp防守阵战力
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user