From 1bccb7ed11d14030fe7a498c69335cb9c5bf81f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Mart=C3=ADnez=20Palacio?= Date: Tue, 29 Oct 2024 16:42:19 +0100 Subject: [PATCH] Fix AI attacking Hiro after being defeated --- Scripts/hiro_ai.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/hiro_ai.gd b/Scripts/hiro_ai.gd index 439ba2f..abafd94 100644 --- a/Scripts/hiro_ai.gd +++ b/Scripts/hiro_ai.gd @@ -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():