Fix AI attacking Hiro after being defeated

This commit is contained in:
Mario Martínez 2024-10-29 16:42:19 +01:00
parent c6f2d65469
commit 1bccb7ed11

View file

@ -292,7 +292,7 @@ func _on_victory_state_entered():
state_machine.set_expression_property("melee_stage", 0)
velocity = Vector2.ZERO
func _on_player_been_defeated():
func _on_player_been_defeated(_by_what: Util.AttackType):
state_machine.send_event("has_won")
func _on_align_for_range_state_entered():