feat(Core/Config): Add configurable XP rate for battleground objectives (#24672)

This commit is contained in:
sogladev
2026-02-14 08:31:58 +01:00
committed by GitHub
parent 9e8a25c5d4
commit bdb0cfac6f
4 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -6217,7 +6217,7 @@ bool Player::RewardHonor(Unit* uVictim, uint32 groupsize, int32 honor, bool awar
// Xinef: Only for BG activities
if (!uVictim)
{
uint32 xp = uint32(honor * (3 + GetLevel() * 0.30f));
uint32 xp = static_cast<uint32>(honor * (3 + GetLevel() * 0.30f) * sWorld->getRate(RATE_XP_BATTLEGROUND_BONUS));
sScriptMgr->OnPlayerGiveXP(this, xp, nullptr, PlayerXPSource::XPSOURCE_BATTLEGROUND);
GiveXP(xp, nullptr);
}