From 1f8a6bac87e726f580247a601391e6286017468c Mon Sep 17 00:00:00 2001 From: Wyrserth Date: Wed, 17 Jul 2019 19:27:09 +0200 Subject: Core/GameObject: do not allow players to interact with gameobjects that use the "Point" icon. Updates #21890. (cherry picked from commit c52c0f0b7dbab9ff5f97426f1f742cb7cbe0732b) --- src/server/game/Entities/Player/Player.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index e9ccab6cba9..7e8115b5b69 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -2063,6 +2063,10 @@ GameObject* Player::GetGameObjectIfCanInteractWith(ObjectGuid const& guid) const if (!go) return nullptr; + // Players cannot interact with gameobjects that use the "Point" icon + if (go->GetGOInfo()->IconName == "Point") + return nullptr; + if (!go->IsWithinDistInMap(this)) return nullptr; -- cgit v1.2.3