Implement MagicItems flag for vendors (Fixes #1861)