aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorD_Skywalk <none@none>2009-06-19 12:53:09 +0200
committerD_Skywalk <none@none>2009-06-19 12:53:09 +0200
commitabe4388eeb92a76597f4bb49f267f370f4a0454c (patch)
treee5bf5286a59c32605b7f0580ea2e028152c5be36 /src
parentb28a7eb406ee7ce6efd5d86ae971ce07e0fff42e (diff)
*Fixed gain reputation and xp reward between group mates in
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 23b5434e1b0..716997df045 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -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;