mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Allow restarts in ModPerfect
This commit is contained in:
@ -289,6 +289,12 @@ namespace osu.Game.Screens.Play
|
||||
if (Beatmap.Value.Mods.Value.OfType<IApplicableFailOverride>().Any(m => !m.AllowFail))
|
||||
return false;
|
||||
|
||||
if (Beatmap.Value.Mods.Value.OfType<IApplicableRestartOnFail>().Any(m => m.AllowRestart))
|
||||
{
|
||||
Restart();
|
||||
return false;
|
||||
}
|
||||
|
||||
adjustableClock.Stop();
|
||||
|
||||
HasFailed = true;
|
||||
|
Reference in New Issue
Block a user