1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +08:00

Strong drumrolls no longer allow all actions to be used

This commit is contained in:
OpenSauce04 2023-02-27 12:22:38 +00:00 committed by OpenSauce
parent b883c6af34
commit f2cada4584

View File

@ -99,8 +99,10 @@ namespace osu.Game.Rulesets.Taiko.Mods
return true; return true;
} }
// If next hit object is strong, allow usage of all actions // If next hit object is strong, allow usage of all actions. Strong drumrolls are ignored in this check.
if (playfield.HitObjectContainer.AliveObjects.FirstOrDefault(h => h.Result?.HasResult != true)?.HitObject is TaikoStrongableHitObject hitObject && hitObject.IsStrong) if (playfield.HitObjectContainer.AliveObjects.FirstOrDefault(h => h.Result?.HasResult != true)?.HitObject is TaikoStrongableHitObject hitObject
&& hitObject.IsStrong
&& hitObject as DrumRoll == null)
return true; return true;
if (CheckValidNewAction(action)) if (CheckValidNewAction(action))