Core/Loot: fix bug introduced in a49544cc187d3a156b4615907d6b82057364fcc4 in which creatures only having gold wouldn't show lootable sparks, and thus couldn't be looted
This commit is contained in:
1 parent
2b863c2b8e
commit
08ce85d0fb
1 file changed
+4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user