From 71ba7d9374329c4225b716581c2f0e2f705ddc98 Mon Sep 17 00:00:00 2001 From: Olion Date: Thu, 1 Oct 2015 14:04:47 +0300 Subject: [PATCH] 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. --- src/game/Object/LootMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Object/LootMgr.cpp b/src/game/Object/LootMgr.cpp index 4738d9fc..0769fea8 100644 --- a/src/game/Object/LootMgr.cpp +++ b/src/game/Object/LootMgr.cpp @@ -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));