mirror of
https://github.com/mangosfour/server.git
synced 2025-12-23 16:37:03 +00:00
[c12582] Add support for XP-Gain disabling
This commit is contained in:
parent
132e6245a7
commit
e0192deaf6
7 changed files with 122 additions and 51 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue