restore_poland_lithuania_decision_effect = {
	add_prestige = massive_prestige_gain
	add_piety = massive_piety_gain
	save_scope_as = scoped_ruler
	create_title_and_vassal_change = {
		type = created
		save_scope_as = change
		add_claim_on_loss = no
	}
	title:e_poland_lithuania = {
		change_title_holder = {
			holder = scope:scoped_ruler
			change = scope:change
		}
	}
	resolve_title_and_vassal_change = scope:change
	hidden_effect = { 
		set_primary_title_to = title:e_poland_lithuania
		title:k_poland = { set_de_jure_liege_title = title:e_poland_lithuania }
		title:k_lithuania = { set_de_jure_liege_title = title:e_poland_lithuania }
	}
}

realize_domowina_decision_effect = {
	add_prestige = massive_prestige_gain
	save_scope_as = scoped_ruler
	create_title_and_vassal_change = {
		type = created
		save_scope_as = change
		add_claim_on_loss = no
	}
	title:k_lusatia = {
		change_title_holder = {
			holder = scope:scoped_ruler
			change = scope:change
		}
	}
	resolve_title_and_vassal_change = scope:change
	hidden_effect = { 
		set_primary_title_to = title:k_lusatia
		title:k_lusatia = { set_de_jure_liege_title = title:e_visegrad }
		title:d_upper_lusatia = { set_de_jure_liege_title = title:k_lusatia }
		title:d_lower_lusatia = { set_de_jure_liege_title = title:k_lusatia }
		title:c_zary = { set_de_jure_liege_title = title:d_lower_lusatia }
		title:c_gorlitz= { set_de_jure_liege_title = title:d_upper_lusatia }
	}
}