pte_take_cardinal = {
	category = 6
	power_projection = no
	power_cost_base = 0.69
	prestige_base = 0.5
	ae_base = 0.11
	warscore_cost = {
		all_provinces = 0.0
		no_provinces = 10.0
		owner_keeps = 0.0
		conquered = 0.0
		returned_core = 0.0
		released_nation = 0.0
		cancelled_subject = 0.0
		concede_colonial_region = 0.0
	}
	warscore_cap = -1
	requires_demand_independence = no
	is_make_subject = no
	requires_is_allowed = no

	is_visible = {
		religion = catholic
		NOT = { num_of_cardinals = 7 }
		FROM = {
			religion = catholic
			num_of_cardinals = 1
		}
		any_owned_province = {
			religion = catholic
			has_cardinal = no
		}
	}
	is_allowed = {
	}
	effect = {
		random_owned_province = {
			limit = {
				religion = catholic
				has_cardinal = no
			}
			add_cardinal = yes
		}
		FROM = {
			random_owned_province = {
				limit = {
					has_cardinal = yes
				}
				remove_cardinal = yes
			}
		}
	}
	ai_weight = {
		export_to_variable = {
			variable_name = ai_value
			value = 1
		}
		limit = {
			NOT = { num_of_cardinals = 3 }
			FROM = {
				NOT = {
					num_of_owned_provinces_with = {
						value = 5
						OR = {
							is_claim = ROOT
							is_core = ROOT
						}
					}
				}
			}
			OR = {
				border_distance = {
					who = FROM
					distance = 300
				}
				FROM = {
					num_of_cities = 5
				}
			}
		}
	}
}