On 30 December 1777, Maximilian Joseph, Elector of Bavaria died of smallpox, leaving no children and in his will leaving the Duchy to Charles IV Theodore, Count Palatine, a scion of the senior branch of the House of Wittelsbach. Like Maximilian, Charles IV Theodore had no legitimate children to...