Core/Loot: Fixed items some not being lootable on second opening of a lootable item

Port From (https://github.com/TrinityCore/TrinityCore/commit/00cb775558d19209630850bb148748ed4c3836c7)
This commit is contained in:
hondacrx
2024-02-06 16:11:02 -05:00
parent 1fc1153f67
commit f3993521bc
2 changed files with 22 additions and 1 deletions
+1
View File
@@ -115,6 +115,7 @@ namespace Game
{
Loot loot = new(player.GetMap(), item.GetGUID(), LootType.Item, null);
item.loot = loot;
item.m_lootGenerated = true;
loot.GenerateMoneyLoot(item.GetTemplate().MinMoneyLoot, item.GetTemplate().MaxMoneyLoot);
loot.FillLoot(item.GetEntry(), LootStorage.Items, player, true, loot.gold != 0);