summaryrefslogtreecommitdiff
path: root/scripts/Time
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-09-14 00:14:25 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-09-14 00:14:25 -0300
commit5958d9c071915ab71aea5a5c08d79e88024f6c58 (patch)
tree8ab992a1ae055ea501faa48f3fdc778061945ba0 /scripts/Time
parent539fd4820f37aa54df8878091db9680d89ee027a (diff)
The newer scolls: groundrim.
Diffstat (limited to 'scripts/Time')
-rw-r--r--scripts/Time/TurnManager.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/Time/TurnManager.cs b/scripts/Time/TurnManager.cs
index 9713fea..3937aa0 100644
--- a/scripts/Time/TurnManager.cs
+++ b/scripts/Time/TurnManager.cs
@@ -3,6 +3,7 @@ using TheLegendOfGustav.Map;
using TheLegendOfGustav.Entities.Actors;
using TheLegendOfGustav.Entities;
using TheLegendOfGustav.Entities.Actions;
+using TheLegendOfGustav.Utils;
namespace TheLegendOfGustav.Time;
@@ -64,6 +65,13 @@ public partial class TurnManager(Map.Map map) : RefCounted
PlayerActionQueue.RemoveAt(0);
actionResult = action.Perform();
+
+ // TODO: Isto é feio, lembre-me de mudar isto antes da entrega final.
+ if (action is SpellAction)
+ {
+ GD.Print(actionResult);
+ SignalBus.Instance.EmitSignal(SignalBus.SignalName.PlayerSpellCast, actionResult);
+ }
}
// Se a ação do jogador for gratuita ou se o jogador ainda possuir energia,