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

Simplified a type check

This commit is contained in:
OpenSauce04 2023-02-28 15:37:46 +00:00
parent 3aa8c81c5d
commit 616f7b3f64

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 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 if (playfield.HitObjectContainer.AliveObjects.FirstOrDefault(h => h.Result?.HasResult != true)?.HitObject is TaikoStrongableHitObject hitObject
&& hitObject.IsStrong && hitObject.IsStrong
&& hitObject as DrumRoll == null) && !(hitObject is DrumRoll))
return true; return true;
if (CheckValidNewAction(action)) if (CheckValidNewAction(action))