Skip to content

Commit

Permalink
Fix None stars being broken as fuck
Browse files Browse the repository at this point in the history
  • Loading branch information
LumpBloom7 committed Dec 11, 2024
1 parent 41ec312 commit 99721e0
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions osu.Game.Rulesets.Sentakki/Objects/Drawables/DrawableSlideBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Logging;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Objects.Drawables;
Expand All @@ -23,7 +22,19 @@ public partial class DrawableSlideBody : DrawableSentakkiLanedHitObject
public new SlideBody HitObject => (SlideBody)base.HitObject;

// This slide body can only be interacted with iff the slidetap associated with this slide is judged
public bool IsHittable => ParentHitObject is not null && (ParentHitObject.HitObject.TapType is Slide.TapTypeEnum.None || ParentHitObject.SlideTaps.Child.Judged);
public bool IsHittable
{
get
{
if (ParentHitObject is null)
return false;

if (ParentHitObject.HitObject.TapType is Slide.TapTypeEnum.None)
return Time.Current >= HitObject.StartTime;

return ParentHitObject.SlideTaps.Child.Judged;
}
}

public Container<DrawableSlideCheckpoint> SlideCheckpoints { get; private set; } = null!;

Expand Down

0 comments on commit 99721e0

Please sign in to comment.