From e4aa9be1f764dadc0765d37ca382dc8392d7659d Mon Sep 17 00:00:00 2001 From: AbraKabastard <35535856+AbraKabastard@users.noreply.github.com> Date: Sat, 20 Mar 2021 13:26:57 -0300 Subject: [PATCH] fix(Core/Loot): Gold should always be lootable, even if it's the only loot (#4842) --- src/server/game/Loot/LootMgr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp index 96c94fc71..7b9b5f026 100644 --- a/src/server/game/Loot/LootMgr.cpp +++ b/src/server/game/Loot/LootMgr.cpp @@ -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;