targetted_decisions = {
	wuxingheal = { 
		ai_target_filter = realm#court
		filter = realm#court
		is_in_society = yes
		
		from_potential = {
			AND = {
			society_member_of = wuxing
			society_rank == 5
			}
		}

		potential = {
			society_member_of = wuxing
		}
					
		allow = { 	
			OR = {
			trait = cancer
			trait = infection
			trait = flu
			trait = dysentery			
			trait = gout
			trait = leper
			trait = rabies
			trait = pneumonic
			trait = syphilitic
			trait = has_tuberculosis
			trait = has_typhoid_fever		
			trait = has_typhus
			trait = has_measles
			trait = has_small_pox
			trait = has_bubonic_plague
			}		
			FROM = {
			society_currency >= 1000
			}
		}
				
		effect = {
		if = {
			limit = {
				trait = cancer
			}
			remove_trait = cancer
		}
		if = {
			limit = {
				trait = infection
			}
			remove_trait = infection
		}
		if = {
			limit = {
				trait = flu
			}
			remove_trait = flu
		}
		if = {
			limit = {
				trait = dysentery
			}
			remove_trait = dysentery
		}
		if = {
			limit = {
				trait = gout
			}
			remove_trait = gout
		}
		if = {
			limit = {
				trait = leper
			}
			remove_trait = leper
		}
		if = {
			limit = {
				trait = rabies
			}
			remove_trait = rabies
		}
		if = {
			limit = {
				trait = pneumonic
			}
			remove_trait = pneumonic
		}
		if = {
			limit = {
				trait = syphilitic
			}
			remove_trait = syphilitic
		}
		if = {
			limit = {
				trait = has_tuberculosis
			}
			remove_trait = has_tuberculosis
		}
		if = {
			limit = {
				trait = has_typhoid_fever
			}
			remove_trait = has_typhoid_fever
		}
		if = {
			limit = {
				trait = has_typhus
			}
			remove_trait = has_typhus
		}
		if = {
			limit = {
				trait = has_measles
			}
			remove_trait = has_measles
		}
		if = {
			limit = {
				trait = has_small_pox
			}
			remove_trait = has_small_pox
		}
		if = {
			limit = {
				trait = has_bubonic_plague
			}
			remove_trait = has_bubonic_plague
		}
			FROM = { 
			change_society_currency = -1000
			}
			opinion = {										###opinion mostly serves as a 10 years cooldown ; +10 Opinion
				who = FROM
				modifier = opinion_jiumin
				years = 10
			}
		}			
		ai_will_do = { 
			factor = 0
		} 
	}
	
	wuxingheal1 = { 
		filter = self
		ai_target_filter = self
		is_in_society = yes
		
		from_potential = {
			AND = {
			society_member_of = wuxing
			society_rank == 5
			}
		}

		potential = {
			society_member_of = wuxing
		}
					
		allow = { 	
			OR = {
			trait = cancer
			trait = infection
			trait = flu
			trait = dysentery			
			trait = gout
			trait = leper
			trait = rabies
			trait = pneumonic
			trait = syphilitic
			trait = has_tuberculosis
			trait = has_typhoid_fever		
			trait = has_typhus
			trait = has_measles
			trait = has_small_pox
			trait = has_bubonic_plague
			}		
			FROM = {
			society_currency >= 1000
			}
		}
				
		effect = {
		if = {
			limit = {
				trait = cancer
			}
			remove_trait = cancer
		}
		if = {
			limit = {
				trait = infection
			}
			remove_trait = infection
		}
		if = {
			limit = {
				trait = flu
			}
			remove_trait = flu
		}
		if = {
			limit = {
				trait = dysentery
			}
			remove_trait = dysentery
		}
		if = {
			limit = {
				trait = gout
			}
			remove_trait = gout
		}
		if = {
			limit = {
				trait = leper
			}
			remove_trait = leper
		}
		if = {
			limit = {
				trait = rabies
			}
			remove_trait = rabies
		}
		if = {
			limit = {
				trait = pneumonic
			}
			remove_trait = pneumonic
		}
		if = {
			limit = {
				trait = syphilitic
			}
			remove_trait = syphilitic
		}
		if = {
			limit = {
				trait = has_tuberculosis
			}
			remove_trait = has_tuberculosis
		}
		if = {
			limit = {
				trait = has_typhoid_fever
			}
			remove_trait = has_typhoid_fever
		}
		if = {
			limit = {
				trait = has_typhus
			}
			remove_trait = has_typhus
		}
		if = {
			limit = {
				trait = has_measles
			}
			remove_trait = has_measles
		}
		if = {
			limit = {
				trait = has_small_pox
			}
			remove_trait = has_small_pox
		}
		if = {
			limit = {
				trait = has_bubonic_plague
			}
			remove_trait = has_bubonic_plague
		}
			FROM = { 
			change_society_currency = -1000
			}
		}			
		ai_will_do = { 
			factor = 1
		} 
	}
	
	yinyangheal = { 
		ai_target_filter = realm#court
		filter = realm#court
		is_in_society = yes
		
		from_potential = {
			AND = {
			society_member_of = yinyang
			society_rank == 5
			}
		}

		potential = {
			NOT = { society_member_of = yinyang }
		}
					
		allow = { 			
			FROM = {
			society_currency >= 1000
			}
		}

		effect = {
			random_list = {
				10 = {
				add_trait = malaise
				}
				10 = {
				add_trait = fatigue
				}
				10 = {
				add_trait = abdominal_pain
				}
				10 = {
				add_trait = headache
				}
				10 = {
				add_trait = rash
				}
				10 = {
				add_trait = cough
				}
				10 = {
				add_trait = fever
				}
				10 = {
				add_trait = cancer
				}
				10 = {
				add_trait = rabies
				}
				10 = {
				add_trait = has_bubonic_plague
				}
			} 
			FROM = { 
			change_society_currency = -1000
			}
		}			
		ai_will_do = { 
			factor = 0
		} 
	}
	
	yqwuxing = { 
		ai_target_filter = realm#court
		filter = realm#court
		is_in_society = yes
		
		from_potential = {
			AND = {
			society_member_of = wuxing
			society_rank >= 4
			}
		}

		potential = {
			is_in_society = no
			is_close_relative = FROM
			NOT = { has_character_flag = society_join_block }
		}
					
		allow = { 
			is_adult = yes
			same_realm = FROM
			FROM = {
			has_society_currency_medium_trigger = yes
			}
		}
				
		effect = {
			join_society = wuxing#leave_society = yes#set_character_flag = betrayed_wuxing
			clr_character_flag = society_join_block
			FROM = { detract_society_currency_medium_effect = yes }
		}			
		ai_will_do = { 
			factor = 1
		} 
	}

}