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:
hondacrx
2022-10-18 16:07:00 -04:00
parent e78c71784c
commit 9b62b83984
23 changed files with 298 additions and 340 deletions
-6
View File
@@ -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;
}