Merge pull request #8192 from peppy/fix-hyperdash

Fix hyperdash not initiating correctly when juice streams are present
This commit is contained in:
Dan Balasescu
2020-03-10 14:00:44 +09:00
committed by GitHub
2 changed files with 48 additions and 8 deletions

View File

@ -272,6 +272,10 @@ namespace osu.Game.Rulesets.Catch.UI
catchObjectPosition >= catcherPosition - halfCatchWidth &&
catchObjectPosition <= catcherPosition + halfCatchWidth;
// only update hyperdash state if we are catching a fruit.
// exceptions are Droplets and JuiceStreams.
if (!(fruit is Fruit)) return validCatch;
if (validCatch && fruit.HyperDash)
{
var target = fruit.HyperDashTarget;