﻿je_splitting_oman = {
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	group = je_group_historical_content

	complete = {
		custom_tooltip = {
			text = said_bin_sultan_al_said_dies
			ruler = {
				NOT = { has_variable = is_said_bin_sultan }
			}
			has_law = law_type:law_monarchy
		}
	}

	on_complete = {
		custom_tooltip = omani_realm_splits
		if = {
			limit = {
				exists = c:OMA
				c:OMA = ROOT
			}
			trigger_event = { id = zanzibar.1 }
		}
	}
	
	# no monthly pulse to kill the sultan.

	invalid = {
		OR = {
			NOT = { exists = c:OMA }
			NOT = { has_law = law_type:law_monarchy }
			exists = c:ZAN
		}
	}

	weight = 10

	should_be_pinned_by_default = yes
}
