diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-14 00:14:25 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-14 00:14:25 -0300 |
| commit | 5958d9c071915ab71aea5a5c08d79e88024f6c58 (patch) | |
| tree | 8ab992a1ae055ea501faa48f3fdc778061945ba0 /scripts/Magic | |
| parent | 539fd4820f37aa54df8878091db9680d89ee027a (diff) | |
The newer scolls: groundrim.
Diffstat (limited to 'scripts/Magic')
| -rw-r--r-- | scripts/Magic/DamageEffect.cs | 3 |
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 |
