From 04958a1d49158c2e85b2d84bb032ae5375e55a67 Mon Sep 17 00:00:00 2001 From: Ethan Moffat Date: Tue, 29 Oct 2024 21:55:18 -0700 Subject: [PATCH] BU Support: handle rebirth Make sure character's experience is updated even when the expDifference is <= 0 --- EOLib/PacketHandlers/NPC/NPCDeathHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EOLib/PacketHandlers/NPC/NPCDeathHandler.cs b/EOLib/PacketHandlers/NPC/NPCDeathHandler.cs index 4dc648b9c..3b1a6f01a 100644 --- a/EOLib/PacketHandlers/NPC/NPCDeathHandler.cs +++ b/EOLib/PacketHandlers/NPC/NPCDeathHandler.cs @@ -121,13 +121,13 @@ protected void UpdatePlayerExperience(int experienceValue) foreach (var notifier in _mainCharacterEventNotifiers) notifier.NotifyGainedExp(expDifference); - UpdateCharacterStat(CharacterStat.Experience, experienceValue); - _characterSessionRepository.LastKillExp = expDifference; if (expDifference > _characterSessionRepository.BestKillExp) _characterSessionRepository.BestKillExp = expDifference; _characterSessionRepository.TodayTotalExp += Convert.ToUInt64(Math.Max(expDifference, 0)); } + + UpdateCharacterStat(CharacterStat.Experience, experienceValue); } protected void ApplyStats(LevelUpStats levelUpStats)