mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user