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

(cherry picked from commit 59f71f915a)
This commit is contained in:
ariel-
2016-07-19 02:09:41 -03:00
committed by joschiwald
parent 297c0a9b9e
commit 635ea3258b

View File

@@ -816,6 +816,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;