title_decisions = {
	set_harrenhal_liege = {
		filter = realm_owned
		ai_target_filter = owned
		is_high_prio = yes

		from_potential = {
			war = no
			higher_tier_than = DUKE
		}
		potential = {
			title = d_harrenhal
			real_tier = DUKE
			holder_scope = {
				OR = {
					character = FROM
					liege = { character = FROM }
				}
			}
		}
		allow = {
			FROM = {
				capital_scope = {
					kingdom = {
						NOT = {
							any_de_jure_vassal_title = { title = ROOT }
						}
					}
				}
			}
		}
		effect = {
			ROOT = {
				kingdom = {
					holder_scope = {
						opinion = { modifier = opinion_furious who = FROM years = 10 }
						ROOT = { add_claim = PREV }
					}
				}
			}
			FROM = {
				capital_scope = {
					kingdom = {
						ROOT = {
							de_jure_liege = PREV
						}
					}
				}
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}
}