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:
parent
177fc23f08
commit
ceca5d06f8
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue