Core/GameObjects: Only start loot restock timer if loot contents were modified and ignore it for personal loot

Port From (https://github.com/TrinityCore/TrinityCore/commit/a3ef01f87bd56e553972277a38cf9a98a3397495)
This commit is contained in:
hondacrx
2023-07-18 07:43:30 -04:00
parent 7de6a839fa
commit a700760b88
3 changed files with 19 additions and 7 deletions
+1 -2
View File
@@ -22,7 +22,6 @@ namespace Game
Player player = GetPlayer();
AELootResult aeResult = player.GetAELootView().Count > 1 ? new AELootResult() : null;
// @todo Implement looting by LootObject guid
foreach (LootRequest req in packet.Loot)
{
Loot loot = player.GetAELootView().LookupByKey(req.Object);
@@ -143,7 +142,7 @@ namespace Game
SendPacket(packet);
}
loot.gold = 0;
loot.LootMoney();
// Delete the money loot record from the DB
if (loot.loot_type == LootType.Item)