diff --git a/src/game/Spells/SpellHandler.cpp b/src/game/Spells/SpellHandler.cpp index c81dcbe265..95f72c467d 100644 --- a/src/game/Spells/SpellHandler.cpp +++ b/src/game/Spells/SpellHandler.cpp @@ -287,6 +287,12 @@ void WorldSession::HandleGameObjectUseOpcode(WorldPacket& recv_data) if (!obj->IsAtInteractDistance(_player)) return; + if (obj->GetSpellForLock(_player)) + { + sLog.outError("HandleGameObjectUseOpcode: CMSG_GAMEOBJ_USE for spell locked object (Entry %u), didn't expect this to happen.", obj->GetEntry()); + return; + } + // Additional check preventing exploits (ie loot despawned chests) if (!obj->IsSpawned()) {