mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-11-10 21:04:26 +08:00
Compare commits
5 Commits
e0d6d7d4f2
...
6a85d16fb6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6a85d16fb6 | ||
|
|
dab83dd19e | ||
|
|
af779202e6 | ||
|
|
1e92aa1756 | ||
|
|
dd951412f4 |
2481
data/sql/updates/db_world/2025_11_08_00.sql
Normal file
2481
data/sql/updates/db_world/2025_11_08_00.sql
Normal file
File diff suppressed because it is too large
Load Diff
14348
data/sql/updates/pending_db_world/rev_1762453665700675964.sql
Normal file
14348
data/sql/updates/pending_db_world/rev_1762453665700675964.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 (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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user