set_leader_SHB = {

	if = { limit = { has_country_flag = set_Caliphate }

		if = { limit = { check_variable = { Caliphate_leader = 0 } }
			set_variable = { Caliphate_leader = 1 }
			kill_country_leader = yes

			create_country_leader = {
				name = "Ahmad Umar"
				picture = "Ahmad_Umar.dds"
				ideology = Caliphate
				traits = {
					salafist_Caliphate
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Caliphate_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
	}
}