fix(Core/Loot): Fixed processing duplicated loot item within different groups. (#13038)

Fixes #13038
This commit is contained in:
UltraNix
2022-11-12 13:31:29 +01:00
committed by GitHub
parent c1c9dc6105
commit 6278072b16
3 changed files with 4 additions and 1 deletions

View File

@@ -197,6 +197,7 @@ bool LootItemStorage::LoadStoredLoot(Item* item, Player* player)
li.randomPropertyId = it2->randomPropertyId;
li.randomSuffix = it2->randomSuffix;
li.rollWinnerGUID = ObjectGuid::Empty;
li.groupid = 0;
// Copy the extra loot conditions from the item in the loot template
lt->CopyConditions(&li, it2->conditionLootId);