decisions = {
	abdicate_to_heir = {
		is_high_prio = yes
		potential = {
			always = no
			has_regent = yes
			OR = {
				current_heir = {
					dynasty = ROOT
				}
				ai = no
			}
		}
		allow = {			
			OR = {
				trait = incapable
				AND = {
					prisoner = yes
					OR = {
						war = no
						imprisoned_days = 100
					}
				}
			}
			current_heir = { prisoner = no }
		}
		effect = {
			abdicate = yes
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}
}

