fix: enemy stop only not in attack
This commit is contained in:
parent
c8eec5aeb1
commit
e9ba77d876
|
@ -27,7 +27,7 @@ export default abstract class EnemyState extends State {
|
||||||
}
|
}
|
||||||
|
|
||||||
update(deltaT: number): void {
|
update(deltaT: number): void {
|
||||||
if (!this.parent.damageTimer.isStopped()) {
|
if (!this.parent.damageTimer.isStopped() && !this.parent.isAttaking) {
|
||||||
this.parent.velocity.x = 0;
|
this.parent.velocity.x = 0;
|
||||||
}
|
}
|
||||||
// Do gravity
|
// Do gravity
|
||||||
|
|
Loading…
Reference in New Issue
Block a user