﻿# Retain CK3's direct-ruler alliance. Never create, break or replace a pact here.
# Separate notice history allows an older family choice to become a direct union.
nmt_handle_direct_ruler_union_effect = {
	nmt_mark_choice_completed_effect = { RULER = $RULER$ }
	set_variable = nmt_trace_direct_union
	if = {
		limit = {
			NOT = { is_target_in_variable_list = { name = nmt_direct_union_notices target = $RULER$ } }
		}
		add_to_variable_list = { name = nmt_direct_union_notices target = $RULER$ }
		send_interface_toast = {
			type = event_toast_effect_neutral
			title = nmt_direct_union_notice_title
			custom_tooltip = nmt_direct_union_notice_details
			left_icon = $RULER$
		}
	}
}
