diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-26 22:59:57 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-26 22:59:57 -0300 |
| commit | 6c7e2ac133986efa57b43df52a5498c6f7efcf75 (patch) | |
| tree | 8404bfd3415a8dfcf7073191cbfdf58cc7c905ed /scripts/Game.cs | |
| parent | a3103718796a472da76838bf6fd72ba5d8409d79 (diff) | |
AI
Diffstat (limited to 'scripts/Game.cs')
| -rw-r--r-- | scripts/Game.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/Game.cs b/scripts/Game.cs index 5c18cd7..818b064 100644 --- a/scripts/Game.cs +++ b/scripts/Game.cs @@ -44,8 +44,9 @@ public partial class Game : Node { private void HandleEnemyTurns() { foreach (Actor actor in Map.Map_Data.Actors) { if (actor is Player) continue; - - GD.Print($"O {actor.ActorName} foi cuckado e não tem como agir."); + if (actor is Enemy enemy && enemy.IsAlive) { + enemy.Soul.Perform(); + } } } } |
