###########################
# Urundi and Ruanda Decisions
###########################
political_actions = {
	BRD_claim_maf = {
		icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = BRD }
		visible = {
			has_global_flag = MAF_collapse
		}
		available = {
			has_global_flag = MAF_collapse
			has_war = no
		}
		cost = 100
		ai_will_do = {
			factor = 0
		}
		remove_effect = {
		set_country_flag = BRD_claim_maf
		custom_effect_tooltip = KIK_gain_wargoals_tt
		every_country = {
			limit = { is_in_array = { global.MAF_collapse_tags = THIS } }
			ROOT = {
				create_wargoal = {
					type = annex_everything target = PREV
				}
			}
		}
		every_state = {
			limit = { has_state_flag = MAF_claim }
			ROOT = {
				add_state_claim = PREV
			}
		}
		every_country = {
			limit = { is_subject_of = ROOT }
			ROOT = {
				annex_country = {
					target = PREV
					transfer_troops = yes
				}
			}
		}
		unlock_decision_tooltip = AFR_form_maf
		log = "[GetDateText]: [Root.GetName]: Decision MAG_claim_maf"
		}
	}
	BRD_form_maf = {
		icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = BRD }
		visible = {
			has_global_flag = MAF_collapse
			has_country_flag = BRD_claim_maf
		}
		available = {
			has_global_flag = MAF_collapse
			owns_state = 539
			owns_state = 1183
			owns_state = 965
			owns_state = 925
			owns_state = 660
			owns_state = 927
			owns_state = 558
			owns_state = 881
			has_war = no
		}
		days_remove = 10
		cost = 0
		ai_will_do = {
			factor = 0
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision KEN_form_maf"
			custom_effect_tooltip = MAF_reform_mittelafrika_tt
			if = {
				limit = {
					has_cosmetic_tag = BRD_GERMAN
				}
				every_state = {
					limit = { has_state_flag = MAF_claim }
					ROOT = {
						add_state_core = PREV
					}
				}
				set_cosmetic_tag = COG_NEW_MAF
			}
			if = {
				limit = {
					has_country_leader = {
						name = "Mwambutsa IV Bangiricenge"
						ruling_only = yes
					}
				}
				every_state = {
					limit = { has_state_flag = MAF_claim }
					ROOT = {
						add_state_core = PREV
					}
				}
				set_cosmetic_tag = BRD_MAF
			}
		}
	}
	form_east_africa = {
		icon = infiltrate_state
		highlight_states = { highlight_state_targets = { state = 547 } }
		fire_only_once = yes
		allowed = {
			OR = {
				tag = BRD
				tag = RWA
				tag = KEN
				tag = UGA
				tag = TZN
			}
		}
		visible = {
		}
		available = {
			owns_state = 547
			owns_state = 969
			owns_state = 925
			owns_state = 970
			owns_state = 548
			owns_state = 869
			owns_state = 870
			owns_state = 965
			owns_state = 546
			owns_state = 1032
			owns_state = 918
			owns_state = 899
			owns_state = 546
		}
		days_remove = 10
		cost = 0
		ai_will_do = {
			factor = 1000
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision form_east_africa"
			547 = { remove_claim_by_ROOT_and_add_core_of_ROOT = yes }
			969 = { remove_claim_by_ROOT_and_add_core_of_ROOT = yes }
			925 = { remove_claim_by_ROOT_and_add_core_of_ROOT = yes }
			970 = { remove_claim_by_ROOT_and_add_core_of_ROOT = yes }
			965 = { remove_claim_by_ROOT_and_add_core_of_ROOT = yes }
			546 = { remove_claim_by_ROOT_and_add_core_of_ROOT = yes }
			1032 = { remove_claim_by_ROOT_and_add_core_of_ROOT = yes }
			918 = { remove_claim_by_ROOT_and_add_core_of_ROOT = yes }
			899 = { remove_claim_by_ROOT_and_add_core_of_ROOT = yes }
			546 = { remove_claim_by_ROOT_and_add_core_of_ROOT = yes }
			892 = { remove_claim_by_ROOT_and_add_core_of_ROOT = yes }
			905 = { remove_claim_by_ROOT_and_add_core_of_ROOT = yes }
			remove_cores_of_dead_tags = yes
			if = {
				limit = {
					OR = {
						AND = {
							tag = TZN
							NOT = {
								has_cosmetic_tag = TZN_GER_BUT_NOT_GOERING
							}
						}
						tag = BRD
						tag = RWA
						AND = {
							tag = UGA
							NOT = { has_cosmetic_tag = UGA_REP }
							NOT = { has_cosmetic_tag = UGA_GBR }
						}
					}
				}
				set_cosmetic_tag = ostafrika_monarchy_cosmetic
			}
			if = {
				limit = {
					OR = {
						AND = {
							tag = TZN
							has_cosmetic_tag = TZN_GER_BUT_NOT_GOERING
						}
						AND = {
							tag = KEN
							OR = {
								has_cosmetic_tag = KEN_GER_RK
								has_cosmetic_tag = KEN_GER_FREI_subject
							}
						}
					}
				}
				set_cosmetic_tag = ostafrika_ger_cosmetic
			}
			if = {
				limit = {
					OR = {
						AND = {
							tag = UGA
							OR = {
								has_cosmetic_tag = UGA_REP
								has_cosmetic_tag = UGA_GBR
							}
						}
						AND = {
							tag = KEN
							OR = {
								has_cosmetic_tag = KEN_GBR
								has_cosmetic_tag = KEN_IND
							}
						}
					}
				}
				set_cosmetic_tag = ostafrika_eng_cosmetic
			}
		}
	}
}