mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 14:42:56 +08:00
Fix argon health bar showing "miss" bar for bananas
This commit is contained in:
parent
57a6025a2c
commit
2be8d66d4c
@ -136,7 +136,12 @@ namespace osu.Game.Screens.Play.HUD
|
||||
BarHeight.BindValueChanged(_ => updateContentSize(), true);
|
||||
}
|
||||
|
||||
private void onNewJudgement(JudgementResult result) => pendingMissAnimation |= !result.IsHit;
|
||||
private void onNewJudgement(JudgementResult result)
|
||||
{
|
||||
// Check the health increase because cases like osu!catch bananas fire `IgnoreMiss`,
|
||||
// which counts as a miss but doesn't actually subtract any health.
|
||||
pendingMissAnimation |= !result.IsHit && result.HealthIncrease < 0;
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user