mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-05 03:53:48 +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)
|
if (!go)
|
||||||
return;
|
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))
|
if (!go->IsWithinDistInMap(_player, INTERACTION_DISTANCE))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user