mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 06:06:23 +00:00
fix(Core): loot party (#4409)
This commit is contained in:
@@ -781,6 +781,14 @@ uint32 Loot::GetMaxSlotInLootFor(Player* player) const
|
||||
return items.size() + (itr != PlayerQuestItems.end() ? itr->second->size() : 0);
|
||||
}
|
||||
|
||||
bool Loot::hasItemForAll() const
|
||||
{
|
||||
for (LootItem const& item : items)
|
||||
if (!item.is_looted && !item.freeforall && item.conditions.empty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
// return true if there is any FFA, quest or conditional item for the player.
|
||||
bool Loot::hasItemFor(Player* player) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user