fix(Core/Loot): Gold should always be lootable, even if it's the only loot (#4842)

This commit is contained in:
AbraKabastard
2021-03-20 13:26:57 -03:00
committed by GitHub
parent 31af450cbe
commit e4aa9be1f7

View File

@@ -783,6 +783,12 @@ uint32 Loot::GetMaxSlotInLootFor(Player* player) const
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;