bavaria_austria_relations = {
	
	type = country

	allow = {
		tag = BAV
		exists = HAB
		not = { war_with = HAB }
		not = { marriage_with = HAB }
		is_lesser_in_union = no
		is_subject = no
		government = monarchy
		HAB = {
			government = monarchy
			is_lesser_in_union = no
			is_subject = no
		}
	}
	abort = {
		or = {
			war_with = HAB
			is_lesser_in_union = yes
			is_subject = yes
			not = { government = monarchy }
			HAB = {
				or = {
					not = { government = monarchy }
					is_lesser_in_union = yes
					is_subject = yes
				}	
			}
		}
	}
	success = {
		marriage_with = HAB
		relation = { who = HAB value = 100 }
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			not = { relation = { who = HAB value = 0 } }
		}
		modifier = {
			factor = 2
			not = { relation = { who = HAB value = -100 } }
		}
	}
	effect = {
		stability = 1
	}
}

conquer_franken = {
	
	type = country

	allow = {
		tag = BAV	
		67 = {	not = { owned_by = this } }		# Franken
		is_lesser_in_union = no
		is_subject = no
	}
	abort = {
		or = {
			is_subject = yes
			is_lesser_in_union = yes
		}
	}
	success = {
		owns = 67
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			adm = 7
		}
	}
	immediate = {
		add_temp_claim = 67
	}
	abort_effect = {
		remove_temp_claim = 67
	}
	effect = {
		infamy = -2
	}
}

conquer_pfalz = {
	
	type = country

	allow = {
		tag = BAV		
		77 = {		# Pfalz
			not = { owned_by = this }
			any_neighbor_province = { owned_by = this }
		}
		is_lesser_in_union = no
		is_subject = no
	}
	abort = {
		or = {
			is_subject = yes
			is_lesser_in_union = yes
		}	
	}
	success = {
		owns = 77
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			adm = 7
		}
	}
	immediate = {
		add_temp_claim = 77
	}
	abort_effect = {
		remove_temp_claim = 77
	}
	effect = {
		prestige = 0.05
	}
}

conquer_alzey = {
	
	type = country

	allow = {
		tag = BAV
		1761 = {		# Alzey
			not = { owned_by = this }
			any_neighbor_province = { owned_by = this }
		}
		is_subject = no
		is_lesser_in_union = no	
	}
	abort = {
		or = {
			is_subject = yes
			is_lesser_in_union = yes
		}	
	}
	success = {
		owns = 1761
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			adm = 7
		}
	}
	immediate = {
		add_temp_claim = 1761
	}
	abort_effect = {
		remove_temp_claim = 1761
	}
	effect = {
		prestige = 0.05
	}
}

conquer_ansbach = {
	
	type = country

	allow = {
		tag = BAV	
		71 = {		# Ansbach
			not = { owned_by = this }
			any_neighbor_province = { owned_by = this }
		}
		is_subject = no
		is_lesser_in_union = no
	}
	abort = {
		or = {
			is_subject = yes
			is_lesser_in_union = yes
		}	
	}
	success = {
		owns = 71
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			adm = 7
		}
	}
	immediate = {
		add_temp_claim = 71
	}
	abort_effect = {
		remove_temp_claim = 71
	}
	effect = {
		stability = 1
	}
}
