political_decisions = {
	form_Magreb = {
		potential = {
			OR = {
				tag = ALD
				tag = TUN
				tag = MOR
				tag = TRI
			}
			NOT = {
				exists = MGB
			}
		}	
		allow = {
			war = no

        	1705 = { owned_by = THIS }
        	1708 = { owned_by = THIS }
        	1688 = { owned_by = THIS }
		}

		effect = {
			prestige = 10
			any_country = {
				limit = {
					OR = {
					tag = ALD
					tag = TUN
					tag = MOR
					tag = TRI }
					NOT = {
						tag = THIS
					}
				}
				annex_to = THIS
			}
			ALD = { all_core = { add_core = MGB } }
			MOR = { all_core = { add_core = MGB } }	
			TUN = { all_core = { add_core = MGB } }	
			TRI = { all_core = { add_core = MGB } }	
			years_of_research = 40
			change_tag = MGB
		}
		ai_will_do = {
			factor = 1
		}
	}

	form_al-andalus = {
		potential = {
				tag = MGB
				exists = MGB
		}	
		allow = {
			war = no
        	1700 = { owned_by = THIS }
		}

		effect = {
			prestige = 10
			MGB = { all_core = { add_core = AAN } }
			SPA_512 = { add_core = AAN }
			SPA_513 = { add_core = AAN }
			years_of_research = 40
			change_tag = AAN
		}
		ai_will_do = {
			factor = 1
		}
	}

	al-andalusian_spain = {
		potential = {
			tag = AAN
			NOT = {
				has_country_flag = spanish_andalus
			}
		}
		
		allow = {
			civilized = yes
        	512 = { owned_by = THIS }
        	513 = { owned_by = THIS }
		}
		
		effect = {
			prestige = 20
			badboy = 5
			SPA_484 = {
				add_core = AAN
			}
			SPA_503 = {
				add_core = AAN
			}
			SPA_487 = {
				add_core = AAN
			}
			set_country_flag = spanish_andalus
		}
	}
	al-andalusian_italy = {
		potential = {
			tag = AAN
			NOT = {
				has_country_flag = italian_andalus
			}
		}
		
		allow = {
			civilized = yes
        	512 = { owned_by = THIS }
        	513 = { owned_by = THIS }
		}
		
		effect = {
			prestige = 20
			badboy = 5
			SIC_763 = {
				add_core = AAN
			}
			SIC_754 = {
				add_core = AAN
			}
			SIC_753 = {
				add_core = AAN
			}
			set_country_flag = italian_andalus
		}
	}
}