aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-08-25 14:45:44 +0200
committerShauren <shauren.trinity@gmail.com>2022-08-25 14:45:44 +0200
commit605b75f6c06647345b44e9ef1975d01122ef129f (patch)
tree8aa0d5eb33a6f5f0598bca675c622cea2e47596b
parenta2749366e4a5d3c7722a342500b37de3321b21d2 (diff)
Core/Loot: Removed old auto looting code for currency token items
-rw-r--r--src/server/game/Loot/Loot.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/server/game/Loot/Loot.cpp b/src/server/game/Loot/Loot.cpp
index 71704029fb6..b05156c1ba9 100644
--- a/src/server/game/Loot/Loot.cpp
+++ b/src/server/game/Loot/Loot.cpp
@@ -705,27 +705,6 @@ void Loot::FillNotNormalLootFor(Player* player, bool presentAtLooting)
qmapitr = PlayerNonQuestNonFFAConditionalItems.find(plguid);
if (qmapitr == PlayerNonQuestNonFFAConditionalItems.end())
FillNonQuestNonFFAConditionalLoot(player, presentAtLooting);
-
- // if not auto-processed player will have to come and pick it up manually
- if (!presentAtLooting)
- return;
-
- // Process currency items
- uint32 max_slot = GetMaxSlotInLootFor(player);
- LootItem const* item = nullptr;
- uint32 itemsSize = uint32(items.size());
- for (uint32 i = 0; i < max_slot; ++i)
- {
- if (i < items.size())
- item = &items[i];
- else
- item = &quest_items[i - itemsSize];
-
- if (!item->is_looted && item->freeforall && item->AllowedForPlayer(player))
- if (ItemTemplate const* proto = sObjectMgr->GetItemTemplate(item->itemid))
- if (proto->IsCurrencyToken())
- player->StoreLootItem(i, this);
- }
}
NotNormalLootItemList* Loot::FillFFALoot(Player* player)