Invert if

This commit is contained in:
ekrctb
2020-12-04 10:24:25 +09:00
parent e82ca66d3e
commit 23af70dd32

View File

@ -245,9 +245,12 @@ namespace osu.Game.Rulesets.Catch.UI
catchObjectPosition >= catcherPosition - halfCatchWidth &&
catchObjectPosition <= catcherPosition + halfCatchWidth;
if (validCatch)
placeCaughtObject(fruit);
// droplet doesn't affect the catcher state
if (!(fruit is TinyDroplet))
{
if (fruit is TinyDroplet) return validCatch;
if (validCatch && fruit.HyperDash)
{
var target = fruit.HyperDashTarget;
@ -264,10 +267,6 @@ namespace osu.Game.Rulesets.Catch.UI
updateState(fruit.Kiai ? CatcherAnimationState.Kiai : CatcherAnimationState.Idle);
else if (!(fruit is Banana))
updateState(CatcherAnimationState.Fail);
}
if (validCatch)
placeCaughtObject(fruit);
return validCatch;
}