targetted_decisions = {
######################################
####### Vatican				   #######
######################################
	Abdiquer = {
		filter = all
		ai_target_filter = all
		ai = no
		diplomacy_icon = GFX_icon_Abdiquer_Vatican
		from_potential = {
			has_landed_title = k_papal_state
		}
		allow = {
			age = 0
			religion = ROOT
			is_theocracy = yes
			has_claim = k_papal_state
		#	FROM = {
		#		NOT = {
		#			trait = trait_Sede_Vacante
		#		}
		#	}
		}
		effect = {
			FROM = {
				if = {
					limit = {
						has_landed_title = k_papal_state
						trait = trait_Sede_Vacante
					}
					death = {
						death_reason = death_missing
					}
				}
			}
			liege = {
				add_favor = ROOT
			}
			ROOT = {
				save_event_target_as = nouveau_pape_tete_C
				top_liege = {
					save_event_target_as = liege_Abdiquer
				}
			#	top_liege = {
			#		any_demesne_title = {
			#			limit = { 
			#				tier = EMPEROR
			#			}
			#			revoke_law = investiture_law_1
			#			add_law_w_cooldown = investiture_law_0
			#		}
			#		any_demesne_title = {
			#			limit = { 
			#				tier = KING
			#			}
			#			revoke_law = investiture_law_1
			#			add_law_w_cooldown = investiture_law_0
			#		}
			#	}
				if = {
					limit = {
						has_claim = k_papal_state
					}
					remove_claim = k_papal_state
			#		religion_authority = {
			#			modifier = deposed_antipope
			#		}
				}
			#	any_realm_lord = {
			#		limit = {
			#			has_claim = k_papal_state
			#		}
			#		remove_claim = k_papal_state
			#		religion_authority = {
			#			modifier = deposed_antipope
			#		}
			#	}
				current_heir = {
					save_event_target_as = pope_abdiquer
				}	
				abdicate_to = event_target:pope_abdiquer
			}
			FROM = {
				transfer_scaled_wealth = {
					to = ROOT
					value = all
				}
				any_artifact = {
					transfer_artifact = {
						from = FROM
						to = ROOT
					}
				}
				imprison = no
				add_rival = ROOT
				abdicate_to = ROOT
				set_player_character = ROOT
				move_character = ROOT
				imprison = ROOT
				remove_claim = k_papal_state
			#	add_trait = excommunicated
			#	add_character_modifier = {
			#		name = accused_apostate
			#		duration = -1
			#	}	
			}
			set_defacto_liege = event_target:liege_Abdiquer
			character_event = {
				id = nouveau-pape.1
			#	days = 1 #ne pas activer le jour ou l event en . n apparait pas
			}
		}
	}	
}