mirror of
https://github.com/ppy/osu
synced 2025-01-07 14:49:57 +00:00
Merge pull request #27677 from smoogipoo/fix-catch-banana-fail
Fix catch banana shower judgement causing fail when at 0 HP
This commit is contained in:
commit
983385bafc
@ -19,6 +19,7 @@ namespace osu.Game.Rulesets.Catch.Tests
|
||||
[new Droplet(), 0.01, true],
|
||||
[new TinyDroplet(), 0, false],
|
||||
[new Banana(), 0, false],
|
||||
[new BananaShower(), 0, false]
|
||||
];
|
||||
|
||||
[TestCaseSource(nameof(test_cases))]
|
||||
|
@ -32,6 +32,10 @@ namespace osu.Game.Rulesets.Catch.Scoring
|
||||
if (result.Type == HitResult.SmallTickMiss)
|
||||
return false;
|
||||
|
||||
// on stable, banana showers don't exist as concrete objects themselves, so they can't cause a fail.
|
||||
if (result.HitObject is BananaShower)
|
||||
return false;
|
||||
|
||||
return base.CheckDefaultFailCondition(result);
|
||||
}
|
||||
|
||||
|
@ -108,6 +108,9 @@ namespace osu.Game.Rulesets.Scoring
|
||||
increaseHp(h);
|
||||
}
|
||||
|
||||
if (topLevelObjectCount == 0)
|
||||
return testDrop;
|
||||
|
||||
if (!fail && currentHp < lowestHpEnd)
|
||||
{
|
||||
fail = true;
|
||||
|
Loading…
Reference in New Issue
Block a user