Magic prep to host Spurs after much-needed victory in Miami