diff options
author | SnapperRy <snapperryen@gmail.com> | 2016-10-11 23:36:49 +0200 |
---|---|---|
committer | SnapperRy <snapperryen@gmail.com> | 2016-10-11 23:36:49 +0200 |
commit | fffeae0da222eb84145880278ee9ac07e6076853 (patch) | |
tree | 0f72ebd5dd05b5c0e37474503750a0c0d3b52202 /src | |
parent | d685c7079d8fedf4ce1b7afa23a59a57c4a63af8 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Loot/LootMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp index da50b818341..91ad62c43c7 100644 --- a/src/server/game/Loot/LootMgr.cpp +++ b/src/server/game/Loot/LootMgr.cpp @@ -394,8 +394,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; |