Fixed an issue where Taiko's Single Tap could allow alternation under very specific circumstances

This commit is contained in:
OpenSauce04 2023-03-03 17:13:39 +00:00
parent ec95d00313
commit 865f785f50
1 changed files with 8 additions and 1 deletions

View File

@ -26,7 +26,14 @@ public partial class TaikoModSingleTap : Mod, IApplicableToDrawableRuleset<Taiko
public override string Acronym => @"SG"; public override string Acronym => @"SG";
public override LocalisableString Description => @"One key for dons, one key for kats."; public override LocalisableString Description => @"One key for dons, one key for kats.";
protected bool CheckValidNewAction(TaikoAction action) => LastAcceptedDonAction == null || LastAcceptedDonAction == action || LastAcceptedKatAction == null || LastAcceptedKatAction == action; protected bool CheckValidNewAction(TaikoAction action)
{
if (action == TaikoAction.LeftCentre || action == TaikoAction.RightCentre)
return LastAcceptedDonAction == null || LastAcceptedDonAction == action;
if (action == TaikoAction.LeftRim || action == TaikoAction.RightRim)
return LastAcceptedKatAction == null || LastAcceptedKatAction == action;
return true;
}
public override double ScoreMultiplier => 1.0; public override double ScoreMultiplier => 1.0;
public override Type[] IncompatibleMods => new[] { typeof(ModAutoplay), typeof(ModRelax), typeof(TaikoModCinema) }; public override Type[] IncompatibleMods => new[] { typeof(ModAutoplay), typeof(ModRelax), typeof(TaikoModCinema) };