mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 04:19:53 +08:00
Further simplified a type check
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user