From 3cfdc7e678c9aec92b0e67adba642bb826ee9cd1 Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Tue, 16 Aug 2022 15:52:01 -0300 Subject: [PATCH] fix(Core/Loot): Unique items shouldn't be hidden indiscriminately (#12759) --- src/server/game/Loot/LootMgr.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp index 25cc841f4..062719942 100644 --- a/src/server/game/Loot/LootMgr.cpp +++ b/src/server/game/Loot/LootMgr.cpp @@ -429,14 +429,6 @@ bool LootItem::AllowedForPlayer(Player const* player, bool isGivenByMasterLooter return false; } - // Checking for unique or unique(XX) objects - // master looter should still be able to see the loot to give to people. - // casting to avoid warnings, it's unlikely there's an item with unique but 2^31 items allowed. - if (!isMasterLooter && pProto->MaxCount > 0 && ((int32)player->GetItemCount(itemid, true) >= pProto->MaxCount)) - { - return false; - } - // not show loot for not own team if ((pProto->Flags2 & ITEM_FLAGS_EXTRA_HORDE_ONLY) && player->GetTeamId(true) != TEAM_HORDE) {