From 6b411944b3e2e78e0c20c07a2ab2b060468db4eb Mon Sep 17 00:00:00 2001 From: Jascen Date: Sat, 17 Oct 2026 16:55:17 -0400 Subject: [PATCH] fix: Skip karma message when karma change is zero (#2710) ## Summary `SendKarmaMessage` maps the karma change to a message, and its fallback arm is "You have lost a little karma." (1019063). A change of `0` lands in that arm, so the player is told they lost karma when nothing changed. How to reproduce on a clean build: kill a creature with 0 karma, such as a grey wolf. The kill awards 0 karma and the player sees "You have lost a little karma." This change returns early when the change is `0`, which matches how `AwardFame` already handles fame: it sends nothing when fame doesn't change. ## Test plan - [x] `dotnet build` succeeds - [x] Kill a 0-karma creature: no karma message - [x] Kill a negative-karma creature: "gained karma" message is unchanged --- Projects/UOContent/Misc/Titles.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Projects/UOContent/Misc/Titles.cs b/Projects/UOContent/Misc/Titles.cs index c5f9f2a18..f047bf758 100644 --- a/Projects/UOContent/Misc/Titles.cs +++ b/Projects/UOContent/Misc/Titles.cs @@ -262,6 +262,11 @@ namespace Server.Misc private static void SendKarmaMessage(Mobile m, int offset) { + if (offset == 0) + { + return; + } + var message = offset switch { > 40 => 1019062, // You have gained a lot of karma.