diff options
author | Ovahlord <dreadkiller@gmx.de> | 2023-11-28 02:00:51 +0100 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2023-11-28 02:00:51 +0100 |
commit | 00c1f57c8bcd22bbf202f921d9670b1af9c3b3fd (patch) | |
tree | 05e305cea0fb7a8f0075056f69e32a4e542f4153 /src/server/game/Loot/Loot.cpp | |
parent | bbb320f39013bb540d69a36fe7be72c1ac6ba9d3 (diff) |
Core/Items: restore item random properties handling
Diffstat (limited to 'src/server/game/Loot/Loot.cpp')
-rw-r--r-- | src/server/game/Loot/Loot.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Loot/Loot.cpp b/src/server/game/Loot/Loot.cpp index 2cc6f2b9017..02e8024221b 100644 --- a/src/server/game/Loot/Loot.cpp +++ b/src/server/game/Loot/Loot.cpp @@ -51,6 +51,7 @@ LootItem::LootItem(LootStoreItem const& li) needs_quest = li.needs_quest; + randomProperties = sItemEnchantmentMgr->GenerateRandomProperties(itemid); context = ItemContext::NONE; count = 0; is_looted = false; @@ -885,7 +886,7 @@ bool Loot::AutoStore(Player* player, uint8 bag, uint8 slot, bool broadcast, bool --unlootedCount; - Item* pItem = player->StoreNewItem(dest, lootItem->itemid, true, GuidSet(), lootItem->context); + Item* pItem = player->StoreNewItem(dest, lootItem->itemid, true, lootItem->randomProperties, GuidSet(), lootItem->context); player->SendNewItem(pItem, lootItem->count, false, createdByPlayer, broadcast); player->ApplyItemLootedSpell(pItem, true); } |