Core/Loot: Initial support for personal loot in gameobjects (non-instanced content)

Port From (https://github.com/TrinityCore/TrinityCore/commit/641390dca2329041a6ef513c2c9f7b28d42d2762)
This commit is contained in:
hondacrx
2022-10-18 14:22:16 -04:00
parent 80009bfa8d
commit e78c71784c
6 changed files with 103 additions and 32 deletions
@@ -151,6 +151,8 @@ namespace Game.Chat
uint displayId = gameObjectInfo.displayId;
string name = gameObjectInfo.name;
uint lootId = gameObjectInfo.GetLootId();
if (type == GameObjectTypes.Chest && lootId == 0)
lootId = gameObjectInfo.Chest.chestPersonalLoot;
// If we have a real object, send some info about it
if (thisGO != null)