decisions = {
	
	unify_islam_sunni = {
		is_high_prio = yes
		potential = {
			age = 16
			prisoner = no
			NOT = { trait = incapable }
			has_landed_title = d_sunni
			NOT = { has_global_flag = uimod_islam_unified }
			religion = sunni
		}
		allow = {
			war = no
			piety = 2000
			religion_authority = 0.9
			completely_controls = c_cordoba
			b_cordoba = { holder_scope = { religion = sunni } }
			completely_controls = c_mecca
			b_mecca = { holder_scope = { religion = sunni } }
			completely_controls = c_medina
			b_medina = { holder_scope = { religion = sunni } }
			completely_controls = c_jerusalem
			b_jerusalem = { holder_scope = { religion = sunni } }
			completely_controls = c_baghdad
			b_bagdad = { holder_scope = { religion = sunni } }
			completely_controls = c_debul
			b_landhi = { holder_scope = { religion = sunni } }
			completely_controls = c_esfahan
			b_khansar = { holder_scope = { religion = sunni } }
			completely_controls = c_palermo
			b_cefalu = { holder_scope = { religion = sunni } }
			completely_controls = c_damascus
			b_damascus = { holder_scope = { religion = sunni } }
			completely_controls = c_samarkand
			b_khokand = { holder_scope = { religion = sunni } }
			completely_controls = c_ifni
			completely_controls = c_muscat
			b_samail = { holder_scope = { religion = sunni } }
		}
		effect = {
			narrative_event = { id = UIMOD.002 tooltip = UIMOD_EVTTOOLTIP.001 }
			set_global_flag = uimod_islam_unified
		}
		ai_will_do = {
			factor = 1
		}
	}
	
	unify_islam_shiite = {
		is_high_prio = yes
		potential = {
			age = 16
			prisoner = no
			NOT = { trait = incapable }
			has_landed_title = d_shiite
			NOT = { has_global_flag = uimod_islam_unified }
			religion = shiite
			
		}
		allow = {
			war = no
			piety = 2000
			religion_authority = 0.9
			completely_controls = c_cordoba
			b_cordoba = { holder_scope = { religion = shiite } }
			completely_controls = c_mecca
			b_mecca = { holder_scope = { religion = shiite } }
			completely_controls = c_medina
			b_medina = { holder_scope = { religion = shiite } }
			completely_controls = c_jerusalem
			b_jerusalem = { holder_scope = { religion = shiite } }
			completely_controls = c_baghdad
			b_bagdad = { holder_scope = { religion = shiite } }
			completely_controls = c_debul
			b_landhi = { holder_scope = { religion = shiite } }
			completely_controls = c_esfahan
			b_khansar = { holder_scope = { religion = shiite } }
			completely_controls = c_palermo
			b_cefalu = { holder_scope = { religion = shiite } }
			completely_controls = c_damascus
			b_damascus = { holder_scope = { religion = shiite } }
			completely_controls = c_samarkand
			b_khokand = { holder_scope = { religion = shiite } }
			completely_controls = c_ifni
			completely_controls = c_muscat
			b_samail = { holder_scope = { religion = shiite } }
		}
		effect = {
			narrative_event = { id = UIMOD.003 tooltip = UIMOD_EVTTOOLTIP.001 }
			set_global_flag = uimod_islam_unified
		}
		ai_will_do = {
			factor = 1
		}
	}
}