mirror of https://github.com/ppy/osu
Use ranked property of mods rather than checking for individual mods
This commit is contained in:
parent
7db7fb91dd
commit
f807d26cae
|
@ -47,7 +47,7 @@ public override double Calculate(Dictionary<string, double> categoryRatings = nu
|
|||
countMiss = Convert.ToInt32(Score.Statistics["x"]);
|
||||
|
||||
// Don't count scores made with supposedly unranked mods
|
||||
if (mods.Any(m => m is OsuModRelax || m is OsuModAutopilot || m is OsuModAutoplay))
|
||||
if (mods.Any(m => !m.Ranked))
|
||||
return 0;
|
||||
|
||||
// Todo: In the future we should apply changes to PreEmpt/AR at an OsuHitObject/BaseDifficulty level, but this is done
|
||||
|
|
Loading…
Reference in New Issue