country_decisions = {

	persian_zoroastrian_nation = {
		major = yes
		potential = {
			was_never_end_game_tag_trigger = yes
			NOT = { has_country_flag = formed_persia_zoroastrian_flag }
			OR = {
				ai = no
				is_playing_custom_nation = no
			}
			OR = {
				ai = no
				NOT = { exists = PR1 }
			}
			NOT = { tag = PRT }
			NOT = { tag = ERS }		#changed from SAS tag for Sassanids in 1.36
			NOT = { tag = IRA }
			NOT = { tag = PER }
			NOT = { tag = HLR }
			NOT = { tag = ROM }
			NOT = { tag = PAP }
			NOT = { tag = TUR }
			NOT = { tag = BYZ }
			NOT = { tag = ARB }
			OR = {
				religion_group = iranian	#includes Zoroastrian
				religion_group = mesopotamian
			}
			OR = {
				culture_group = iranian
				primary_culture = azerbaijani
				tag = AKK
			}
			is_colonial_nation = no
			OR = {
				is_former_colonial_nation = no
				AND = {
					is_former_colonial_nation = yes
					ai = no
				}
			}
		}
		provinces_to_highlight = {
			OR = {
				province_id = 2218 		#Persepolis
				province_id = 414		# Hamadan
				province_id = 429		# Isfahan
				province_id = 433		# Yazd
				province_id = 2213		# Qom
				province_id = 2215		# Qazvin
				AND = {
					province_id = 426
					ROOT = { NOT = { owns_core_province = 2218 } }
				}
				AND = {
					province_id = 2218
					ROOT = { NOT = { owns_core_province = 426 } }
				}
				AND = {
					province_id = 416
					ROOT = { NOT = { owns_core_province = 432 } }
					ROOT = { NOT = { owns_core_province = 2221 } }
				}
				AND = {
					province_id = 432
					ROOT = { NOT = { owns_core_province = 416 } }
					ROOT = { NOT = { owns_core_province = 2221 } }
				}
				AND = {
					province_id = 2221
					ROOT = { NOT = { owns_core_province = 416 } }
					ROOT = { NOT = { owns_core_province = 432 } }
				}
			}
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
			}
		}
		allow = {
			is_free_or_tributary_trigger = yes
			is_nomad = no
			is_at_war = no
			is_tribal = no
			NOT = { exists = PR1 }
			owns_core_province = 2218 		# Persepolis, added for Zoroastrian
			owns_core_province = 414		# Hamadan
			owns_core_province = 429		# Isfahan
			owns_core_province = 433		# Yazd
			owns_core_province = 2213		# Qom
			owns_core_province = 2215		# Qazvin
			OR = {
				owns_core_province = 426		# Amol
				owns_core_province = 2218		# Shiraz
			}
			OR = {
				owns_core_province = 416		# Tabriz
				owns_core_province = 432		# Kerman
				owns_core_province = 2221		# Mashhad
			}
		}
		effect = {
			change_tag = PR1
			remove_non_electors_emperors_from_empire_effect = yes
			if = {
				limit = {
					NOT = {
						government = monarchy
					}
				}
				change_government = monarchy
			}
			set_government_rank = 3
			persia_region = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			add_country_modifier = {
				name = "centralization_modifier"
				duration = 7300
			}
			add_prestige = 25
			if = {
				limit = {
					NOT = { primary_culture = persian }
				}
				change_primary_culture = persian
			}
			set_country_flag = formed_persia_zoroastrian_flag
			
			#Removed until add own mod ideas
			#if = {
			#	limit = { has_custom_ideas = no }
			#	country_event = { id = ideagroups.1 } #Swap Ideas
			#}
		}
		ai_will_do = {
			factor = 1
			modifier = {
	 			factor = 0
	 			OR = {
					tag = ILK
					tag = KHW
					tag = PRT
					tag = ERS
					tag = ASY
					tag = BAB
				}
			}
		}
		ai_importance = 400
	}
	
	
}
