Stop NPC pathfinding fighting Charge's own movement

Charge drives the NPC with applyVelocityFlat but never declared that it does, so
locking movement during the active phase zeroed its motion outright while not
locking left the navigator running against it - no setting worked. It now
declares its own movement and locks both phases, so the navigator stays clear.
This commit is contained in:
KAMKEEL committed 2026-08-11 04:24:40 -04:00
1 parent 1acda0e6b0
commit c79f5998d6
1 file changed
+6 -1
@@ -43,7 +43,7 @@ public class AbilityCharge extends AbilityMovement implements IAbilityCharge {
this.targetingMode = TargetingMode.AGGRO_TARGET;
this.maxRange = 20.0f;
this.minRange = 4.0f;
this.lockMovement = LockMode.WINDUP;
this.lockMovement = LockMode.WINDUP_AND_ACTIVE;
this.cooldownTicks = 0;
this.windUpTicks = 20;
// LINE telegraph showing charge path
@@ -58,6 +58,11 @@ public class AbilityCharge extends AbilityMovement implements IAbilityCharge {
};
}
@Override
public boolean hasAbilityMovement() {
return true; // This ability drives the NPC's motion itself
}
@Override
public boolean isTargetingModeLocked() {
return true;