targetted_decisions = {
	build_dragon_pit = {
		filter = self
		ai_target_filter = self
		is_high_prio = yes

		potential = {
			prisoner = no
			age = 14
			is_ruler = yes
			OR = {
				trait = dragon_egg
				trait = dragon_rider
			}
			OR = {
				is_feudal = yes
				is_patrician = yes
			}
			NOR = {
				capital_holding = {
					has_building = ca_dragon_pit
					NOT = { title = b_stone_drum }
				}
				family_palace = {
					has_building = fp_dragon_pit
				}
			}
		}

		allow = {
			OR = {
				trait = shy
				trait = weak
				trait = craven
				trait = arbitrary
				is_ill = yes
			}
		}

		effect = {
			IF = {
				limit = { is_feudal = yes }
				capital_holding = {
					add_building = ca_dragon_pit
				}
			}
			IF = {
				limit = { is_patrician = yes }
				family_palace = {
					add_building = fp_dragon_pit
				}
			}
		}
		ai_will_do = {
			factor = 0.2
		}
	}
	destroy_dragon_pit = {
		filter = self
		ai_target_filter = self
		is_high_prio = yes

		potential = {
			prisoner = no
			age = 14
			is_ruler = yes
			OR = {
				trait = dragon_egg
				trait = dragon_rider
			}
			OR = {
				is_feudal = yes
				is_patrician = yes
			}
			OR = {
				capital_holding = {
					has_building = ca_dragon_pit
				}
				family_palace = {
					has_building = fp_dragon_pit
				}
			}
		}

		allow = {
			NOR = {
				trait = shy
				trait = weak
				trait = craven
				trait = arbitrary
				is_ill = yes
			}
		}

		effect = {
			IF = {
				limit = { is_feudal = yes }
				capital_holding = {
					remove_building = ca_dragon_pit
				}
			}
			IF = {
				limit = { is_patrician = yes }
				family_palace = {
					remove_building = fp_dragon_pit
				}
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
}