From 5958d9c071915ab71aea5a5c08d79e88024f6c58 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 14 Sep 2025 00:14:25 -0300 Subject: The newer scolls: groundrim. --- scripts/Magic/DamageEffect.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/Magic/DamageEffect.cs') 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 -- cgit v1.2.3