Fix banannanananana showers not exploding enough

This commit is contained in:
Dean Herbert
2018-01-12 22:30:21 +09:00
parent 7b19353ed8
commit 9e10854840
2 changed files with 17 additions and 7 deletions

View File

@ -69,18 +69,20 @@ namespace osu.Game.Rulesets.Catch.UI
lastPlateableFruit = caughtFruit;
}
// this is required to make this run after the last caught fruit runs UpdateState at least once.
// TODO: find a better alternative
lastPlateableFruit.OnLoadComplete = _ =>
if (fruit.HitObject.LastInCombo)
{
if (fruit.HitObject.LastInCombo)
if (judgement.IsHit)
{
if (judgement.IsHit)
// this is required to make this run after the last caught fruit runs UpdateState at least once.
// TODO: find a better alternative
if (lastPlateableFruit.IsLoaded)
MovableCatcher.Explode();
else
MovableCatcher.Drop();
lastPlateableFruit.OnLoadComplete = _ => { MovableCatcher.Explode(); };
}
};
else
MovableCatcher.Drop();
}
}
public bool OnPressed(CatchAction action)