﻿any_valid_title_to_grant_trigger = {
	# IMPORTANT!
	# The is_valid_showing_failures_only of support_candidacy_interaction doesn't use this
	# It uses a cloned version that has been optimized for AI usage
	# Please update that one too if you're updating this one
	$CANDIDATE$ ?= {
		save_temporary_scope_as = candidate_temp
		custom_tooltip = {
			text = support_candidacy_can_appoint_for_title_tt
			$TOP_LIEGE$.primary_title = {
				any_in_de_jure_hierarchy = {
					continue = {
						tier > tier_duchy
					}

					save_temporary_scope_as = title_temp
					scope:candidate_temp = { 
					OR = {
					AND = { 
					scope:title_temp.tier < tier_duchy
					NOT = { has_trait = slave }
					}
					can_appoint_for_title = scope:title_temp 
					} 
					}
				}
			}
		}
	}
}
