mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 15:27:29 +00:00
Update AbilityDash.java
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user