Use ranked property of mods rather than checking for individual mods

This commit is contained in:
smoogipoo 2017-11-28 21:46:13 +09:00
parent 7db7fb91dd
commit f807d26cae
1 changed files with 1 additions and 1 deletions

View File

@ -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