summaryrefslogtreecommitdiff
path: root/scripts/Magic/DamageEffect.cs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Magic/DamageEffect.cs')
-rw-r--r--scripts/Magic/DamageEffect.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/Magic/DamageEffect.cs b/scripts/Magic/DamageEffect.cs
index abd2cca..0b2b3d6 100644
--- a/scripts/Magic/DamageEffect.cs
+++ b/scripts/Magic/DamageEffect.cs
@@ -1,5 +1,6 @@
using Godot;
using TheLegendOfGustav.Entities.Actors;
+using TheLegendOfGustav.Utils;
namespace TheLegendOfGustav.Magic;
@@ -13,6 +14,8 @@ public partial class DamageEffect : SpellEffect
{
int damageDealt = Damage - target.Men;
+ MessageLogData.Instance.AddMessage($"{caster.DisplayName} aplica {damageDealt} de dano mágico em {target.DisplayName}");
+
target.Hp -= damageDealt;
}
} \ No newline at end of file