1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 11:02:57 +08:00

fix usage of flashlight difficulty

This commit is contained in:
minisbett 2024-11-17 18:37:43 +01:00
parent 6e2f8cf4c2
commit ae25f27785
No known key found for this signature in database
GPG Key ID: 2DB6D529C95A0403

View File

@ -283,7 +283,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty
if (!score.Mods.Any(h => h is OsuModFlashlight))
return 0.0;
double flashlightValue = Flashlight.DifficultyToPerformance(attributes.FlashlightDifficulty);
double flashlightValue = Flashlight.DifficultyToPerformance(attributes.FlashlightDifficulty!.Value);
// Penalize misses by assessing # of misses relative to the total # of objects. Default a 3% reduction for any # of misses.
if (effectiveMissCount > 0)