Core/Players: Fix exploit with XP gain from kills done by vehicles
This commit is contained in:
@@ -478,7 +478,7 @@ inline void KillRewarder::_InitXP(Player* player)
|
|||||||
// * on battlegrounds;
|
// * on battlegrounds;
|
||||||
// * otherwise, not in PvP;
|
// * otherwise, not in PvP;
|
||||||
// * not if killer is on vehicle.
|
// * not if killer is on vehicle.
|
||||||
if (_isBattleGround || !_isPvP || !_killer->GetVehicle())
|
if (_isBattleGround || (!_isPvP && !_killer->GetVehicle()))
|
||||||
_xp = Trinity::XP::Gain(player, _victim);
|
_xp = Trinity::XP::Gain(player, _victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user