summaryrefslogtreecommitdiff
path: root/scripts/actors/actions/MeleeAction.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-08-28 18:23:02 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-08-28 18:23:02 -0300
commit29e378ff070ae525a666ffa6a286caab898abbc7 (patch)
treeb89848e913e2593e0c8abab24c26268ad42acb80 /scripts/actors/actions/MeleeAction.cs
parent2ed63124ef044a223fc9c7b660100c91af6f39b0 (diff)
Correção no sistema
Diffstat (limited to 'scripts/actors/actions/MeleeAction.cs')
-rw-r--r--scripts/actors/actions/MeleeAction.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/actors/actions/MeleeAction.cs b/scripts/actors/actions/MeleeAction.cs
index 56a2dc3..fe00422 100644
--- a/scripts/actors/actions/MeleeAction.cs
+++ b/scripts/actors/actions/MeleeAction.cs
@@ -14,6 +14,7 @@ public partial class MeleeAction : DirectionalAction
/// </summary>
public override void Perform()
{
+ actor.Energy -= cost;
// Eu te disse que este método seria útil.
Actor target = GetTargetActor();
@@ -32,7 +33,6 @@ public partial class MeleeAction : DirectionalAction
attackDesc += $" mas {target.ActorName} tem músculos de aço.";
}
- actor.Energy -= cost;
GD.Print(attackDesc);
}
}