From 737624f184918e4f03b3c8bb59d27be6bd708e00 Mon Sep 17 00:00:00 2001 From: Baptiste Marie Date: Tue, 5 Nov 2024 11:12:50 +0100 Subject: [PATCH] Fix missing + before damage modifier in combat log Caused by 8beffd5 --- GameServer/gameobjects/GameNPC.cs | 2 +- GameServer/spells/SpellHandler.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/GameServer/gameobjects/GameNPC.cs b/GameServer/gameobjects/GameNPC.cs index 92d51d057..a95b5c553 100644 --- a/GameServer/gameobjects/GameNPC.cs +++ b/GameServer/gameobjects/GameNPC.cs @@ -3240,7 +3240,7 @@ public override void OnAttackedByEnemy(AttackData ad) string modMessage = string.Empty; if (ad.Modifier > 0) - modMessage = $" ({ad.Modifier})"; + modMessage = $" (+{ad.Modifier})"; else if (ad.Modifier < 0) modMessage = $" ({ad.Modifier})"; diff --git a/GameServer/spells/SpellHandler.cs b/GameServer/spells/SpellHandler.cs index 7598c31af..8e1d93aa6 100644 --- a/GameServer/spells/SpellHandler.cs +++ b/GameServer/spells/SpellHandler.cs @@ -3264,7 +3264,9 @@ public virtual void SendDamageMessages(AttackData ad) { string modMessage = string.Empty; - if (ad.Modifier != 0) + if (ad.Modifier > 0) + modMessage = $" (+{ad.Modifier})"; + else if (ad.Modifier < 0) modMessage = $" ({ad.Modifier})"; if (Caster is GamePlayer or NecromancerPet)