
namespace = HAMANE_SUCCESSIONS

#
character_event = {
	id = HAMANE_SUCCESSIONS.1
	hide_window = yes
	
	is_triggered_only = yes
	
	trigger = {
		is_save_game = no
		any_demesne_title = {
			OR = {
				title = c_bulgar
				title = c_itil
			}
		}
		any_owned_bloodline = {
			has_bloodline_flag = hamane
		}
		independent = yes
		is_nomadic = yes
	}
	
	immediate = {
		if = {
			limit = {
				any_demesne_title = {
					title = c_itil
				}
			}
			primary_title = {
				add_law = {
					law = succ_primogeniture
					cooldown = no
					opinion_effect = no
				}
			}
		}
		else = {
			primary_title = {
				add_law = {
					law = succ_turkish_succession
					cooldown = no
					opinion_effect = no
				}
			}
		}
	}
}