summaryrefslogtreecommitdiff
path: root/scripts/entities/actors/actions/MovementAction.cs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/entities/actors/actions/MovementAction.cs')
-rw-r--r--scripts/entities/actors/actions/MovementAction.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/entities/actors/actions/MovementAction.cs b/scripts/entities/actors/actions/MovementAction.cs
index 3608357..2c394fc 100644
--- a/scripts/entities/actors/actions/MovementAction.cs
+++ b/scripts/entities/actors/actions/MovementAction.cs
@@ -12,11 +12,11 @@ public partial class MovementAction : DirectionalAction
public override void Perform()
{
// Não anda se o destino for um tile sólido.
- if (!Map_Data.IsTileWalkable(Destination)) return;
+ if (!Map_Data.GetTile(Destination).IsWalkable) return;
// Não anda se o destino for oculpado por um ator.
// Na maioria dos casos, essa condição nunca é verdadeira.
- if (GetTargetActor() != null) return;
+ if (GetTarget() != null) return;
actor.Walk(Offset);
actor.Energy -= cost;