summaryrefslogtreecommitdiff
path: root/scripts/Time/TurnManager.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-09-01 17:50:25 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-09-01 17:50:25 -0300
commit0456e7cd82b232a38fd9b6e008be7d49b2f9e90f (patch)
treeea2285eaca0d68c269d07212bc6a1e3688b9aef8 /scripts/Time/TurnManager.cs
parentd7d2454d5ccc1e0acb47cb679c7550e74c4e1916 (diff)
Logs
Diffstat (limited to 'scripts/Time/TurnManager.cs')
-rw-r--r--scripts/Time/TurnManager.cs2
1 files changed, 1 insertions, 1 deletions
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);