namespace = Immortel_trait
######################################
####### Immortal			   #######
######################################
character_event = {
	id = Immortel_trait.1
	hide_window = yes
	is_triggered_only = yes
	trigger = {
		age = 0
		OR = {
			has_landed_title = e_holy_see
			has_landed_title = k_papal_state
			has_landed_title = k_orthodox
			has_landed_title = d_fraticelli
			has_landed_title = d_garde_suisse_1
			has_landed_title = d_garde_suisse_2
			has_landed_title = d_garde_suisse_3
			has_landed_title = d_garde_suisse_4
			trait = trait_Sede_Vacante
			trait = Pape-Catholic
			trait = Pape-Fraticelli
			trait = Cardinal-Catholic
			trait = Cardinal-Fraticelli
			trait = Eveque-Catholic
			trait = Eveque-Fraticelli
			trait = Archidiacre
		}
		trait = immortal
		any_character = {
			has_landed_title = e_holy_see
		}
	}
	immediate = {
		remove_trait = immortal
	}
}

character_event = {
	id = Immortel_trait.2
	hide_window = yes
	mean_time_to_happen = {
		days = 1
	}
	trigger = {
		age = 0
		OR = {
			has_landed_title = e_holy_see
			has_landed_title = k_papal_state
			has_landed_title = k_orthodox
			has_landed_title = d_fraticelli
			has_landed_title = d_garde_suisse_1
			has_landed_title = d_garde_suisse_2
			has_landed_title = d_garde_suisse_3
			has_landed_title = d_garde_suisse_4
			trait = trait_Sede_Vacante
			trait = Pape-Catholic
			trait = Pape-Fraticelli
			trait = Cardinal-Catholic
			trait = Cardinal-Fraticelli
			trait = Eveque-Catholic
			trait = Eveque-Fraticelli
			trait = Archidiacre
		}
		trait = immortal
		any_character = {
			has_landed_title = e_holy_see
		}
	}
	immediate = {
		remove_trait = immortal
	}
}