Update AbilityDash.java

This commit is contained in:
Kam committed 2026-02-07 17:07:05 -05:00
1 parent 0fcf37542b
commit c05b6e60b8
1 file changed
+4 -2
@@ -168,6 +168,9 @@ public class AbilityDash extends Ability implements IAbilityDash {
0,
Math.cos(yawRad)
);
// Small upward impulse for a skip/hop arc (gravity handles the descent)
caster.motionY = 0.2;
}
@Override
@@ -213,9 +216,8 @@ public class AbilityDash extends Ability implements IAbilityDash {
return;
}
// Move caster
// Move caster (motionY left to gravity for skip arc)
caster.motionX = dashDirection.xCoord * dashSpeed;
caster.motionY = 0;
caster.motionZ = dashDirection.zCoord * dashSpeed;
if (!isPreview()) {
caster.velocityChanged = true;