aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSnapperRy <snapperryen@gmail.com>2016-10-03 23:44:51 +0200
committerSnapperRy <snapperryen@gmail.com>2016-10-03 23:44:51 +0200
commitea6911517d38aa8ea493dbe88a33c9734d86bb04 (patch)
treea81d67dc18bf9a024533defc9df3beca5486f0e7
parent5c5b8df6138a94f5bc74d7eda0f894d825b5f63c (diff)
Core/Loot: limit unique items check in LootItem::AllowedForPlayer() to bind-when-picked-up items only.
-rw-r--r--src/server/game/Loot/LootMgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp
index 991d6b92ac2..da50b818341 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 unique items if player already has the maximum allowed quantity.
- if (pProto->MaxCount && int32(player->GetItemCount(itemid, true)) >= pProto->MaxCount)
+ // 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)
return false;
return true;