Restore hyper dash state on revert judgement result

This commit is contained in:
ekrctb
2020-12-08 15:21:47 +09:00
parent cb76a2d7b5
commit 100b365c98
3 changed files with 47 additions and 2 deletions

View File

@ -213,6 +213,7 @@ namespace osu.Game.Rulesets.Catch.UI
{
var catchResult = (CatchJudgementResult)result;
catchResult.CatcherAnimationState = CurrentState;
catchResult.CatcherHyperDash = HyperDashing;
if (!(drawableObject.HitObject is PalpableCatchHitObject hitObject)) return;
@ -243,7 +244,17 @@ namespace osu.Game.Rulesets.Catch.UI
public void OnRevertResult(DrawableCatchHitObject fruit, JudgementResult result)
{
var catchResult = (CatchJudgementResult)result;
updateState(catchResult.CatcherAnimationState);
if (CurrentState != catchResult.CatcherAnimationState)
updateState(catchResult.CatcherAnimationState);
if (HyperDashing != catchResult.CatcherHyperDash)
{
if (catchResult.CatcherHyperDash)
SetHyperDashState(2);
else
SetHyperDashState();
}
}
/// <summary>