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

Also check for AffectsCombo to avoid too many passing switches

This commit is contained in:
Dean Herbert 2020-05-08 19:13:41 +09:00
parent 9b8589583c
commit 1a31e1f10f

View File

@ -35,8 +35,12 @@ namespace osu.Game.Rulesets.Taiko.Skinning
LastResult.BindValueChanged(result =>
{
var r = result.NewValue;
bool passing = r == null || (r.Judgement.AffectsCombo && r.Type > HitResult.Miss);
foreach (var sprite in InternalChildren.OfType<ScrollerSprite>())
sprite.Passing = result.NewValue == null || result.NewValue.Type > HitResult.Miss;
sprite.Passing = passing;
}, true);
}