aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWyrserth <wyrserth@protonmail.com>2019-07-17 19:27:09 +0200
committerWyrserth <wyrserth@protonmail.com>2019-07-17 19:56:02 +0200
commitc52c0f0b7dbab9ff5f97426f1f742cb7cbe0732b (patch)
tree0776456c29453debbd9b45c36be16d201b6af778 /src
parentbc3860be79c0d6af77cba2ce82b7d4e2596c6dae (diff)
Core/GameObject: do not allow players to interact with gameobjects that use the "Point" icon.
Updates #21890.
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Player/Player.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 57cb246a17b..275f47d4be1 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -2307,6 +2307,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;