summaryrefslogtreecommitdiff
path: root/scripts/actors/actions/MeleeAction.cs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/actors/actions/MeleeAction.cs')
-rw-r--r--scripts/actors/actions/MeleeAction.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/actors/actions/MeleeAction.cs b/scripts/actors/actions/MeleeAction.cs
index 1a74c22..c6d0960 100644
--- a/scripts/actors/actions/MeleeAction.cs
+++ b/scripts/actors/actions/MeleeAction.cs
@@ -4,15 +4,15 @@ using System.Net.NetworkInformation;
public partial class MeleeAction : DirectionalAction
{
- public MeleeAction(Vector2I offset) : base(offset)
+ public MeleeAction(Actor actor, Vector2I offset) : base(actor, offset)
{
}
- public override void Perform(Game game, Actor actor)
+ public override void Perform()
{
Vector2I destination = actor.GridPosition + Offset;
- Actor target = game.Map.GetBlockingActorAtPosition(destination);
+ Actor target = GetBlockingActorAtPosition(destination);
if (target == null) return;