diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-17 20:18:47 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-17 20:18:47 -0300 |
| commit | bf74afcdd07e59b1a48dbfacdce9d52fad765865 (patch) | |
| tree | 53ac9b8d61f7afa553ddafa0f22e2cf6014e55be /scripts/actors/actions/MovementAction.cs | |
| parent | 6fb1eb6a6fe0f3f4c2f4e9d7fc476566168eba5d (diff) | |
Inimigos sólidos.
Diffstat (limited to 'scripts/actors/actions/MovementAction.cs')
| -rw-r--r-- | scripts/actors/actions/MovementAction.cs | 2 |
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); } } |
