Core/Loot: Fix an exploit that allowed players to loot infinite amount of items that have condition(s)
This commit is contained in:
1 parent
3ce545a1b5
commit
7401ab7eab
1 file changed
+6
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user