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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user