mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08:00
Fix incorrect hitobject being used as the last hitobject
This commit is contained in:
parent
f6b13ca79d
commit
83cab2ba8a
@ -60,14 +60,16 @@ namespace osu.Game.Rulesets.Catch.Difficulty
|
||||
// We want to only consider fruits that contribute to the combo. Droplets are addressed as accuracy and spinners are not relevant for "skill" calculations.
|
||||
case Fruit fruit:
|
||||
yield return new CatchDifficultyHitObject(fruit, lastObject, timeRate, halfCatchWidth);
|
||||
lastObject = hitObject;
|
||||
break;
|
||||
case JuiceStream _:
|
||||
foreach (var nested in hitObject.NestedHitObjects.OfType<CatchHitObject>().Where(o => !(o is TinyDroplet)))
|
||||
{
|
||||
yield return new CatchDifficultyHitObject(nested, lastObject, timeRate, halfCatchWidth);
|
||||
lastObject = nested;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
lastObject = hitObject;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user