Core/Object: Range check vol. 2
Port From (https://github.com/TrinityCore/TrinityCore/commit/a13a765610d964a3aa1bab1b41331c05e24a1f78)
This commit is contained in:
@@ -6029,7 +6029,7 @@ namespace Game.Entities
|
||||
}
|
||||
else
|
||||
{
|
||||
if (lootType != LootType.Fishinghole && ((lootType != LootType.Fishing && lootType != LootType.FishingJunk) || go.GetOwnerGUID() != GetGUID()) && !go.IsWithinDistInMap(this, SharedConst.InteractionDistance))
|
||||
if (lootType != LootType.Fishinghole && ((lootType != LootType.Fishing && lootType != LootType.FishingJunk) || go.GetOwnerGUID() != GetGUID()) && !go.IsWithinDistInMap(this))
|
||||
return true;
|
||||
|
||||
if (lootType == LootType.Corpse && go.GetRespawnTime() != 0 && go.IsSpawnedByDefault())
|
||||
|
||||
@@ -5405,7 +5405,7 @@ namespace Game.Entities
|
||||
if (go == null)
|
||||
return null;
|
||||
|
||||
if (!go.IsWithinDistInMap(this, go.GetInteractionDistance()))
|
||||
if (!go.IsWithinDistInMap(this))
|
||||
return null;
|
||||
|
||||
return go;
|
||||
|
||||
Reference in New Issue
Block a user