From 3d33cc4f128360cd5965e625bc5aa923735038ab Mon Sep 17 00:00:00 2001 From: click Date: Sun, 14 Nov 2010 16:26:09 +0100 Subject: Core/ItemHandling: Allow wrapped items to be opened when they contain another container inside it (patch by leak) --HG-- branch : trunk --- src/server/game/Server/Protocol/Handlers/SpellHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp b/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp index 43c3415d45f..d2ecf924622 100755 --- a/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp +++ b/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp @@ -221,8 +221,8 @@ void WorldSession::HandleOpenItemOpcode(WorldPacket& recvPacket) return; } - // Verify that the bag is an actual bag that can be used "normally" - if(!(proto->Flags & ITEM_PROTO_FLAG_OPENABLE)) + // Verify that the bag is an actual bag or wrapped item that can be used "normally" + if(!(proto->Flags & ITEM_PROTO_FLAG_OPENABLE) && !pItem->HasFlag(ITEM_FIELD_FLAGS, ITEM_FLAG_WRAPPED)) { pUser->SendEquipError(EQUIP_ERR_CANT_DO_RIGHT_NOW, pItem, NULL); sLog.outError("Possible hacking attempt: Player %s [guid: %u] tried to open item [guid: %u, entry: %u] which is not openable!", -- cgit v1.2.3