﻿on_16th_birthday = {
	on_actions = {
		on_ai_16th_birthday_special
	}
}

on_ai_16th_birthday_special = {
	trigger = {
		has_game_rule = all_difficulty
		age = 16
		is_ai = yes
	}
	effect = {
		every_parent = {
			limit = {
				is_ruler = yes
				is_ai = yes
				NOT = { has_character_flag = new_heir_candidate }
			}
			add_character_flag = new_heir_candidate
		}
	}
}