From 6f2c2edd52171a4df7f35de695c9b2e7801d3e5f Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 4 Sep 2025 16:58:58 -0300 Subject: Preparação para itens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/entities/actors/AI/HostileEnemyAI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/entities/actors/AI/HostileEnemyAI.cs') diff --git a/scripts/entities/actors/AI/HostileEnemyAI.cs b/scripts/entities/actors/AI/HostileEnemyAI.cs index 35d6d1a..e7efd26 100644 --- a/scripts/entities/actors/AI/HostileEnemyAI.cs +++ b/scripts/entities/actors/AI/HostileEnemyAI.cs @@ -53,8 +53,8 @@ public partial class HostileEnemyAI : BaseAI if (path.Count > 0) { // Pegamos o próximo passo para o destino. Vector2I destination = (Vector2I) path[0]; - // Se tiver um outro ator no caminho, paramos o nosso turno aqui. - if (body.Map_Data.GetBlockingActorAtPosition(destination) != null) { + // Se tiver o caminho estiver bloqueado, paramos o nosso turno aqui. + if (body.Map_Data.GetBlockingEntityAtPosition(destination) != null) { action = new WaitAction(body); action.Perform(); return; -- cgit v1.2.3