# Forked Minds
# Scope: leader. May this leader be the source of a fork?
# The one definition of "eligible", used by the edict, the event options and the effect.
# Never eligible:
# - the ruler, of any empire type: ruler-only traits (such as the gestalt ruler's
#   leader_trait_ruler_machine_intelligence) are invalid on an ordinary leader;
# - a forked instance (the trait is the reliable marker; the flag is kept as a second one);
# - a gestalt council node.
apb_can_be_forked = {
	NOR = {
		is_ruler = yes
		has_trait = leader_trait_apb_forked_instance
		has_leader_flag = apb_forked_instance
		is_gestalt_node = yes
	}
}

# Scope: leader. Is this leader a forked instance?
apb_is_forked_instance = {
	OR = {
		has_trait = leader_trait_apb_forked_instance
		has_leader_flag = apb_forked_instance
	}
}
