From 240156765d88db25dd092fc320005cdb5f28d7a7 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 17 Aug 2025 21:45:07 -0300 Subject: Refactor no sistema de ações MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/actors/actions/MeleeAction.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/actors/actions/MeleeAction.cs') 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; -- cgit v1.2.3