From 08ce85d0fb0204f3d8b58595028bdabe957e7cdf Mon Sep 17 00:00:00 2001 From: ariel- Date: Tue, 19 Jul 2016 02:09:41 -0300 Subject: [PATCH] Core/Loot: fix bug introduced in a49544cc187d3a156b4615907d6b82057364fcc4 in which creatures only having gold wouldn't show lootable sparks, and thus couldn't be looted --- src/server/game/Loot/LootMgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp index 506f785a88d..87d992db736 100644 --- a/src/server/game/Loot/LootMgr.cpp +++ b/src/server/game/Loot/LootMgr.cpp @@ -794,6 +794,10 @@ uint32 Loot::GetMaxSlotInLootFor(Player* player) const // return true if there is any item that is lootable for any player (not quest item, FFA or conditional) bool Loot::hasItemForAll() const { + // Gold is always lootable + if (gold) + return true; + for (LootItem const& item : items) if (!item.is_looted && !item.freeforall && item.conditions.empty()) return true;