Bypass drop restriction in mpa_addflooritem when dropping (#7847)

This commit is contained in:
Vincent Stumpf
2023-08-04 22:51:55 -07:00
committed by GitHub
parent af602d5535
commit 047e5eef6d

View File

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