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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user