#Algeria - annexation_ALG_CONQ
can_release_algeria = {
	state = 459 #Algiers
	is_claim_or_core_of_ROOT = no
	ROOT = {
		NOT = {
			has_country_flag = ALG_CONQ
			country_exists = ALG
			country_exists = NFA
		}
	}
}

#Angola - annexation_ANG_CONQ
can_release_angola = {
	state = 540 #Angola
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			has_country_flag = ANG_CONQ
			country_exists = ANG
		}
	}
}

#Burkina Faso - annexation_BFA_CONQ
can_release_burkina_faso = {
	state = 808 #Upper Volta
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			has_country_flag = BFA_CONQ
			country_exists = BFA
		}
	}
}

#Botswana - annexation_BOT_CONQ
can_release_botswana = {
	state = 542 #Bechuanaland
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			controls_state = 681
			has_country_flag = BOT_CONQ
			country_exists = BOT
		}
	}
}

#Burundi - annexation_BRD_CONQ
can_release_burundi = {
	state = 870 #Burundi
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		should_release_tanzania_first = yes
		NOT = {
			has_country_flag = BRD_CONQ
			country_exists = BRD
		}
	}
}

#Cameroon - annexation_CMR_CONQ
can_release_cameroon = {
	state = 927 #Cameroon
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			has_country_flag = CMR_CONQ
			country_exists = CMR
		}
	}
}

#Equatorial Guinea - annexation_EQG_CONQ
can_release_equatorial_guinea = {
	state = 1335 #Equatorial Guinea
	is_claim_or_core_of_ROOT = no
	ROOT = {
		NOT = {
			has_country_flag = EQG_CONQ
			country_exists = EQG
			tag = MAF
			tag = GEX
			tag = SPR
			tag = CAR
			AND = {
				tag = NFA
				has_completed_focus = NFA_pacify_algeria
			}
		}
	}
}

#Cape Verde - annexation_CVG_CONQ
can_release_cape_verde = {
	state = 296 #Cape Verde
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			has_country_flag = CVG_CONQ
			country_exists = CVG
		}
	}
}

#Chad - annexation_WAD_CONQ
can_release_chad = {
	state = 515 #Chad
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = MAF
			tag = NFA
			has_country_flag = WAD_CONQ
			country_exists = WAD
		}
	}
}

#Congo - annexation_KOG_CONQ
can_release_congo = {
	state = 295 #Kinshasa
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = KIV
			tag = COG
			tag = MSF
			tag = UMN
			tag = LPD
			tag = ORT
			tag = KAS
			has_country_flag = KOG_CONQ
			country_exists = KOG
		}
	}
}

#Kongo - annexation_KONGO_CONQ
can_release_kongo = {
	state = 928 #Brazaville
	is_claim_or_core_of_ROOT = no
	ROOT = {
		NOT = {
			tag = KIV
			tag = COG
			tag = MSF
			tag = UMN
			tag = LPD
			tag = KOG
			tag = TKE
			tag = GAB
			has_country_flag = KONGO_CONQ
			country_exists = KOG
			country_exists = TKE
			tag = MAF
			tag = GEX
			AND = {
				tag = NFA
				OR = {
					NOT = {
						has_completed_focus = NFA_french_union
						has_completed_focus = NFA_pacify_algeria
					}
					has_completed_focus = NFA_french_union
				}
			}
		}
	}
}

#Cyrenaica - annexation_LBA_CONQ
can_release_cyrenaica = {
	state = 451 #Ajdabiya
	NOT = { is_claimed_by = ROOT }
	ROOT = {
		NOT = {
			tag = ITA
			tag = SRD
			tag = SIC
			has_country_flag = LBA_CONQ
			country_exists = LBA
		}
	}
}

#Dahomey - annexation_DAH_CONQ
can_release_dahomey = {
	state = 876 #Dahomey
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = NFA
			has_country_flag = DAH_CONQ
			country_exists = DAH
		}
	}
}

#Egypt - annexation_EGY_CONQ
can_release_egypt = {
	state = 446 #Cairo
	is_claim_or_core_of_ROOT = no
	ROOT = {
		NOT = {
			tag = SUD
			has_country_flag = EGY_CONQ
			country_exists = EGY
		}
	}
}

#Sudan - annexation_SUD_CONQ
can_release_sudan = {
	state = 551 #Khartoum
	is_claim_or_core_of_ROOT = no
	ROOT = {
		should_release_egypt_first = yes
		NOT = {
			tag = EGY
			has_country_flag = SUD_CONQ
			country_exists = SUD
		}
	}
}

#Eritrea - annexation_ERI_CONQ
can_release_eritrea = {
	state = 550 #Eritrea
	is_claim_or_core_of_ROOT = no
	ROOT = {
		NOT = {
			tag = SOM
			has_country_flag = ERI_CONQ
			country_exists = ERI
		}
	}
}

#Ethiopia - annexation_ETH_CONQ
can_release_ethiopia = {
	state = 271 #Addis Abbba
	is_claim_or_core_of_ROOT = no
	ROOT = {
		NOT = {
			has_country_flag = ETH_CONQ
			country_exists = ETH
		}
	}
}

#Gabon - annexation_GAB_CONQ
can_release_gabon = {
	state = 539 #Gabon
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			has_country_flag = GAB_CONQ
			country_exists = GAB
		}
	}
}

#German Somaliland - annexation_GERSOM_CONQ
can_release_german_somaliland = {
	state = 268 #Djibouti
	is_claim_or_core_of_ROOT = no
	OR = {
		SOM = { is_ally_of_ROOT = yes }
		ETH = { is_ally_of_ROOT = yes }
	}
	ROOT = {
		NOT = {
			tag = GER
			tag = GEX
			tag = NFA
			tag = SOM
			tag = ETH
			has_country_flag = GERSOL_CONQ
		}
	}
}

#Ghana - annexation_GHA_CONQ
can_release_ghana = {
	state = 274 #Gold Coast
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = LIB
			has_country_flag = GHA_CONQ
			country_exists = GHA
		}
	}
}

#Guinea - annexation_GNA_CONQ
can_release_guinea = {
	state = 806 #Guinea
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = LIB
			tag = NFA
			has_country_flag = GNA_CONQ
			country_exists = GNA
		}
	}
}

#Ivory Coast - annexation_IVO_CONQ
can_release_ivory_coast = {
	state = 807 #Ivory Coast
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = LIB
			has_country_flag = IVO_CONQ
			country_exists = IVO
		}
	}
}

#Kenya - annexation_KEN_CONQ
can_release_kenya = {
	state = 547 #Kenya
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			has_country_flag = KEN_CONQ
			country_exists = KEN
		}
	}
}

#Liberia - annexation_LIB_CONQ
can_release_liberia = {
	state = 298 #Monrovia
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = MAF
			has_country_flag = LIB_CONQ
			country_exists = LIB
		}
	}
}

#Madagascar - annexation_MAG_CONQ
can_release_madagascar = {
	state = 543 #Madagascar
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			has_country_flag = MAG_CONQ
			country_exists = MAG
		}
	}
}

#Mali - annexation_MAL_CONQ
can_release_mali = {
	state = 556 #Mali
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			has_country_flag = MAL_CONQ
			country_exists = MAL
		}
	}
}

#Malawi - annexation_MLW_CONQ
can_release_malawi = {
	state = 871 #Nyasaland
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = MAF
			tag = GEX
			tag = ZAM
			tag = BSC
			has_country_flag = MLW_CONQ
			country_exists = MLW
			controls_state = 813
		}
	}
}

#Mauritania - annexation_MRT_CONQ
can_release_mauritania = {
	state = 557 #Mauritania
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = NFA
			tag = MAF
			has_country_flag = MRT_CONQ
			country_exists = MRT
		}
	}
}

#Morocco - annexation_MOR_CONQ
can_release_morocco = {
	state = 461 #Casablanca
	is_claim_or_core_of_ROOT = no
	ROOT = {
		NOT = {
			tag = GER
			tag = GEX
			tag = NFA
			tag = SFA
			has_country_flag = MOR_CONQ
			country_exists = MOR
		}
	}
}

#Mozambique - annexation_MZB_CONQ
can_release_mozambique = {
	state = 950 #Lourenço Marques
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = MAF
			tag = SAF
			has_country_flag = MZB_CONQ
			country_exists = MZB
		}
	}
}

#Namibia - annexation_NMB_CONQ
can_release_namibia = {
	state = 541 #South West Africa
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = SAF
			has_country_flag = NMB_CONQ
			country_exists = NMB
		}
	}
}

#Niger - annexation_NER_CONQ
can_release_niger = {
	state = 809 #Niger
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = MAF
			tag = NFA
			tag = TUA
			has_country_flag = NER_CONQ
			country_exists = NER
		}
	}
}

#Nigeria - annexation_NGR_CONQ
can_release_nigeria = {
	state = 973 #Lagos
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = MAF
			tag = HAU
			tag = KBR
			has_country_flag = NGR_CONQ
			country_exists = NGR
		}
	}
}

#Rwanda - annexation_RWA_CONQ
can_release_rwanda = {
	state = 869 #Rwanda
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		should_release_tanzania_first = yes
		NOT = {
			has_country_flag = RWA_CONQ
			country_exists = RWA
		}
	}
}

#Senegal - annexation_SEN_CONQ
can_release_senegal = {
	state = 272 #Senegal
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = NFA
			tag = MAF
			has_country_flag = SEN_CONQ
			country_exists = SEN
		}
	}
}

#Sierra Leone - annexation_SIE_CONQ
can_release_sierra_leone = {
	state = 700 #Sierra Leone
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			has_country_flag = SIE_CONQ
			country_exists = SIE
		}
	}
}

#Somalia - annexation_SOM_CONQ
can_release_somalia = {
	state = 559 #Mogadishu
	is_claim_or_core_of_ROOT = no
	ROOT = {
		NOT = {
			tag = ETH
			has_country_flag = SOM_CONQ
			country_exists = SOM
		}
	}
}

#South Africa - annexation_SAF_CONQ
can_release_south_africa = {
	state = 681 #Western Cape
	is_claim_or_core_of_ROOT = no
	ROOT = {
		NOT = {
			tag = SFR
			has_country_flag = SAF_CONQ
			country_exists = SAF
		}
	}
}

#Tanzania - annexation_TZN_CONQ
can_release_tanzania = {
	state = 965 #Dar-es-Salaam
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = MAF
			tag = ZZB
			has_country_flag = TZN_CONQ
			country_exists = TZN
		}
	}
}

#Togo - annexation_TOG_CONQ
can_release_togo = {
	state = 877 #Togo
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = MAF
			tag = LIB
			has_country_flag = TOG_CONQ
			country_exists = TOG
		}
	}
}

#Tripolitania - annexation_TRP_CONQ
can_release_tripolitania = {
	state = 448 #Tripoli
	NOT = { is_claimed_by = ROOT }
	ROOT = {
		# do Libyan release first
		OR = {
			country_exists = LBA
			has_country_flag = LBA_CONQ
			451 = { is_valid_annexation_state = no } #Ajdabiya
		}
		NOT = {
			tag = ITA
			tag = SRD
			tag = SIC
			has_country_flag = TRP_CONQ
			country_exists = TRP
		}
	}
}

#Tunisia - annexation_TUN_CONQ
can_release_tunisia = {
	state = 458 #Tunis
	is_claim_or_core_of_ROOT = no
	ROOT = {
		NOT = {
			tag = NFA
			has_country_flag = TUN_CONQ
			country_exists = TUN
			country_exists = NFA
		}
	}
}

#Ubangi Shari - annexation_CEA_CONQ
can_release_ubangi_shari = {
	state = 660 #Ubangi-Shari
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			has_country_flag = CEA_CONQ
			country_exists = CEA
		}
	}
}

#Uganda - annexation_UGA_CONQ
can_release_uganda = {
	state = 548 #Uganda
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = MAF
			has_country_flag = UGA_CONQ
			country_exists = UGA
		}
	}
}

#Zambia - annexation_ZAM_CONQ
can_release_zambia = {
	state = 813 #South Zambezia
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = MAF
			tag = BRT
			tag = BSC
			tag = MLW
			tag = NMB
			has_country_flag = ZAM_CONQ
			country_exists = ZAM
		}
	}
}

#Zimbabwe - annexation_ZIM_CONQ
can_release_zimbabwe = {
	state = 545 #Rhodesia
	is_claim_or_core_of_ROOT = no
	ROOT = {
		has_no_african_interests = yes
		NOT = {
			tag = SAF
			tag = MAF
			tag = GEX
			controls_state = 681
			has_country_flag = ZIM_CONQ
			country_exists = ZIM
		}
	}
}

### SPECIAL TRIGGERS ###
should_release_egypt_first = {
	OR = {
		country_exists = EGY
		has_country_flag = EGY_CONQ
		446 = { is_valid_annexation_state = no } #Cairo
	}
}

should_release_tanzania_first = {
	OR = {
		tag = MAF
		tag = ZZB
		country_exists = TZN
		has_country_flag = TZN_CONQ
		NOT = {
			965 = {
				is_owned_and_controlled_by = ROOT
				is_claim_or_core_of_ROOT = no
			}
		}
	}
}
