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

Fix flourish sample not playing if strong hits are hit early

This commit is contained in:
Bartłomiej Dach 2023-07-08 19:22:32 +02:00
parent fee56ac6d2
commit ba0cd7a3f2
No known key found for this signature in database

View File

@ -66,7 +66,10 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Argon
if (canFlourish)
lastFlourish = h.StartTime;
if (h == hitObject)
// hitObject can be either the strong hit itself (if hit late), or its nested strong object (if hit early)
// due to `GetMostValidObject()` idiosyncrasies.
// whichever it is, if we encounter it during iteration, stop looking.
if (h == hitObject || h.NestedHitObjects.Contains(hitObject))
return canFlourish;
}