From 33f62b27bf3bd54f8bddfb1a3785bd78503a15e0 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 1 Jan 2022 15:38:18 -0500 Subject: [PATCH] Core/GameObject: do not allow players to interact with gameobjects that use the "Point" icon. Port From (https://github.com/TrinityCore/TrinityCore/commit/1f8a6bac87e726f580247a601391e6286017468c) --- Source/Game/Entities/Player/Player.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Game/Entities/Player/Player.cs b/Source/Game/Entities/Player/Player.cs index ed79a27f1..fb26ce875 100644 --- a/Source/Game/Entities/Player/Player.cs +++ b/Source/Game/Entities/Player/Player.cs @@ -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;