Core/Loot: Allow master looter to see all quest items

Port From (https://github.com/TrinityCore/TrinityCore/commit/9d4c57074f970cb07c5565d6617e18ac5493b1fe)
This commit is contained in:
hondacrx
2022-05-26 21:47:37 -04:00
parent 3669df2708
commit 80581e0e6f
+1 -7
View File
@@ -60,15 +60,9 @@ namespace Game.Loots
if (pProto.HasFlag(ItemFlags2.FactionAlliance) && player.GetTeam() != 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 && player.GetGroup() && player.GetGroup().GetMasterLooterGuid() == player.GetGUID())
{
// check quest requirements
if (!pProto.FlagsCu.HasFlag(ItemFlagsCustom.IgnoreQuestStatus) && (needs_quest || pProto.GetStartQuest() != 0))
return false;
return true;
}
// Don't allow loot for players without profession or those who already know the recipe
if (pProto.HasFlag(ItemFlags.HideUnusableRecipe))