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:
Hondacrx
2025-12-08 16:17:17 -05:00
parent f01f61c464
commit ed33a88776
3 changed files with 70 additions and 34 deletions
+3 -1
View File
@@ -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);