Fix hyperdash not initiating correctly when juice streams are present

This commit is contained in:
Dean Herbert
2020-03-10 10:07:47 +09:00
parent f5e134806a
commit e7f1f0f38b
2 changed files with 48 additions and 8 deletions

View File

@ -270,6 +270,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;