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:
parent
3aa8c81c5d
commit
616f7b3f64
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user