fix: enemy wretched stop when attacking
This commit is contained in:
parent
7a13823c97
commit
9e3de9c29a
1 changed files with 1 additions and 0 deletions
|
|
@ -143,6 +143,7 @@ String WretchedChaseState::get_next_state() const {
|
||||||
|
|
||||||
void WretchedAttackState::enter_state() {
|
void WretchedAttackState::enter_state() {
|
||||||
get_anim()->play("attack");
|
get_anim()->play("attack");
|
||||||
|
get_target()->set_movement_direction(Vector2());
|
||||||
}
|
}
|
||||||
|
|
||||||
String WretchedAttackState::get_next_state() const {
|
String WretchedAttackState::get_next_state() const {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue