﻿# this = the human ruler, $RULER$ = another ruler.
# True when the two are married or betrothed to each other (a direct ruler union). Unlike
# nmt_direct_ruler_union_trigger this needs no saved scopes, so the alliance sweep can use it.
# A direct union keeps the game's own alliance, so the mod never cancels it.
nmt_is_direct_partner_trigger = {
	OR = {
		any_spouse = { this = $RULER$ }
		betrothed = $RULER$
	}
}

# this = the human ruler. The player has their own bond with $RULER$: a direct marriage,
# a choice made or waiting for them, or an alliance chosen (e.g. Propose Alliance to In-Law).
nmt_has_own_bond_with_trigger = {
	OR = {
		nmt_is_direct_partner_trigger = { RULER = $RULER$ }
		is_target_in_variable_list = { name = nmt_partners_v2 target = $RULER$ }
		is_target_in_variable_list = { name = nmt_pending_partners_v2 target = $RULER$ }
		is_target_in_variable_list = { name = nmt_choice_alliance_v1 target = $RULER$ }
	}
}
