From 8707ff242565202826168254e844fba46ae2b70f Mon Sep 17 00:00:00 2001 From: SnapperRy Date: Tue, 11 Oct 2016 23:36:49 +0200 Subject: [PATCH] Core/Loot: limit unique items check introduced in ea69115 to affect only items that start a quest. Turns out epic and legendary items are excluded from this limitation (or it could be just instanced content that is immune to this). Other qualities are affected as normal. Sorry for the mishap. --- src/server/game/Loot/LootMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp index 05d8565decb..7894c98e703 100644 --- a/src/server/game/Loot/LootMgr.cpp +++ b/src/server/game/Loot/LootMgr.cpp @@ -399,8 +399,8 @@ bool LootItem::AllowedForPlayer(Player const* player) const if (!(pProto->FlagsCu & ITEM_FLAGS_CU_IGNORE_QUEST_STATUS) && ((needs_quest || (pProto->StartQuest && player->GetQuestStatus(pProto->StartQuest) != QUEST_STATUS_NONE)) && !player->HasQuestForItem(itemid))) return false; - // Don't show bind-when-picked-up unique items if player already has the maximum allowed quantity. - if (pProto->Bonding == BIND_WHEN_PICKED_UP && pProto->MaxCount && int32(player->GetItemCount(itemid, true)) >= pProto->MaxCount) + // Don't show non-epic and non-legendary bind-when-picked-up unique items if player already has the maximum allowed quantity. + if (pProto->Bonding == BIND_WHEN_PICKED_UP && pProto->Quality < ITEM_QUALITY_EPIC && pProto->MaxCount && int32(player->GetItemCount(itemid, true)) >= pProto->MaxCount) return false; return true;