Core/Items: Implemented new item bonus types: ITEM_BONUS_OVERRIDE_CAN_SALVAGE, ITEM_BONUS_OVERRIDE_CAN_RECRAFT, ITEM_BONUS_OVERRIDE_CANNOT_TRADE_BOP and ITEM_BONUS_ITEM_LEVEL_BASE
Port From (https://github.com/TrinityCore/TrinityCore/commit/d82b3641db0c8243330ac33bfa15bdf337e0e8ec)
This commit is contained in:
@@ -1197,7 +1197,9 @@ namespace Game.Entities
|
||||
UpdateCriteria(CriteriaType.ObtainAnyItem, itemId, count);
|
||||
UpdateCriteria(CriteriaType.AcquireItem, itemId, count);
|
||||
|
||||
if (allowedLooters != null && allowedLooters.Count > 1 && item.GetTemplate().GetMaxStackSize() == 1 && item.IsSoulBound())
|
||||
if (allowedLooters.Count > 1 && item.IsSoulBound()
|
||||
&& (item.GetTemplate().GetMaxStackSize() == 1 || item.GetTemplate().HasFlag(ItemFlags2.CanTradeBindOnAcquire))
|
||||
&& !item.GetBonus().CannotTradeBindOnPickup)
|
||||
{
|
||||
item.SetSoulboundTradeable(allowedLooters);
|
||||
AddTradeableItem(item);
|
||||
|
||||
Reference in New Issue
Block a user