mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Loot: fix bug introduced in a49544cc18 in which creatures only having gold wouldn't show lootable sparks, and thus couldn't be looted
(cherry picked from commit 59f71f915a)
This commit is contained in:
@@ -816,6 +816,10 @@ uint32 Loot::GetMaxSlotInLootFor(Player* player) const
|
||||
// return true if there is any item that is lootable for any player (not quest item, FFA or conditional)
|
||||
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