EDB file, just remove the part of the requirement line that reads castle. This allows building in both city and castle.