fix(Core/GameObjects): Do not allow players to interact with gobs that use "Point" icon (#9800)
- cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/c52c0f0b7dbab9ff5f97426f1f742cb7cbe0732b) - 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)
|
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))
|
if (go->IsWithinDistInMap(this))
|
||||||
{
|
{
|
||||||
return go;
|
return go;
|
||||||
|
|||||||
Reference in New Issue
Block a user