decisions = {

	mpreg = {
		is_high_prio = yes
		ai_check_interval = 1
		potential = {
			ai = yes
			is_theocracy = yes
			controls_religion = yes
			is_pregnant = no
		}
		allow = {
			always = yes
		}
		effect = {
			impregnate = ROOT
		}
		ai_will_do = {
			factor = 1
		}
	}
}

targetted_decisions = {

	papal_bastard = {
		filter = close_relatives
		ai_target_filter = close_relatives
		ai_check_interval = 1
		is_high_prio = yes
	
		from_potential = {
			ai = yes
			has_children = yes
			is_theocracy = yes
			controls_religion = yes
		}
		
		potential = {
			trait = bastard
			is_child_of = FROM
			is_liege_or_above = FROM
		}
		allow = {
			always = yes
		}
		effect = {
			dynasty = FROM
			remove_trait = bastard
			add_trait = legit_bastard
			recalc_succession = yes
			if = {
				limit = {
					prisoner = yes
					host = { character = FROM }
				}
				imprison = no
			}
		}
		
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}
}