From a61f7a128fd215a958b527e2f63beec81d77bc93 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Fri, 9 Jul 2021 19:40:34 +0200 Subject: [PATCH] fix(Core/Loot): allow master looter to see and distribute all quest items (#6417) Co-Authored-By: Giacomo Pozzoni --- src/server/game/Loot/LootMgr.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp index 9f2959b67..733023fc0 100644 --- a/src/server/game/Loot/LootMgr.cpp +++ b/src/server/game/Loot/LootMgr.cpp @@ -418,15 +418,9 @@ bool LootItem::AllowedForPlayer(Player const* player, bool isGivenByMasterLooter if ((pProto->Flags2 & ITEM_FLAGS_EXTRA_ALLIANCE_ONLY) && player->GetTeamId(true) != TEAM_ALLIANCE) return false; - // Master looter can see certain items even if the character can't loot them + // Master looter can see all items even if the character can't loot them if (!isGivenByMasterLooter && isMasterLooter && allowQuestLoot) { - // check quest requirements (exclude items not under threshold) - if (!(pProto->FlagsCu & ITEM_FLAGS_CU_IGNORE_QUEST_STATUS) && (needs_quest || pProto->StartQuest)) - { - return !is_underthreshold; - } - return true; }