fix(Core/Item): Dropped loot containers acting soul bound after looking inside them. (#7826)

Fixes #6164
This commit is contained in:
UltraNix
2021-10-09 08:28:29 +02:00
committed by GitHub
parent fe02abd63f
commit 8ef6355aad
2 changed files with 0 additions and 7 deletions

View File

@@ -756,10 +756,6 @@ bool Item::IsEquipped() const
bool Item::CanBeTraded(bool mail, bool trade) const
{
// Xinef: little protection
if (m_lootGenerated)
return false;
if ((!mail || !IsBoundAccountWide()) && (IsSoulBound() && (!HasFlag(ITEM_FIELD_FLAGS, ITEM_FIELD_FLAG_BOP_TRADEABLE) || !trade)))
return false;

View File

@@ -835,9 +835,6 @@ InventoryResult Player::CanTakeMoreSimilarItems(uint32 entry, uint32 count, Item
return EQUIP_ERR_CANT_CARRY_MORE_OF_THIS;
}
if (pItem && pItem->m_lootGenerated)
return EQUIP_ERR_ALREADY_LOOTED;
// no maximum
if ((pProto->MaxCount <= 0 && pProto->ItemLimitCategory == 0) || pProto->MaxCount == 2147483647)
return EQUIP_ERR_OK;