mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7759] Fixed [7758] commit.
This commit is contained in:
parent
b1bfdddeb2
commit
c81c5ab961
2 changed files with 3 additions and 6 deletions
|
|
@ -18700,10 +18700,7 @@ void Player::RewardPlayerAndGroupAtEvent(uint32 creature_id, WorldObject* pRewar
|
|||
|
||||
bool Player::IsAtGroupRewardDistance(WorldObject const* pRewardSource) const
|
||||
{
|
||||
if (GetInstanceId() != pRewardSource->GetInstanceId())
|
||||
return false;
|
||||
|
||||
if (pRewardSource->GetDistance(this) <= sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE))
|
||||
if (pRewardSource->IsWithinDistInMap(this,sWorld.getConfig(CONFIG_GR OUP_XP_DISTANCE)))
|
||||
return true;
|
||||
|
||||
if (isAlive())
|
||||
|
|
@ -18713,7 +18710,7 @@ bool Player::IsAtGroupRewardDistance(WorldObject const* pRewardSource) const
|
|||
if (!corpse)
|
||||
return false;
|
||||
|
||||
return pRewardSource->GetDistance(corpse) <= sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE);
|
||||
return pRewardSource->IsWithinDistInMap(corpse,sWorld.getConfig(CONFIG_GR OUP_XP_DISTANCE));
|
||||
}
|
||||
|
||||
uint32 Player::GetBaseWeaponSkillValue (WeaponAttackType attType) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue