mid_east_fed = {
	enable = {
			has_country_flag = alliance_with_ISR
		}
	ai_strategy = {
		type = befriend
		id = "ISR"
		value = 1000
	}
	ai_strategy = {
		type = alliance
		id = "ISR"
		value = 1000
	}
}

sov_union_stuff = {
	enable = {
		has_country_flag = has_joined_CSTO_by_event
	}
	
	abort = {
		has_country_flag = left_CSTO
	}
	ai_strategy = {
		type = befriend
		id = "SOV"
		value = 1000
	}
	ai_strategy = {
		type = alliance
		id = "SOV"
		value = 1000
	}
}

sov_union_stuff2 = {
	enable = {
		has_country_flag = has_joined_WP_by_event
	}
	
	abort = {
		has_country_flag = left_WP
	}
	ai_strategy = {
		type = befriend
		id = "SOV"
		value = 1000
	}
	ai_strategy = {
		type = alliance
		id = "SOV"
		value = 1000
	}
}

sov_union_stuff3 = {
	enable = {
		AND = {
			has_government = islamist
			NOT = { has_country_flag = has_joined_WP_by_event }
		}
		
	}
	
	abort = {
		NOT = { has_government = islamist }
	}
	ai_strategy = {
		type = befriend
		id = "SOV"
		value = -1000
	}
	ai_strategy = {
		type = alliance
		id = "SOV"
		value = -1000
	}
	ai_strategy = {
		type = ignore
		id = "SOV"
		value = -1000
	}
}


prc_stuff = {
	enable = {
		has_country_flag = has_joined_AEDU_by_event
	}
	
	abort = {
		has_country_flag = left_AEDU
	}
	ai_strategy = {
		type = befriend
		id = "PRC"
		value = 1000
	}
	ai_strategy = {
		type = alliance
		id = "PRC"
		value = 1000
	}
}

seek_WP_membership = {
	
	enable = {
	
		NOT = { tag = SOV }
		
		SOV = { is_in_faction = yes }
		
		has_country_flag = has_joined_WP_by_event
		NOT = { has_country_flag = neutralWPNATO }
		has_global_flag = second_warsaw_pact
		
		OR = {
			has_government = monarchist
			has_government = nationalist
			has_government = communist
			has_government = market_liberal
			has_government = social_liberal
			has_government = social_democrat
			has_government = democratic_socialist

		}
		
	}
	
	abort = {
		OR = {
			has_war_with = SOV
			SOV = { is_in_faction = no }
			OR = {
				has_government = fascist
				has_government = islamist
				has_country_flag = neutralWPNATO
			}
			OR = {
				SOV = { has_government = fascist }
				
			}
			SOV = { exists = no }
			has_country_flag = leftWP
		    has_country_flag = neutralWPNATO
		}
	}
	
	ai_strategy = {
		type = befriend
		id = "SOV"
		value = 1000
	}
	ai_strategy = {
		type = alliance
		id = "SOV"
		value = 1000
	}
}

seek_WP_membership2 = {
	
	enable = {
	
		NOT = { tag = SOV }
		
		SOV = { is_in_faction = yes }
		
		has_global_flag = second_warsaw_pact
		
		AND = {
			has_government = communist
			capital_scope = { is_on_continent = europe }
		}
		
	}
	
	abort = {
		OR = {
			has_war_with = SOV
			SOV = { is_in_faction = no }
			NOT = { has_government = communist }
			NOT = { SOV = { has_government = communist }}
			SOV = { exists = no }
			has_country_flag = leftWP
		    has_country_flag = neutralWPNATO
		}
	}
	
	ai_strategy = {
		type = befriend
		id = "SOV"
		value = 1000
	}
	ai_strategy = {
		type = alliance
		id = "SOV"
		value = 1000
	}

	ai_strategy = {
		type = alliance
		id = "USA"
		value = -1000
	}

}