Disables: item drop disable

Quest loot cannot be disabled here, disable the quest instead.
Not the most efficient implementation (chance is checked before disable), but working.
This commit is contained in:
Olion 2015-10-01 14:04:47 +03:00 committed by Antz
parent a3cde56b18
commit 71ba7d9374

View File

@ -471,7 +471,7 @@ void Loot::AddItem(LootStoreItem const& item)
if (m_questItems.size() < MAX_NR_QUEST_ITEMS)
{ m_questItems.push_back(LootItem(item)); }
}
else if (items.size() < MAX_NR_LOOT_ITEMS) // Non-quest drop
else if (items.size() < MAX_NR_LOOT_ITEMS && !DisableMgr::IsDisabledFor(DISABLE_TYPE_ITEM_DROP, item.itemid)) // Non-quest drop
{
items.push_back(LootItem(item));