mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +00:00
fix(Core/Loot): Gold should always be lootable, even if it's the only loot (#4842)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user