🐞 fix(battle): 修改寻宝战斗中助战次数包含情谊助战的问题

This commit is contained in:
liangtongchuan
2023-03-01 15:22:39 +08:00
parent 2768c0254a
commit 1562769451

View File

@@ -201,6 +201,12 @@ export async function getRealReward(blueprtId: number, roleSts: RoleStatus[], ro
export async function getAllAssistCnt(roleId: string) {
let teams = await ComBattleTeamModel.getAssistTeamsByTime(roleId, getZeroPointD(), true);
if (teams.length > 0) {
// 过滤掉情谊助战次数
teams = teams.filter(team => {
let roleSt = team.roleStatus.find(st => st.roleId === roleId);
return !roleSt.isFrd;
});
return teams.length;
}