From c5fa7e28c818d67dbea57374be3a50d672907b16 Mon Sep 17 00:00:00 2001 From: Vayle <76063792+Valorith@users.noreply.github.com> Date: Sun, 20 Aug 2023 23:18:08 -0400 Subject: [PATCH] [Bug Fix] Minor adjustment to formula calc position to fix modifier bug. (#3565) * Fix logic error in recent PR * Adjust formula position --- zone/exp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/exp.cpp b/zone/exp.cpp index 2cea69638..76a7e0c7d 100644 --- a/zone/exp.cpp +++ b/zone/exp.cpp @@ -1184,6 +1184,8 @@ void Raid::SplitExp(const uint64 exp, Mob* other) { raid_experience = static_cast(static_cast(raid_experience) * (1.0f - RuleR(Character, RaidExpMultiplier))); } + raid_experience = static_cast(static_cast(raid_experience) * RuleR(Character, FinalRaidExpMultiplier)); + const auto consider_level = Mob::GetLevelCon(highest_level, other->GetLevel()); if (consider_level == CON_GRAY) { return; @@ -1210,8 +1212,6 @@ void Raid::SplitExp(const uint64 exp, Mob* other) { } } } - - raid_experience = static_cast(static_cast(raid_experience) * RuleR(Character, FinalRaidExpMultiplier)); } void Client::SetLeadershipEXP(uint64 group_exp, uint64 raid_exp) {