summaryrefslogtreecommitdiff
path: root/scripts/actors
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-08-17 20:18:47 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-08-17 20:18:47 -0300
commitbf74afcdd07e59b1a48dbfacdce9d52fad765865 (patch)
tree53ac9b8d61f7afa553ddafa0f22e2cf6014e55be /scripts/actors
parent6fb1eb6a6fe0f3f4c2f4e9d7fc476566168eba5d (diff)
Inimigos sólidos.
Diffstat (limited to 'scripts/actors')
-rw-r--r--scripts/actors/actions/MovementAction.cs2
1 files changed, 2 insertions, 0 deletions
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);
}
}