mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Invert if
This commit is contained in:
@ -245,9 +245,12 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
catchObjectPosition >= catcherPosition - halfCatchWidth &&
|
catchObjectPosition >= catcherPosition - halfCatchWidth &&
|
||||||
catchObjectPosition <= catcherPosition + halfCatchWidth;
|
catchObjectPosition <= catcherPosition + halfCatchWidth;
|
||||||
|
|
||||||
|
if (validCatch)
|
||||||
|
placeCaughtObject(fruit);
|
||||||
|
|
||||||
// droplet doesn't affect the catcher state
|
// droplet doesn't affect the catcher state
|
||||||
if (!(fruit is TinyDroplet))
|
if (fruit is TinyDroplet) return validCatch;
|
||||||
{
|
|
||||||
if (validCatch && fruit.HyperDash)
|
if (validCatch && fruit.HyperDash)
|
||||||
{
|
{
|
||||||
var target = fruit.HyperDashTarget;
|
var target = fruit.HyperDashTarget;
|
||||||
@ -264,10 +267,6 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
updateState(fruit.Kiai ? CatcherAnimationState.Kiai : CatcherAnimationState.Idle);
|
updateState(fruit.Kiai ? CatcherAnimationState.Kiai : CatcherAnimationState.Idle);
|
||||||
else if (!(fruit is Banana))
|
else if (!(fruit is Banana))
|
||||||
updateState(CatcherAnimationState.Fail);
|
updateState(CatcherAnimationState.Fail);
|
||||||
}
|
|
||||||
|
|
||||||
if (validCatch)
|
|
||||||
placeCaughtObject(fruit);
|
|
||||||
|
|
||||||
return validCatch;
|
return validCatch;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user