Merge branch 'master' into Playerbot

This commit is contained in:
Yunfan Li
2023-08-01 23:21:36 +08:00
10 changed files with 556 additions and 54 deletions

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;