mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7758] Fixed gain reputation and xp reward between group mates in differents instances
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
This commit is contained in:
parent
15d449c161
commit
b1bfdddeb2
2 changed files with 7 additions and 4 deletions
|
|
@ -18700,14 +18700,17 @@ void Player::RewardPlayerAndGroupAtEvent(uint32 creature_id, WorldObject* pRewar
|
|||
|
||||
bool Player::IsAtGroupRewardDistance(WorldObject const* pRewardSource) const
|
||||
{
|
||||
if(pRewardSource->GetDistance(this) <= sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE))
|
||||
if (GetInstanceId() != pRewardSource->GetInstanceId())
|
||||
return false;
|
||||
|
||||
if (pRewardSource->GetDistance(this) <= sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE))
|
||||
return true;
|
||||
|
||||
if(isAlive())
|
||||
if (isAlive())
|
||||
return false;
|
||||
|
||||
Corpse* corpse = GetCorpse();
|
||||
if(!corpse)
|
||||
if (!corpse)
|
||||
return false;
|
||||
|
||||
return pRewardSource->GetDistance(corpse) <= sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7757"
|
||||
#define REVISION_NR "7758"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue