Bypass drop restriction in mpa_addflooritem when dropping (#7847)
This commit is contained in:
@@ -6047,7 +6047,8 @@ bool pc_dropitem(map_session_data *sd,int n,int amount)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!map_addflooritem(&sd->inventory.u.items_inventory[n], amount, sd->bl.m, sd->bl.x, sd->bl.y, 0, 0, 0, 2, 0))
|
||||
// bypass drop restriction in map_addflooritem because we've already checked it above
|
||||
if (!map_addflooritem(&sd->inventory.u.items_inventory[n], amount, sd->bl.m, sd->bl.x, sd->bl.y, 0, 0, 0, 2|4, 0))
|
||||
return false;
|
||||
|
||||
pc_delitem(sd, n, amount, 1, 0, LOG_TYPE_PICKDROP_PLAYER);
|
||||
|
||||
Reference in New Issue
Block a user