﻿#I think this is deprecated
declare_autocephaly_scripted_effect = {
	root.faith = {
		change_fervor = {
			value = 20
			desc = fervor_gain_autocephaly
		}
		add_doctrine = orthodox_autocephaly_autocephalous
	}

	faith:orthodox = {
		change_fervor = {
			value = -15
			desc = fervor_loss_autocephaly
		}
	}
}

restore_roman_patriarchate_scripted_effect = {
	faith:roman_orthodox = {
		add_doctrine = orthodox_autocephaly_pentarch
		add_doctrine = special_doctrine_ecumenical_christian
		remove_doctrine = unavailable_doctrine
	}
	religion:christianity_religion = {
		every_faith = {
			limit = {
				this.religion = root.faith.religion
				has_doctrine = orthodox_autocephaly_autocephalous
			}
			change_fervor = {
				value = 10
				desc = fervor_loss_roman_patriarchate
			}
		}
	}

	every_ruler = {
		limit = {
			faith = faith:catholic
		}
		trigger_event = autocephaly_decision.0021
	}
	faith:catholic = {
		change_fervor = {
			value = -25
			desc = fervor_loss_roman_patriarchate
		}
	}
}

restore_school_of_edessa_scripted_effect = {
	religion:christianity_religion = {
		every_faith = {
			limit = {
				AND = {
					has_doctrine = doctrine_christology_nestorian
					NOT = { faith = faith:messalian }
				}
			}
			add_doctrine = nestorian_autocephaly_autocephalous
			add_doctrine = special_doctrine_ecumenical_christian
			activate_holy_site = edessa
		}
	}
}