Core/GameObject: do not allow players to interact with gameobjects that use the "Point" icon.

Port From (https://github.com/TrinityCore/TrinityCore/commit/1f8a6bac87e726f580247a601391e6286017468c)
This commit is contained in:
hondacrx
2022-01-01 15:38:18 -05:00
parent 60808a268d
commit 33f62b27bf
+4
View File
@@ -5413,6 +5413,10 @@ namespace Game.Entities
if (go == null)
return null;
// Players cannot interact with gameobjects that use the "Point" icon
if (go.GetGoInfo().IconName == "Point")
return null;
if (!go.IsWithinDistInMap(this))
return null;