diff options
author | SnapperRy <snapperryen@gmail.com> | 2016-10-11 23:36:49 +0200 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-09-06 10:38:52 +0200 |
commit | 27b0905594a15cfc59d019427d9265b28fc3116f (patch) | |
tree | 1be1fc46822f656b1fb08e11f51e782b0e69802f /src/server/game/Loot/Loot.cpp | |
parent | 8f9becaacc8bee0b05988f4f6a0255e88985ed79 (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.
(cherry picked from commit fffeae0da222eb84145880278ee9ac07e6076853)
Core/Loot: revert unique item check introduced in ea69115.
Proven to be wrong in its current form. Will reintroduce later either in the same method or via db conditions.
(cherry picked from commit 41445e0d3eae87a37a1199018afaa0059691965f)
Diffstat (limited to 'src/server/game/Loot/Loot.cpp')
-rw-r--r-- | src/server/game/Loot/Loot.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/server/game/Loot/Loot.cpp b/src/server/game/Loot/Loot.cpp index da7f386208e..58ef180b747 100644 --- a/src/server/game/Loot/Loot.cpp +++ b/src/server/game/Loot/Loot.cpp @@ -84,10 +84,6 @@ bool LootItem::AllowedForPlayer(Player const* player) const if (!(pProto->FlagsCu & ITEM_FLAGS_CU_IGNORE_QUEST_STATUS) && ((needs_quest || (pProto->GetStartQuest() && player->GetQuestStatus(pProto->GetStartQuest()) != 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->GetBonding() == BIND_ON_ACQUIRE && pProto->GetMaxCount() && player->GetItemCount(itemid, true) >= pProto->GetMaxCount()) - return false; - return true; } |