Core/Players: Reward XP to dead players inside battlegrounds

(29/05/2010)
This commit is contained in:
kaelima
2012-04-07 21:42:49 +01:00
committed by Nay
parent 5fb2ffa625
commit cadf311ac6
+1 -1
View File
@@ -2936,7 +2936,7 @@ void Player::GiveXP(uint32 xp, Unit* victim, float group_rate)
if (xp < 1)
return;
if (!isAlive())
if (!isAlive() && !GetBattleGroundId())
return;
if (HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_NO_XP_GAIN))