Migrated deselection code to staffs and spells