[Bug Fix] Minor adjustment to formula calc position to fix modifier bug. (#3565)

* Fix logic error in recent PR

* Adjust formula position
This commit is contained in:
Vayle 2023-08-20 23:18:08 -04:00 committed by GitHub
parent 5d133a2b47
commit c5fa7e28c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1184,6 +1184,8 @@ void Raid::SplitExp(const uint64 exp, Mob* other) {
raid_experience = static_cast<uint64>(static_cast<float>(raid_experience) * (1.0f - RuleR(Character, RaidExpMultiplier)));
}
raid_experience = static_cast<uint64>(static_cast<float>(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<uint64>(static_cast<float>(raid_experience) * RuleR(Character, FinalRaidExpMultiplier));
}
void Client::SetLeadershipEXP(uint64 group_exp, uint64 raid_exp) {