Core/Players: Fix exploit with XP gain from kills done by vehicles

This commit is contained in:
tobmaps
2011-05-22 19:50:55 +07:00
parent 48838cca27
commit 0dd349f52a
+1 -1
View File
@@ -478,7 +478,7 @@ inline void KillRewarder::_InitXP(Player* player)
// * on battlegrounds;
// * otherwise, not in PvP;
// * not if killer is on vehicle.
if (_isBattleGround || !_isPvP || !_killer->GetVehicle())
if (_isBattleGround || (!_isPvP && !_killer->GetVehicle()))
_xp = Trinity::XP::Gain(player, _victim);
}