mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Core): Move and adjust experience modifiers for instanced elite creatures. (#23563)
This commit is contained in:
2480
data/sql/updates/pending_db_world/instance-xp-modifiers.sql
Normal file
2480
data/sql/updates/pending_db_world/instance-xp-modifiers.sql
Normal file
File diff suppressed because it is too large
Load Diff
@@ -84,14 +84,9 @@ uint32 Acore::XP::Gain(Player* player, Unit* unit, bool isBattleGround /*= false
|
|||||||
if (gain && creature)
|
if (gain && creature)
|
||||||
{
|
{
|
||||||
if (creature->isElite())
|
if (creature->isElite())
|
||||||
{
|
xpMod *= 2.0f;
|
||||||
// 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// Instanced mobs (particularly bosses) oftentimes have higher bonuses, especially in later content levels
|
||||||
xpMod *= creature->GetCreatureTemplate()->ModExperience;
|
xpMod *= creature->GetCreatureTemplate()->ModExperience;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user