﻿action_military_heir_invalid = {
	type = alert

	check_create_action = {
		if = {
			limit = {				
				has_government = military_command				
				primary_title = {
					current_heir = {
						NOT = { eligible_for_military_appointment_trigger = { APPOINTEE = root.liege } }
						NOT = { this = root.liege }
					}
				}
			}
			try_create_important_action = {
				important_action_type = action_military_heir_invalid
				actor = root
				recipient = primary_title.current_heir
			}
		}
	}

	effect = {
		scope:recipient = {
			open_view_data = {
				view = character
			}
		}
	}
}


