fix(Core/GameObjects): Do not allow players to interact with gobs that use "Point" icon (#9800)

- cherry-pick commit (c52c0f0b7d)

- This was confirmed in sniffs, see TrinityCore/TrinityCore@c52c0f0#commitcomment-34342342

Co-Authored-By: Wyrserth <43747507+Wyrserth@users.noreply.github.com>
This commit is contained in:
Kitzunu
2022-02-10 14:50:33 +01:00
committed by GitHub
parent 00dc5c2db7
commit 210029095a

View File

@@ -2110,6 +2110,12 @@ GameObject* Player::GetGameObjectIfCanInteractWith(ObjectGuid guid, GameobjectTy
{
if (go->GetGoType() == type)
{
// Players cannot interact with gameobjects that use the "Point" icon
if (go->GetGOInfo()->IconName == "Point")
{
return nullptr;
}
if (go->IsWithinDistInMap(this))
{
return go;