fix(Core/Loot): Gold should always be lootable, even if it's the only loot (#4842)
This commit is contained in:
parent
31af450cbe
commit
e4aa9be1f7
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue