Core/Loot: Fix an exploit that allowed players to loot infinite amount of items that have condition(s)

This commit is contained in:
Dehravor
2014-03-17 18:46:17 +01:00
parent 3ce545a1b5
commit 7401ab7eab

View File

@@ -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)
{