From b0fe7d284c8a172e628f898711a6b996539d0d3e Mon Sep 17 00:00:00 2001 From: kot9pa16lvl Date: Sun, 17 Mar 2024 17:38:38 +0300 Subject: [PATCH] fixed jump height after diagonal dash ends --- CelesteDash/CelesteDash.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CelesteDash/CelesteDash.cs b/CelesteDash/CelesteDash.cs index 76de6ed..86eb0a1 100644 --- a/CelesteDash/CelesteDash.cs +++ b/CelesteDash/CelesteDash.cs @@ -257,7 +257,7 @@ private bool CanJumpNoDash(On.HeroController.orig_CanJump orig, HeroController s lastVel.x = maxDashSpeed * Math.Sign(dashDir.x) * 1.2f; lastVel.y = 0f; inHyper = true; - } else if (dashDir.y < -0.001f) /// intended ultra + } else if ((dashDir.y < -0.001f) && (Math.Abs(lastVel.x > maxDashSpeed - 0.001f)) /// intended ultra { lastVel.x = lastVel.x * 1.2f; lastVel.y = 0f;