Core/Loot: Implemented personal loot and tag sharing for non-boss loot
Port From (https://github.com/TrinityCore/TrinityCore/commit/133334a902b705dae6f7e92bb1009b84cf1c51d2)
This commit is contained in:
@@ -1100,12 +1100,6 @@ namespace Game.Loots
|
||||
if (!Convert.ToBoolean(item.lootmode & _lootMode))
|
||||
return true;
|
||||
|
||||
byte foundDuplicates = 0;
|
||||
foreach (var lootItem in _loot.items)
|
||||
if (lootItem.itemid == item.itemid)
|
||||
if (++foundDuplicates == _loot.maxDuplicates)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user