targetted_decisions = {
######################################
####### Divinite			   #######
######################################
	trait-devenir_Divin = {
		filter = self
		ai_target_filter = self
		ai = no
		diplomacy_icon = GFX_icon_Divinite
		third_party_filter = all
        third_party = ROOT		
        third_party_potential = {
            FROMFROM = {
				OR = {
					trait = Divinite
					has_landed_title = d_divinite_1
				}
				ai = yes
			}
        }
		potential = {
			NOT = {
				trait = Divinite
				trait = immortal
				has_landed_title = d_sqpr
			}
			NOT = {
				trait = SPQR_senat
				trait = immortal
				has_landed_title = k_papal_state
				has_landed_title = e_papal_state
				trait = Pape-Catholic
				trait = trait_Sede_Vacante
				government = Gouvernement_Vatican
			}
			any_character = {
				trait = Divinite
				ai = yes
			}
			custom_tooltip = {
				text = divinite_joueur
				NOT = {
					any_character = {
						trait = Divinite
						ai = no
					}
				}
			}
		}
		allow = {
			NOT = {
				trait = Divinite
				trait = immortal
				has_landed_title = d_sqpr
			}
			NOT = {
				trait = SPQR_senat
				trait = immortal
				has_landed_title = k_papal_state
				has_landed_title = e_papal_state
				trait = Pape-Catholic
				trait = trait_Sede_Vacante
				government = Gouvernement_Vatican
			}
			any_character = {
				trait = Divinite
				ai = yes
			}
			custom_tooltip = {
				text = joueur_divinite
				NOT = {
					any_character = {
						trait = Divinite
						ai = no
					}
				}
			}
		}
		effect = {
			if = {
				limit = {
					FROMFROM = {
						NOT = {
							has_landed_title = d_divinite_1
						}
					}
				}
				primary_title = {
					d_divinite_1 = {
						grant_title = FROMFROM
					}
				}
			}
			if = {
				limit = {
					FROMFROM = {
						trait = Divinite
						ai = yes
					}
				}
				FROM = {
					set_player_character = FROMFROM
				}
			}
		}
	}	
}