Core/Object: Range check vol. 2

Port From (https://github.com/TrinityCore/TrinityCore/commit/a13a765610d964a3aa1bab1b41331c05e24a1f78)
This commit is contained in:
hondacrx
2021-12-07 13:53:35 -05:00
parent eb8535b7b2
commit 2ded315eaa
7 changed files with 78 additions and 65 deletions
+1 -1
View File
@@ -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;