From 482526135fb1396de1ceed319e9f7ebafccf9589 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Fri, 3 Aug 2018 16:07:20 +0900 Subject: [PATCH] Make IsHit not consider nested hitobjects --- .../Rulesets/Objects/Drawables/DrawableHitObject.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/osu.Game/Rulesets/Objects/Drawables/DrawableHitObject.cs b/osu.Game/Rulesets/Objects/Drawables/DrawableHitObject.cs index 2b2daec8c6..a22a7a616b 100644 --- a/osu.Game/Rulesets/Objects/Drawables/DrawableHitObject.cs +++ b/osu.Game/Rulesets/Objects/Drawables/DrawableHitObject.cs @@ -43,16 +43,17 @@ namespace osu.Game.Rulesets.Objects.Drawables /// public virtual bool DisplayJudgement => true; - /// - /// Whether this and all of its nested s have been hit. - /// - public bool IsHit => (Result?.IsHit ?? true) && NestedHitObjects.All(n => n.IsHit); - /// /// Whether this and all of its nested s have been judged. /// public bool AllJudged => Judged && NestedHitObjects.All(h => h.AllJudged); + /// + /// Whether this has been hit. This occurs if is . + /// Note: This does NOT include nested hitobjects. + /// + public bool IsHit => Result?.IsHit ?? false; + /// /// Whether this has been judged. /// Note: This does NOT include nested hitobjects.