﻿abdicate_to_heir_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
	}
	
	is_shown = {
		is_ruler = yes
		exists = player_heir
	}
	
	is_valid = {
		custom_description = {
			text = "must_have_valid_heir"
			exists = player_heir
			player_heir = {
				is_alive = yes
			}
		}
	}
	
	effect = {
		# Save scopes
		save_scope_as = former_ruler
		player_heir = {
			save_scope_as = new_ruler
		}
		
		# Trigger the confirmation event
		trigger_event = play_as_heir_anytime.0001
	}
	
	ai_check_interval = 0
	ai_potential = {
		always = no
	}
	
	ai_will_do = {
		base = 0
	}


	desc = abdicate_to_heir_decision_desc
	selection_tooltip = abdicate_to_heir_decision_tooltip
}
