diff options
Diffstat (limited to 'scripts/Time/TurnManager.cs')
| -rw-r--r-- | scripts/Time/TurnManager.cs | 8 |
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, |
