fix(Core): Move and adjust experience modifiers for instanced elite creatures. (#23563)

This commit is contained in:
Benjamin Jackson
2025-11-08 02:03:43 -05:00
committed by GitHub
parent 09e0343491
commit af779202e6
2 changed files with 2482 additions and 7 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -84,14 +84,9 @@ uint32 Acore::XP::Gain(Player* player, Unit* unit, bool isBattleGround /*= false
if (gain && creature)
{
if (creature->isElite())
{
// Elites in instances have a 2.75x XP bonus instead of the regular 2x world bonus.
if (unit->GetMap() && unit->GetMap()->IsDungeon())
xpMod *= 2.75f;
else
xpMod *= 2.0f;
}
xpMod *= 2.0f;
// Instanced mobs (particularly bosses) oftentimes have higher bonuses, especially in later content levels
xpMod *= creature->GetCreatureTemplate()->ModExperience;
}