Merge pull request #11732 from Dehravor/loot-exploit

Core/Loot: Fix an exploit that allowed players to loot infinite amount of items that have condition(s)
This commit is contained in:
jackpoz
2014-03-17 19:40:43 +01:00
@@ -24741,6 +24741,12 @@ void Player::StoreLootItem(uint8 lootSlot, Loot* loot)
return;
}
if (!item->AllowedForPlayer(this))
{
SendLootRelease(GetLootGUID());
return;
}
// questitems use the blocked field for other purposes
if (!qitem && item->is_blocked)
{