aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorclick <none@none>2010-11-14 16:26:09 +0100
committerclick <none@none>2010-11-14 16:26:09 +0100
commit3d33cc4f128360cd5965e625bc5aa923735038ab (patch)
treedba43f52e211fd7559220ef82bf1dadc5050e030 /src
parent343478b0e647c680da09bf2983004c5c059df2a7 (diff)
Core/ItemHandling: Allow wrapped items to be opened when they contain another container inside it (patch by leak)
--HG-- branch : trunk
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Server/Protocol/Handlers/SpellHandler.cpp4
1 files changed, 2 insertions, 2 deletions
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!",