mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +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
|
bool Loot::hasItemForAll() const
|
||||||
{
|
{
|
||||||
|
// Gold is always lootable
|
||||||
|
if (gold)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
for (LootItem const& item : items)
|
for (LootItem const& item : items)
|
||||||
if (!item.is_looted && !item.freeforall && item.conditions.empty())
|
if (!item.is_looted && !item.freeforall && item.conditions.empty())
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user