﻿holder_voting_pattern_lwxxx_last_will_elective_modifier = {
	##########################	Holder voting pattern	##########################
	modifier = { #Current ruler will always try to elect his player heir before everybody else.
		add = 50
		desc = tooltip_feudal_holder_elector_vote_player_heir
		player_heir = scope:candidate
		NOT = { player_heir = root }
	}
	modifier = { #Current ruler should prefer his own children.
		desc = tooltip_feudal_holder_elector_vote_not_child
		add = {
			subtract = 50
			if = { #Even less so if not same House.
				limit = {
					exists = root.house
					exists = scope:candidate.house
					NOT = {
						root.house = scope:candidate.house
					}
				}
				subtract = 50
			}
			if = { #Even less so if not same Dynasty.
				limit = {
					exists = root.dynasty
					exists = scope:candidate.dynasty
					NOT = {
						root.dynasty = scope:candidate.dynasty
					}
				}
				subtract = 150
			}
		}
		scope:holder = {
			this = root
			NOT = {
				scope:candidate = {
					is_child_of = scope:holder
				}
			}
		}
	}
}
