Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Core/Handler: Fixing problem of hacking gameobjects that are not sele…
Browse files Browse the repository at this point in the history
…ctable.
  • Loading branch information
Nightprince authored Dec 28, 2023
1 parent 35c073e commit 3f6a712
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/game/Handlers/SpellHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,10 @@ void WorldSession::HandleGameobjectReportUse(WorldPacket& recvPacket)
if (!go)
return;

// we cannot use go with not selectable flags
if (go->HasFlag(GAMEOBJECT_FIELD_FLAGS, GO_FLAG_NOT_SELECTABLE))
return;

if (!go->IsWithinDistInMap(_player, INTERACTION_DISTANCE))
return;

Expand Down

0 comments on commit 3f6a712

Please sign in to comment.