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:
@@ -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)
|
if ((pProto->Flags2 & ITEM_FLAGS_EXTRA_ALLIANCE_ONLY) && player->GetTeamId(true) != TEAM_ALLIANCE)
|
||||||
return false;
|
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)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user