From e35078a1f8cdfb3c95bc93a7273beaf76cfaa4de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Mauger?= Date: Tue, 3 Jan 2023 01:47:08 +0100 Subject: [PATCH] fix(Core/Loot) Fix master looter invisible quest items (#14103) --- src/server/game/Loot/LootMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp index c01d46c98..2be3a9a69 100644 --- a/src/server/game/Loot/LootMgr.cpp +++ b/src/server/game/Loot/LootMgr.cpp @@ -419,7 +419,7 @@ bool LootItem::AllowedForPlayer(Player const* player, ObjectGuid source) const if (!sConditionMgr->IsObjectMeetToConditions(const_cast(player), conditions)) { // Master Looter can see conditioned recipes - if (isMasterLooter && follow_loot_rules && !is_underthreshold) + if (isMasterLooter && (!follow_loot_rules || !is_underthreshold)) { if ((pProto->Flags & ITEM_FLAG_HIDE_UNUSABLE_RECIPE) || (pProto->Class == ITEM_CLASS_RECIPE && pProto->Bonding == BIND_WHEN_PICKED_UP && pProto->Spells[1].SpellId != 0)) { @@ -442,7 +442,7 @@ bool LootItem::AllowedForPlayer(Player const* player, ObjectGuid source) const } // Master looter can see all items even if the character can't loot them - if (isMasterLooter && follow_loot_rules && !is_underthreshold) + if (isMasterLooter && (!follow_loot_rules || !is_underthreshold)) { return true; }