aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Miscellaneous
diff options
context:
space:
mode:
authorShinDarth <borzifrancesco@gmail.com>2015-10-15 23:08:00 +0200
committerMitchesD <majklprofik@seznam.cz>2015-10-16 11:32:06 +0200
commite9a4e4cfa45d24a6395e663dc069b51a88338206 (patch)
treedb233e4c3d998c4668c2851611592e2b41a709cf /src/server/game/Miscellaneous
parentfce4fb304c694a564aa1a3d317df6a1c637dadee (diff)
Core/Misc split Rate.XP.Kill and Rate.XP.BattlegroundKill settings
(cherry picked from commit 2185165e8481ebcfd28895e5066991c89baaec14)
Diffstat (limited to 'src/server/game/Miscellaneous')
-rw-r--r--src/server/game/Miscellaneous/Formulas.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Miscellaneous/Formulas.h b/src/server/game/Miscellaneous/Formulas.h
index 8877cb4dcc4..46a318e18d7 100644
--- a/src/server/game/Miscellaneous/Formulas.h
+++ b/src/server/game/Miscellaneous/Formulas.h
@@ -150,7 +150,7 @@ namespace Trinity
return baseGain;
}
- inline uint32 Gain(Player* player, Unit* u)
+ inline uint32 Gain(Player* player, Unit* u, bool isBattleGround = false)
{
Creature* creature = u->ToCreature();
uint32 gain = 0;
@@ -180,7 +180,7 @@ namespace Trinity
xpMod *= creature->GetCreatureTemplate()->ModExperience;
}
- xpMod *= sWorld->getRate(RATE_XP_KILL);
+ xpMod *= isBattleGround ? sWorld->getRate(RATE_XP_BG_KILL) : sWorld->getRate(RATE_XP_KILL);
gain = uint32(gain * xpMod);
}