Allow restarts in ModPerfect

This commit is contained in:
Paul Teng
2018-10-14 11:18:52 -04:00
parent dea2acaea3
commit fd774c6a09
2 changed files with 9 additions and 1 deletions

View File

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