From 8407227e63b774cf3e7613b9f2341d8dfce9c362 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 25 Aug 2022 13:34:52 -0400 Subject: [PATCH] Core/Loot: Removed old auto looting code for currency token items Port From (https://github.com/TrinityCore/TrinityCore/commit/605b75f6c06647345b44e9ef1975d01122ef129f) --- Source/Game/Loot/Loot.cs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/Source/Game/Loot/Loot.cs b/Source/Game/Loot/Loot.cs index e05392b85..36593a948 100644 --- a/Source/Game/Loot/Loot.cs +++ b/Source/Game/Loot/Loot.cs @@ -309,30 +309,6 @@ namespace Game.Loots questItemList = PlayerNonQuestNonFFAConditionalItems.LookupByKey(plguid); if (questItemList.Empty()) FillNonQuestNonFFAConditionalLoot(player, presentAtLooting); - - // if not auto-processed player will have to come and pick it up manually - if (!presentAtLooting) - return; - - // Process currency items - uint max_slot = GetMaxSlotInLootFor(player); - LootItem item; - int itemsSize = items.Count; - for (byte i = 0; i < max_slot; ++i) - { - if (i < items.Count) - item = items[i]; - else - item = quest_items[i - itemsSize]; - - if (!item.is_looted && item.freeforall && item.AllowedForPlayer(player)) - { - ItemTemplate proto = Global.ObjectMgr.GetItemTemplate(item.itemid); - if (proto != null) - if (proto.IsCurrencyToken()) - player.StoreLootItem(i, this); - } - } } List FillFFALoot(Player player)