decisions = {

invite_jews_jerusalem = {
	only_independent = yes
	is_high_prio = yes
	ai_check_interval = 60
		
		potential = {
			is_playable = yes
			independent = yes
			OR = {
				religion = jewish
				secret_religion = jewish
				trait = sympathy_judaism
			}
			NOT = { has_global_flag = invited_jews_into_jerusalem }
			NOR = {
				774 = { religion = ROOT }
				774 = { religion_group = jewish_group }
				has_character_modifier = expelled_jewish
			}
		}
		allow = {
			piety = 50
			prestige = 200
			wealth = 50
			completely_controls = c_jerusalem
		}
		effect = {
			character_event = { id = CIML.375 }
		}
		ai_will_do = {
			factor = 1
		}
}

# This decision is taken by the court physician
get_fired_due_to_jewish_trullo = {
	ai_check_interval = 48
		
		potential = {
			ai = yes
			has_minor_title = title_court_physician
			OR = {
				religion = jewish
				religion = samaritan
				religion = karaite
			}
			prisoner = no
			NOT = { has_character_flag = ciml_jewish_physician_quinisext }
		}
		allow = {
			ai = yes
			liege = {
				ai = no
				OR = {
					religion = orthodox
					religion = barlaamite
				}
			}
		}
		effect = {
			set_character_flag = ciml_jewish_physician_quinisext
			liege = {
				character_event = { id = CIML.811 }
			}
		}
		ai_will_do = {
			factor = 1
		}
}

}