fix(Core/Loot): Items below group threshold should not be blocked by master looter. (#5041)

This commit is contained in:
UltraNix
2021-04-07 13:30:34 +02:00
committed by GitHub
parent 4f3c21b55c
commit c19ea1f7ad
4 changed files with 44 additions and 14 deletions

View File

@@ -25705,9 +25705,9 @@ void Player::StoreLootItem(uint8 lootSlot, Loot* loot)
return;
}
// Xinef: exploit protection, dont allow to loot normal items if player is not master loot
// Xinef: exploit protection, dont allow to loot normal items if player is not master loot and not below loot threshold
// Xinef: only quest, ffa and conditioned items
if (!IS_ITEM_GUID(GetLootGUID()) && GetGroup() && GetGroup()->GetLootMethod() == MASTER_LOOT && GetGUID() != GetGroup()->GetMasterLooterGuid())
if (!item->is_underthreshold && !IS_ITEM_GUID(GetLootGUID()) && GetGroup() && GetGroup()->GetLootMethod() == MASTER_LOOT && GetGUID() != GetGroup()->GetMasterLooterGuid())
if (qitem == nullptr && ffaitem == nullptr && conditem == nullptr)
{
SendLootRelease(GetLootGUID());