fix: enemy stop only not in attack

This commit is contained in:
Renge 2022-04-25 21:50:25 -04:00
parent c8eec5aeb1
commit e9ba77d876

View File

@ -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