﻿mend_antioch_schism_scripted_effect = {
	root.faith = {
		change_fervor = {
			value = 25
			desc = fervor_gained_antioch_schism
		}
	}
	every_player = {
		limit = {
			NOT = { this = root }
			faith = root.faith
		}
		trigger_event = antioch_schism.0100
	}
	every_ruler = {
		limit = {
			faith.religion = root.faith.religion
			NOT = { faith = root.faith }
			NOT = { has_government = theocracy_government }
			NOT = { this = this.faith.religious_head }
			faith = {
				has_doctrine = special_doctrine_ecumenical_christian
			}
		}
		trigger_event = antioch_schism.0101
	}
	every_player = {
		limit = {
			OR = {
				AND = { #Either filthy heretics...
					faith.religion = root.faith.religion
					faith = { NOT = { has_doctrine = special_doctrine_ecumenical_christian } }
				}
				NOT = { faith.religion = root.faith.religion } #...Or Heathens.
			}
		}
		trigger_event = antioch_schism.0102
	}
	faith:jacobite = {
		if = {
			limit = {
				NOT = { this = root.faith }
			}
			remove_doctrine = special_doctrine_ecumenical_christian
			change_fervor = {
				value = -40
				desc = fervor_loss_antioch_schism
			}
		}
	}
	faith:maronite = {
		if = {
			limit = {
				NOT = { this = root.faith }
			}
			remove_doctrine = special_doctrine_ecumenical_christian
			change_fervor = {
				value = -40
				desc = fervor_loss_antioch_schism
			}
		}
	}
	faith:melkite = {
		if = {
			limit = {
				NOT = { this = root.faith }
			}
			remove_doctrine = special_doctrine_ecumenical_christian
			change_fervor = {
				value = -40
				desc = fervor_loss_antioch_schism
			}
		}
	}
	faith:nestorian = {
	if = {
			limit = {
				NOT = { this = root.faith }
			}
			change_fervor = {
				value = -20
				desc = fervor_loss_antioch_schism
			}
		}
	}
}