Skip to content

Commit

Permalink
Fix missing + before damage modifier in combat log
Browse files Browse the repository at this point in the history
Caused by 8beffd5
  • Loading branch information
bm01 committed Nov 5, 2024
1 parent bf61635 commit 737624f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GameServer/gameobjects/GameNPC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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})";

Expand Down
4 changes: 3 additions & 1 deletion GameServer/spells/SpellHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

1 comment on commit 737624f

@bm01
Copy link
Member Author

@bm01 bm01 commented on 737624f Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 8beffd5 but 8d4cc6f

Please sign in to comment.