From 5958d9c071915ab71aea5a5c08d79e88024f6c58 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 14 Sep 2025 00:14:25 -0300 Subject: The newer scolls: groundrim. --- scripts/Time/TurnManager.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/Time/TurnManager.cs') 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, -- cgit v1.2.3