mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Core/ItemHandling: Allow wrapped items to be opened when they contain another container inside it (patch by leak)
--HG-- branch : trunk
This commit is contained in:
@@ -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!",
|
||||
|
||||
Reference in New Issue
Block a user