fix(Core/Item): Dropped loot containers acting soul bound after looking inside them. (#7826)
Fixes #6164
This commit is contained in:
@@ -756,10 +756,6 @@ bool Item::IsEquipped() const
|
|||||||
|
|
||||||
bool Item::CanBeTraded(bool mail, bool trade) 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)))
|
if ((!mail || !IsBoundAccountWide()) && (IsSoulBound() && (!HasFlag(ITEM_FIELD_FLAGS, ITEM_FIELD_FLAG_BOP_TRADEABLE) || !trade)))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
@@ -835,9 +835,6 @@ InventoryResult Player::CanTakeMoreSimilarItems(uint32 entry, uint32 count, Item
|
|||||||
return EQUIP_ERR_CANT_CARRY_MORE_OF_THIS;
|
return EQUIP_ERR_CANT_CARRY_MORE_OF_THIS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pItem && pItem->m_lootGenerated)
|
|
||||||
return EQUIP_ERR_ALREADY_LOOTED;
|
|
||||||
|
|
||||||
// no maximum
|
// no maximum
|
||||||
if ((pProto->MaxCount <= 0 && pProto->ItemLimitCategory == 0) || pProto->MaxCount == 2147483647)
|
if ((pProto->MaxCount <= 0 && pProto->ItemLimitCategory == 0) || pProto->MaxCount == 2147483647)
|
||||||
return EQUIP_ERR_OK;
|
return EQUIP_ERR_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user