fix(Core/Loot): allow master looter to see and distribute all quest items (#6417)

Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
This commit is contained in:
Kitzunu
2021-07-09 19:40:34 +02:00
committed by GitHub
parent db2c451fb8
commit a61f7a128f

View File

@@ -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;
}