From 0456e7cd82b232a38fd9b6e008be7d49b2f9e90f Mon Sep 17 00:00:00 2001 From: Matheus Date: Mon, 1 Sep 2025 17:50:25 -0300 Subject: Logs --- scripts/Time/TurnManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/Time/TurnManager.cs') diff --git a/scripts/Time/TurnManager.cs b/scripts/Time/TurnManager.cs index 0c2981c..af721ee 100644 --- a/scripts/Time/TurnManager.cs +++ b/scripts/Time/TurnManager.cs @@ -51,7 +51,7 @@ public partial class TurnManager : RefCounted } // Primeiro executamos a ação do jogador, se ele puder. - if (Player.Energy > 0) { + if (playerActionQueue.Count > 0 && Player.Energy > 0) { Action action = playerActionQueue[0]; playerActionQueue.RemoveAt(0); -- cgit v1.2.3