*Fixed gain reputation and xp reward between group mates in

--HG--
branch : trunk
This commit is contained in:
D_Skywalk
2009-06-19 12:53:09 +02:00
parent b28a7eb406
commit abe4388eeb

View File

@@ -18834,6 +18834,9 @@ bool Player::RewardPlayerAndGroupAtKill(Unit* pVictim)
bool Player::IsAtGroupRewardDistance(WorldObject const* pRewardSource) const
{
if(GetInstanceId() != pRewardSource->GetInstanceId())
return false;
if(pRewardSource->GetDistance(this) <= sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE))
return true;