Core/Loot: Allow master looter to see all quest items (#26584)

This commit is contained in:
Giacomo Pozzoni
2021-06-13 19:41:51 +02:00
committed by GitHub
parent 12668692ea
commit 8d92f6f2b4

View File

@@ -71,13 +71,9 @@ bool LootItem::AllowedForPlayer(Player const* player, bool isGivenByMasterLooter
if (pProto->HasFlag(ITEM_FLAG2_FACTION_ALLIANCE) && player->GetTeam() != 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 && player->GetGroup() && player->GetGroup()->GetMasterLooterGuid() == player->GetGUID())
{
// check quest requirements
if (!pProto->HasFlag(ITEM_FLAGS_CU_IGNORE_QUEST_STATUS) && (needs_quest || pProto->StartQuest))
return false;
return true;
}