targetted_decisions = {
######################################
####### Divinite               #######
######################################
	Divinite_landless = {
		filter = all
		ai_target_filter = all
		ai = no
		diplomacy_icon = GFX_icon_Divinite
		from_potential = {
			has_landed_title = d_divinite
			trait = Divinite
		}
		allow = {
			FROM = {
				has_landed_title = d_divinite
				trait = Divinite
				is_landed = no
				independent = no
			}
			ROOT = {
				war = no
				rebel = no
				tier = BARON
				same_realm = FROM
				top_liege = {
					OR = {
						tier = DUKE
						tier = KING
						tier = EMPEROR
					}
				}
				NOT = {
					has_landed_title = k_brutii
					has_landed_title = k_julii
					has_landed_title = k_scipii
					has_landed_title = k_spqr
					has_landed_title = k_papal_state
					has_landed_title = e_papal_state
					has_landed_title = d_fraticelli
					has_landed_title = k_orthodox
					has_landed_title = e_china_west_governor
					has_landed_title = e_holy_see
					has_minor_title = title_cardinal
					has_minor_title = title_fraticelli_cardinal
					trait = Pape-Catholic
					trait = Pape-Fraticelli
					trait = Cardinal-Catholic
					trait = Cardinal-Fraticelli
					trait = Eveque-Catholic
					trait = Eveque-Fraticelli
					trait = Archidiacre
					trait = trait_Sede_Vacante
					trait = Divinite
					trait = immortal
				}
			}
		}
		effect = {
			ROOT = {
				top_liege = {
					save_event_target_as = liege_divinite
				}
			}
			ROOT = {
				abdicate_to = FROM
			}
			FROM = {
				set_defacto_liege  = event_target:liege_divinite
				d_divinite = {
					add_law = {
						law = investiture_law_1
						opinion_effect = no
					}
				}
				d_divinite = {
					add_law = {
						law = out_of_realm_inheritance_law_1
						opinion_effect = no
					}
				}
				d_divinite = {
					add_law = {
						law = vassal_wars_law_2
						opinion_effect = no
					}
				}
				d_divinite = {
					add_law = {
						law = centralization_4
						opinion_effect = no
					}
				}
				d_divinite = {
					add_law = {
						law = status_of_women_4
						opinion_effect = no
					}
				}
				d_divinite = {
					add_law = {
						law = revoke_title_law_2
						opinion_effect = no
					}
				}
				d_divinite = {
					add_law = {
						law = ze_administration_laws_2
						opinion_effect = no
					}
				}
				d_divinite = {
					add_law = {
						law = succ_open_elective
						opinion_effect = no
					}
				}
				set_government_type = Divinite_government
				recalc_succession = yes
			}
		}
	}
}