recover_west_anatolia = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 322
			province_id = 1848
			province_id = 2360
			province_id = 2365
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 316
			owns = 317
			owns = 318
		}
		OR = {
			NOT = { owns = 322 }
			NOT = { owns = 1848 }
			NOT = { owns = 2360 }
			NOT = { owns = 2365 }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 25
	}
}

recover_central_anatolia = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 323
			province_id = 324
			province_id = 325
			province_id = 326
			province_id = 328
			province_id = 1846
			province_id = 2366
			province_id = 2364
			province_id = 2361
			province_id = 2363
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 2360
			owns = 322
			owns = 1848
		}
		OR = {
			NOT = { owns = 323 }	
			NOT = { owns = 324 }	
			NOT = { owns = 325 }	
			NOT = { owns = 326 }	
			NOT = { owns = 328 }	
			NOT = { owns = 1846 }
			NOT = { owns = 2366 }
			NOT = { owns = 2364 }
			NOT = { owns = 2361 }
			NOT = { owns = 2363 }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 25
	}
}

recover_east_anatolia = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 327
			province_id = 329
			province_id = 330
			province_id = 331		
			province_id = 332
			province_id = 2362
			province_id = 2368
			province_id = 2268
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 323	
			owns = 324	
			owns = 325	
			owns = 326	
			owns = 328	
			owns = 1846
		}
		OR = {
			NOT = { owns = 327 }
			NOT = { owns = 329 }
			NOT = { owns = 330 }
			NOT = { owns = 331 }
			NOT = { owns = 332 }
			NOT = { owns = 2362 }
			NOT = { owns = 2368 }
			NOT = { owns = 2268 }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 25
	}
}

recover_crimea = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 285
			province_id = 2608
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 316	
			owns = 146	
		}
		OR = {
			NOT = { owns = 285 }
			NOT = { owns = 2608 }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 5
		add_adm_power = 10
	}
}

recover_east_islands = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 163
			province_id = 164
			province_id = 320
			province_id = 321
			province_id = 2125
			province_id = 2156
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 316	
			owns = 146	
		}
		OR = {
			NOT = { owns = 163 }	
			NOT = { owns = 321 }	
			NOT = { owns = 320 }	
			NOT = { owns = 2125 }
			NOT = { owns = 2156 }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 25
	}
}

recover_albania = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 143
			province_id = 138
			province_id = 1766
			province_id = 137
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 316	
			owns = 146	
			owns = 285
		}
		OR = {
			NOT = { owns = 143 }	
			NOT = { owns = 138 }	
			NOT = { owns = 1766 }	
			NOT = { owns = 137 }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 25
	}
}

recover_isteria = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 136
			province_id = 1826
			province_id = 130
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 137	
			owns = 138	
		}
		OR = {
			NOT = { owns = 136 }	
			NOT = { owns = 1826 }	
			NOT = { owns = 130 }	
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 25
	}
}

recover_north_italy = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 119
			province_id = 117
			province_id = 114
			province_id = 115
			province_id = 116
			province_id = 113
			province_id = 106
			province_id = 3126
			province_id = 3127
			province_id = 3128
			province_id = 3129
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		owns = 118	
		OR = {
			NOT = { owns = 119 }	
			NOT = { owns = 117 }	
			NOT = { owns = 114 }	
			NOT = { owns = 115 }	
			NOT = { owns = 116 }	
			NOT = { owns = 113 }
			NOT = { owns = 106 }
			NOT = { owns = 3126 }
			NOT = { owns = 3127 }
			NOT = { owns = 3128 }
			NOT = { owns = 3129 }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 75
	}
}

recover_lombardia = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 109
			province_id = 108
			province_id = 107
			province_id = 105
			province_id = 1862
			province_id = 101
			province_id = 104
			province_id = 3123
			province_id = 3124
			province_id = 3125
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 113	
			owns = 106	
		}	
		OR = {
			NOT = { owns = 109 }	
			NOT = { owns = 108 }	
			NOT = { owns = 107 }	
			NOT = { owns = 105 }	
			NOT = { owns = 1862 }	
			NOT = { owns = 101 }
			NOT = { owns = 104 }
			NOT = { owns = 3123 }
			NOT = { owns = 3124 }
			NOT = { owns = 3125 }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 75
	}
}

recover_west_islands = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 1247
			province_id = 127
			province_id = 333
			province_id = 3134
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 125	
			owns = 118	
		}
		OR = {
			NOT = { owns = 1247 }	
			NOT = { owns = 127 }	
			NOT = { owns = 333 }	
			NOT = { owns = 3134 }	
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 25
	}
}

recover_south_spain = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 226
			province_id = 223
			province_id = 222
			province_id = 221
			province_id = 224
			province_id = 1749
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 1247 
			owns = 127
			owns = 333	
		}
		OR = {
			NOT = { owns = 226 }	
			NOT = { owns = 223 }	
			NOT = { owns = 222 }	
			NOT = { owns = 221 }	
			NOT = { owns = 224 }	
			NOT = { owns = 1749 }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 50
	}
}

recover_tripoli = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 354
			province_id = 355
			province_id = 356
			province_id = 357
			province_id = 2517
			province_id = 2518
			province_id = 2586
			province_id = 2589
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 327	
			owns = 329	
			owns = 330	
			owns = 331	
			owns = 332	
		}
		OR = {
			NOT = { owns = 354 }
			NOT = { owns = 355 }
			NOT = { owns = 356 }
			NOT = { owns = 357 }
			NOT = { owns = 2517 }
			NOT = { owns = 2518 }
			NOT = { owns = 2586 }
			NOT = { owns = 2589 }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 25
	}
}

recover_tunis = {
	
	type = country

	category = MIL
	
	target_provinces = {
		region = tunisian_region
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 354	
			owns = 355	
			owns = 356
			owns = 357
			owns = 2326
			owns = 2451
			owns = 2452	
		}
		tunisian_region = {
			NOT = { owned_by = ROOT }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 25
	}
}

recover_antioch = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 377
			province_id = 378
			province_id = 1849
			province_id = 2367
			province_id = 2546
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 321	
			owns = 327	
			owns = 332		
		}
		OR = {
			NOT = { owns = 377 }
			NOT = { owns = 378 }
			NOT = { owns = 1849 }
			NOT = { owns = 2367 }
			NOT = { owns = 2546 }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 50
	}
}

recover_jerusalem = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 364
			province_id = 379
			province_id = 1854
			province_id = 1855
			province_id = 2151
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 321	
			owns = 377	
			owns = 358		
		}
		OR = {
			NOT = { owns = 364 }
			NOT = { owns = 379 }
			NOT = { owns = 1854 }
			NOT = { owns = 1855 }
			NOT = { owns = 2151 }

		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 50
	}
}

recover_alexandria = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			province_id = 358
			province_id = 357
			province_id = 2526
			province_id = 362
			province_id = 363
		}
		NOT = { owned_by = ROOT }
	}
	allow = {
		normal_or_historical_nations = yes
		has_dlc = "Purple Phoenix"
		tag = BYZ
		is_subject = no
		owns = 151		# Thrace
		is_at_war = no
		OR = {
			owns = 379	#Jerusalem
			owns = 2313 #Antioch		
		}
		OR = {
			NOT = { owns = 358 }	
			NOT = { owns = 357 }	
			NOT = { owns = 2526 }
			NOT = { owns = 362 }	
			NOT = { owns = 363 }			
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 6
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 10
		add_adm_power = 75
	}
}
