diff --git a/src/shattered_sword/AI/EnemyStates/EnemyState.ts b/src/shattered_sword/AI/EnemyStates/EnemyState.ts index 7116edf..064a274 100644 --- a/src/shattered_sword/AI/EnemyStates/EnemyState.ts +++ b/src/shattered_sword/AI/EnemyStates/EnemyState.ts @@ -27,7 +27,7 @@ export default abstract class EnemyState extends State { } update(deltaT: number): void { - if (!this.parent.damageTimer.isStopped()) { + if (!this.parent.damageTimer.isStopped() && !this.parent.isAttaking) { this.parent.velocity.x = 0; } // Do gravity