mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Core/Loot: Fix an exploit that allowed players to loot infinite amount of items that have condition(s)
This commit is contained in:
@@ -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