﻿# Overrides action_empty_council_position from 00_realm_actions.txt
# since that doesn't seem to respect whether or not council positions
# are valid for a given council.
action_empty_council_position = {
	type = alert

	check_create_action = {
		if = {
			limit = {
				highest_held_title_tier > tier_barony
				has_free_council_slot = yes
				has_default_council_position_empty = yes
			}
			try_create_important_action = {
				important_action_type = action_empty_council_position
				actor = root
			}
		}
	}

	effect = {
		scope:actor = {
			open_view_data = {
				view = council_window
			}
		}
	}
}

# Handles empty council position for new positions.
action_empty_regula_council_position = {
	type = alert

	check_create_action = {
		if = {
			limit = {
				highest_held_title_tier > tier_barony
				has_free_council_slot = yes
				has_regula_council_position_empty = yes
			}
			try_create_important_action = {
				important_action_type = action_empty_regula_council_position
				actor = root
			}
		}
	}

	effect = {
		scope:actor = {
			open_view_data = {
				view = council_window
			}
		}
	}
}
