Moved clear plate logic to Catcher class

This commit is contained in:
Darius Wattimena
2021-11-18 20:03:41 +01:00
parent 2c4f1817d3
commit 95891bc655
2 changed files with 9 additions and 13 deletions

View File

@ -210,8 +210,17 @@ namespace osu.Game.Rulesets.Catch.UI
catchResult.CatcherAnimationState = CurrentState;
catchResult.CatcherHyperDash = HyperDashing;
// Ignore JuiceStreams and BananaShowers
if (!(drawableObject is DrawablePalpableCatchHitObject palpableObject)) return;
if (palpableObject.HitObject.LastInCombo)
{
if (result.Judgement is CatchJudgement catchJudgement && catchJudgement.ShouldExplodeFor(result))
Explode();
else
Drop();
}
var hitObject = palpableObject.HitObject;
if (result.IsHit)