mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Core/PacketIO): Prevent HandleGameobjectReportUse when Gob is not… (#16707)
fix(Core/PacketIO): Prevent HandleGameobjectReportUse when Gob is not selectable
This commit is contained in:
@@ -325,6 +325,10 @@ void WorldSession::HandleGameobjectReportUse(WorldPacket& recvPacket)
|
||||
if (!go)
|
||||
return;
|
||||
|
||||
// Prevent use of GameObject if it is not selectable. Fixes hack.
|
||||
if (go->HasGameObjectFlag(GO_FLAG_NOT_SELECTABLE))
|
||||
return;
|
||||
|
||||
if (!go->IsWithinDistInMap(_player, INTERACTION_DISTANCE))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user