🐞 fix(battle): 修改寻宝战斗中助战次数包含情谊助战的问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user