Core/Loot: fix bug introduced in a49544cc18 in which creatures only having gold wouldn't show lootable sparks, and thus couldn't be looted

This commit is contained in:
ariel-
2016-07-19 02:09:41 -03:00
committed by Aokromes
parent 2b863c2b8e
commit 08ce85d0fb

View File

@@ -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;