Core/Loot: implement Loot Item Storage

Port From (https://github.com/TrinityCore/TrinityCore/commit/090fd8304a7a6e2f7c233ac39c94ccc67cc816f8)
This commit is contained in:
hondacrx
2020-05-12 17:11:14 -04:00
parent 9f235e1659
commit 1315f2c7f5
11 changed files with 403 additions and 247 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ namespace Game
// Delete the money loot record from the DB
if (!loot.containerID.IsEmpty())
loot.DeleteLootMoneyFromContainerItemDB();
Global.LootItemStorage.RemoveStoredMoneyForContainer(loot.containerID.GetCounter());
// Delete container if empty
if (loot.IsLooted() && guid.IsItem())