targetted_decisions = {

	mta_specific_execution = {
		ai = no 
		only_playable = yes

		filter = court

		from_potential = {
			has_dlc = "Reapers"
			prisoner = no
			NOT = { trait = incapable }
		}

		potential = {
			host = { character = FROM }
			prisoner = yes
			NOT = { has_character_modifier = on_trial }
		}

		allow = {
			NOT = { diplomatic_immunity = yes }
			prisoner = yes
		}

		effect = {
			ROOT = { #The one being executed
				save_event_target_as = mta_executed
			}
			FROM = { #The one ordering the execution
				save_event_target_as = mta_executioner
				character_event = { id = "mta.3" }
			}
			hidden_tooltip = {

				mother = {
					opinion = {
						modifier = opinion_executed_child
						who = FROM
					}
				}
				father = {
					opinion = {
						modifier = opinion_executed_child
						who = FROM
					}
				}
				spouse = {
					opinion = {
						modifier = opinion_executed_kinsman
						who = FROM
					}
				}
				any_child = {
					opinion = {
						modifier = opinion_executed_kinsman
						who = FROM
					}
				}
				if = {
					limit = {
						FROM = {
							NOT = { dynasty = ROOT }
							NOT = { sibling = ROOT }
						}
					}
					any_sibling = {
						opinion = {
							modifier = opinion_killed_close_kin
							who = FROM
						}
					}
					any_dynasty_member = {
						opinion = {
							modifier = opinion_killed_close_kin
							who = FROM
						}
					}
				}
			}
		}
		
		revoke_allowed = {
			always = no
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	mta_specific_mutilation = {
		ai = no 
		only_playable = yes

		filter = court

		from_potential = {
			has_dlc = "Reapers"
			capital_holding = {
			has_building = ca_secret_lair
				}
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
		}

		potential = {
			host = { character = FROM }
			prisoner = yes
			age = 13
			NOT = { has_character_modifier = on_trial }

		}

		allow = {
			NOT = { diplomatic_immunity = yes }
			prisoner = yes
		}

		effect = {
			ROOT = { #The one being mutilated
				save_event_target_as = mta_mutilation_root
			}
			FROM = { #The one doing the mutilation
				save_event_target_as = mta_mutilation_from
				character_event = { id = "mta.2" }
			}
			hidden_tooltip = {
				ROOT = {
					opinion = {
						modifier = opinion_mutilated_me
						who = FROM
					}
				}
				mother = {
					opinion = {
						modifier = opinion_mutilated_close_kin
						who = FROM
					}
				}
				father = {
					opinion = {
						modifier = opinion_mutilated_close_kin
						who = FROM
					}
				}
				spouse = {
					opinion = {
						modifier = opinion_mutilated_close_kin
						who = FROM
					}
				}
				any_child = {
					opinion = {
						modifier = opinion_mutilated_close_kin
						who = FROM
					}
				}
				if = {
					limit = {
						FROM = {
							NOT = { dynasty = ROOT }
							NOT = { sibling = ROOT }
						}
					}
					any_sibling = {
						opinion = {
							modifier = opinion_mutilated_family
							who = FROM
						}
					}
					any_dynasty_member = {
						opinion = {
							modifier = opinion_mutilated_family
							who = FROM
						}
					}
				}
			}
		}
		
		revoke_allowed = {
			always = no
		}

		ai_will_do = {
			factor = 0
		}
	}

}