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:
Kitzunu
2023-07-30 13:04:46 +02:00
committed by GitHub
parent 177fc23f08
commit ceca5d06f8

View File

@@ -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;