diff options
author | D_Skywalk <none@none> | 2009-06-19 12:53:09 +0200 |
---|---|---|
committer | D_Skywalk <none@none> | 2009-06-19 12:53:09 +0200 |
commit | abe4388eeb92a76597f4bb49f267f370f4a0454c (patch) | |
tree | e5bf5286a59c32605b7f0580ea2e028152c5be36 /src | |
parent | b28a7eb406ee7ce6efd5d86ae971ce07e0fff42e (diff) |
*Fixed gain reputation and xp reward between group mates in
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Player.cpp | 3 |
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; |