﻿bua_can_build_university = {
	combine_into_one = yes

	check_create_action = {
		every_sub_realm_barony = {
			limit = {
				is_leased_out = no
				title_province = {
					exists = var:university
					NOT = { has_university_building_trigger = yes }
				}
			}
			try_create_important_action = {
				important_action_type = bua_can_build_university
				actor = root
				landed_title = this
			}
		}
	}
	
	effect = {
		scope:landed_title.title_province = {
			open_view_data = {
				view = holding_view
			}
		}
	}
}