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:
parent
00dc5c2db7
commit
210029095a
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue