fix(Core/Loot) Fix master looter invisible quest items (#14103)
This commit is contained in:
@@ -419,7 +419,7 @@ bool LootItem::AllowedForPlayer(Player const* player, ObjectGuid source) const
|
|||||||
if (!sConditionMgr->IsObjectMeetToConditions(const_cast<Player*>(player), conditions))
|
if (!sConditionMgr->IsObjectMeetToConditions(const_cast<Player*>(player), conditions))
|
||||||
{
|
{
|
||||||
// Master Looter can see conditioned recipes
|
// 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))
|
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
|
// 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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user