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:
parent
a3cde56b18
commit
71ba7d9374
@ -471,7 +471,7 @@ void Loot::AddItem(LootStoreItem const& item)
|
|||||||
if (m_questItems.size() < MAX_NR_QUEST_ITEMS)
|
if (m_questItems.size() < MAX_NR_QUEST_ITEMS)
|
||||||
{ m_questItems.push_back(LootItem(item)); }
|
{ 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));
|
items.push_back(LootItem(item));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user