From bf74afcdd07e59b1a48dbfacdce9d52fad765865 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 17 Aug 2025 20:18:47 -0300 Subject: Inimigos sólidos. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/actors/actions/MovementAction.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/actors/actions') diff --git a/scripts/actors/actions/MovementAction.cs b/scripts/actors/actions/MovementAction.cs index 8d864bd..6fa3491 100644 --- a/scripts/actors/actions/MovementAction.cs +++ b/scripts/actors/actions/MovementAction.cs @@ -15,6 +15,8 @@ public partial class MovementAction : Action if (!game.Map.IsTileWalkable(finalDestination)) return; + if (game.Map.GetBlockingActorAtPosition(finalDestination) != null) return; + actor.Walk(Offset); } } -- cgit v1.2.3