[c12582] Add support for XP-Gain disabling

This commit is contained in:
NeatElves 2013-05-31 10:25:13 +01:00 committed by Antz
parent 132e6245a7
commit e0192deaf6
7 changed files with 122 additions and 51 deletions

View file

@ -2544,6 +2544,9 @@ void Player::GiveXP(uint32 xp, Unit* victim)
if (!isAlive())
return;
if (HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_XP_USER_DISABLED))
return;
uint32 level = getLevel();
// XP to money conversion processed in Player::RewardQuest