Core/Loot: implement automatic pass in group loot for items that cannot be looted.
Port From (https://github.com/TrinityCore/TrinityCore/commit/1c8f94a14f51e5ddfd0eb277e2b709da274e654d)
This commit is contained in:
@@ -4996,7 +4996,7 @@ namespace Game.Entities
|
||||
|
||||
return msg;
|
||||
}
|
||||
public InventoryResult CanEquipUniqueItem(Item pItem, byte eslot, uint limit_count = 1)
|
||||
public InventoryResult CanEquipUniqueItem(Item pItem, byte eslot = ItemConst.NullSlot, uint limit_count = 1)
|
||||
{
|
||||
ItemTemplate pProto = pItem.GetTemplate();
|
||||
|
||||
@@ -5022,7 +5022,7 @@ namespace Game.Entities
|
||||
|
||||
return InventoryResult.Ok;
|
||||
}
|
||||
public InventoryResult CanEquipUniqueItem(ItemTemplate itemProto, byte except_slot, uint limit_count = 1)
|
||||
public InventoryResult CanEquipUniqueItem(ItemTemplate itemProto, byte except_slot = ItemConst.NullSlot, uint limit_count = 1)
|
||||
{
|
||||
// check unique-equipped on item
|
||||
if (Convert.ToBoolean(itemProto.GetFlags() & ItemFlags.UniqueEquippable))
|
||||
|
||||
Reference in New Issue
Block a user