[Exploit/Dupe] Container item

Port From (https://github.com/TrinityCore/TrinityCore/commit/0910bca34cd36ae17652daef9621c318772270d1)
This commit is contained in:
hondacrx
2022-05-29 16:00:04 -04:00
parent 5d30388365
commit 5e6dfb61ac
4 changed files with 30 additions and 25 deletions
+2
View File
@@ -109,6 +109,7 @@ namespace Game.Loots
public List<ObjectGuid> GetAllowedLooters() { return allowedGUIDs; }
public uint itemid;
public uint itemIndex;
public uint randomBonusListId;
public List<uint> BonusListIDs = new();
public ItemContext context;
@@ -191,6 +192,7 @@ namespace Game.Loots
LootItem generatedLoot = new(item);
generatedLoot.context = _itemContext;
generatedLoot.count = (byte)Math.Min(count, proto.GetMaxStackSize());
generatedLoot.itemIndex = lootItems.Count;
if (_itemContext != 0)
{
List<uint> bonusListIDs = Global.DB2Mgr.GetDefaultItemBonusTree(generatedLoot.itemid, _itemContext);