Only miss slider tail on untrack

This commit is contained in:
apollo-dw 2022-03-19 23:42:12 +00:00
parent 149cfd338d
commit 52d6f083dc
1 changed files with 3 additions and 7 deletions

View File

@ -33,13 +33,10 @@ public void ApplyToDrawableHitObject(DrawableHitObject drawable)
{
if (e.NewValue || slider.Judged) return;
slider.MissForcefully();
var tail = slider.NestedHitObjects.OfType<StrictTrackingDrawableSliderTail>().First();
foreach (var o in slider.NestedHitObjects)
{
if (o is DrawableOsuHitObject h && !o.Judged)
h.MissForcefully();
}
if (!tail.Judged)
tail.MissForcefully();
};
}
}
@ -66,7 +63,6 @@ public void ApplyToBeatmap(IBeatmap beatmap)
public void ApplyToDrawableRuleset(DrawableRuleset<OsuHitObject> drawableRuleset)
{
drawableRuleset.Playfield.RegisterPool<StrictTrackingSlider, DrawableSlider>(10, 100);
drawableRuleset.Playfield.RegisterPool<StrictTrackingSliderTailCircle, StrictTrackingDrawableSliderTail>(10, 100);
}
}