diff options
Diffstat (limited to 'scripts/actors/AI')
| -rw-r--r-- | scripts/actors/AI/HostileEnemyAI.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/actors/AI/HostileEnemyAI.cs b/scripts/actors/AI/HostileEnemyAI.cs index 3989004..af87360 100644 --- a/scripts/actors/AI/HostileEnemyAI.cs +++ b/scripts/actors/AI/HostileEnemyAI.cs @@ -47,6 +47,8 @@ public partial class HostileEnemyAI : BaseAI Vector2I destination = (Vector2I) path[0]; // Se tiver um outro ator no caminho, paramos o nosso turno aqui. if (body.Map_Data.GetBlockingActorAtPosition(destination) != null) { + action = new WaitAction(body); + action.Perform(); return; } @@ -55,6 +57,12 @@ public partial class HostileEnemyAI : BaseAI action.Perform(); // Podemos remover o passo do caminho. path.RemoveAt(0); + return; } + + // SenĂ£o, espere. + action = new WaitAction(body); + action.Perform(); + return; } }
\ No newline at end of file |
