From 59f71f915a03143a3896bcf55649bea44969800c Mon Sep 17 00:00:00 2001 From: ariel- Date: Tue, 19 Jul 2016 02:09:41 -0300 Subject: 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(+) (limited to 'src') diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp index 9c468e9f9f1..260e7ff464f 100644 --- a/src/server/game/Loot/LootMgr.cpp +++ b/src/server/game/Loot/LootMgr.cpp @@ -789,6 +789,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; -- cgit v1.2.3