1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 06:42:56 +08:00

Allow autoplay to fail

Feels more correct.
This commit is contained in:
Dean Herbert 2023-07-13 13:41:35 +09:00
parent a891dcd9e6
commit fbf14a0f7c
2 changed files with 3 additions and 4 deletions

View File

@ -11,7 +11,7 @@ using osu.Game.Replays;
namespace osu.Game.Rulesets.Mods
{
public abstract class ModAutoplay : Mod, IApplicableFailOverride, ICreateReplayData
public abstract class ModAutoplay : Mod, ICreateReplayData
{
public override string Name => "Autoplay";
public override string Acronym => "AT";
@ -20,8 +20,6 @@ namespace osu.Game.Rulesets.Mods
public override LocalisableString Description => "Watch a perfect automated play through the song.";
public override double ScoreMultiplier => 1;
public bool PerformFail() => false;
public bool RestartOnFail => false;
public override bool UserPlayable => false;

View File

@ -5,6 +5,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using osu.Framework.Bindables;
using osu.Framework.Input.Bindings;
@ -30,7 +31,7 @@ namespace osu.Game.Screens.Play
// Disallow replays from failing. (see https://github.com/ppy/osu/issues/6108)
protected override bool CheckModsAllowFailure()
{
if (!replayIsFailedScore)
if (!replayIsFailedScore && !GameplayState.Mods.OfType<ModAutoplay>().Any())
return false;
return base.CheckModsAllowFailure();