1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:17:51 +08:00

Further simplified a type check

This commit is contained in:
OpenSauce04 2023-02-28 15:41:06 +00:00
parent 8851da05f1
commit 0a76c8ee7f

View File

@ -91,7 +91,7 @@ namespace osu.Game.Rulesets.Taiko.Mods
// 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
&& !(hitObject is DrumRoll))
&& hitObject is not DrumRoll)
return true;
if (CheckValidNewAction(action))