

GER_kill_POL_assstab = {

	allowed = {
		OR = {
			tag = GER
		}
	}
	enable = {
		has_global_flag = rebellious_poland
		NOT = { POL = { has_idea = anti_soviet_pact } }
		has_government = fascism
		NOT = { POL = { is_in_faction_with = GER } }
		OR = {
			POL = { is_faction_leader = yes } 
			POL = { is_in_faction = no }
		}
		NOT = { has_war_with = POL }
		POL = { has_war = yes }
		NOT = { surrender_progress > 0 }
		NOT = {
			any_country = {
				is_in_faction_with = GER
				is_faction_leader = yes
				surrender_progress > 0
			}
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = antagonize
		id = POL
		value = 2500 # we hateses them filthy Vichy Frenches
	}
	ai_strategy = {
		type = declare_war
		id = POL
		value = 500 # we hateses them filthy Vichy Frenches. strategy >= 500 forces declaration
	}
	ai_strategy = {
		type = prepare_for_war
		id = POL
		value = 200 # we hateses them filthy Vichy Frenches. strategy >= 500 forces declaration
	}
}
SOV_kill_POL_cuz_necessary = {

	allowed = {
		OR = {
			original_tag = SOV
		}
	}
	enable = {
		NOT = { 85 = { is_owned_by = POL } }
		has_war_with = GER
		NOT = { POL = { has_war_with = SOV } }
		NOT = { POL = { has_war_with = GER } }
		is_neighbor_of = GER
		is_neighbor_of = POL
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = antagonize
		id = POL
		value = 2500 # we hateses them filthy Vichy Frenches
	}
	ai_strategy = {
		type = declare_war
		id = POL
		value = 500 # we hateses them filthy Vichy Frenches. strategy >= 500 forces declaration
	}
	ai_strategy = {
		type = prepare_for_war
		id = POL
		value = 200 # we hateses them filthy Vichy Frenches. strategy >= 500 forces declaration
	}
}

ITA_kill_GRE = {

	allowed = {
		OR = {
			tag = ITA
			tag = BUL
			tag = TUR
			tag = YUG
		}
	}
	enable = {
		OR = { 
			AND = {
				original_tag = ITA
				date > 1940.10.10
				is_in_faction = yes
			}
			AND = {
				OR = {
					original_tag = BUL
					original_tag = YUG
					original_tag = TUR
				}
				has_war = yes
				is_in_faction = yes
				OR = { 
					NOT = { country_exists = FRA }
					FRA = { has_capitulated = yes }
				}
				OR = { 
					NOT = { country_exists = YUG }
					YUG = { has_capitulated = yes }
				}
			}
		}
		NOT = { has_war_with = GRE }
		NOT = { is_in_faction_with = GRE }
		can_declare_war_on = GRE
		is_historical_focus_on = yes
		NOT = { surrender_progress > 0 }
		NOT = {
			any_country = {
				is_in_faction_with = ROOT
				is_faction_leader = yes
				surrender_progress > 0
			}
		}
		NOT = {
			AND = {
				is_in_faction_with = GER
				any_country = {
					is_neighbor_of = GER
					has_war_with = GER
					is_major = yes
					has_capitulated = no
				}
			}
		}
		NOT = {
			AND = {
				is_in_faction_with = ITA
				any_country = {
					is_neighbor_of = ITA
					has_war_with = ITA
					is_major = yes
					has_capitulated = no
				}
			}
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = antagonize
		id = GRE
		value = 2500 # we hateses them filthy Vichy Frenches
	}
	ai_strategy = {
		type = declare_war
		id = GRE
		value = 500
	}
	ai_strategy = {
		type = prepare_for_war
		id = GRE
		value = 200
	}
}
Axis_kill_YUG = {

	allowed = {
		OR = {
			tag = ITA
			tag = BUL
			tag = GER
			tag = HUN
		}
	}
	enable = {
		OR = {
			is_faction_leader = yes
			is_in_faction_with = GER
		}
		NOT = { has_war_with = YUG }
		YUG = { NOT = { is_in_faction_with = GER } }
		is_historical_focus_on = yes
		OR = {
			has_war_with = FRA
			has_war_with = USA
			has_war_with = ENG
			has_war_with = SOV
		}
		can_declare_war_on = YUG
		NOT = { surrender_progress > 0 }
		NOT = {
			any_country = {
				is_in_faction_with = GER
				is_faction_leader = yes
				surrender_progress > 0
			}
		}
		NOT = {
			any_country = {
				is_neighbor_of = GER
				has_war_with = GER
				is_major = yes
				has_capitulated = no
			}
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = antagonize
		id = YUG
		value = 2500 # we hateses them filthy Vichy Frenches
	}
	ai_strategy = {
		type = declare_war
		id = YUG
		value = 500
	}
	ai_strategy = {
		type = prepare_for_war
		id = YUG
		value = 200
	}
}
AUH_fight_YUG = {

	allowed = {
		OR = {
			tag = HUN
		}
	}
	enable = {
		OR = {
			is_faction_leader = yes
			is_in_faction_with = GER
			is_in_faction = no
		}
		has_completed_focus = HUN_march_to_the_shore
		YUG = { has_war = yes }
		can_declare_war_on = YUG
		OR = {
			NOT = {
				any_country = {
					num_of_military_factories > 50
					is_neighbor_of = HUN
					is_major = yes
					is_in_faction_with = YUG
				}
			}
			YUG = { surrender_progress > 0.2 }
			any_country = {
				is_faction_leader = yes
				is_in_faction_with = YUG
				surrender_progress > 0
			}
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = antagonize
		id = YUG
		value = 2500 # we hateses them filthy Vichy Frenches
	}
	ai_strategy = {
		type = declare_war
		id = YUG
		value = 500
	}
	ai_strategy = {
		type = prepare_for_war
		id = YUG
		value = 200
	}
}
AUH_fight_ROM = {

	allowed = {
		OR = {
			tag = HUN
		}
	}
	enable = {
		OR = {
			is_faction_leader = yes
			is_in_faction_with = GER
			is_in_faction = no
		}
		has_completed_focus = HUN_march_to_the_shore
		ROM = { has_war = yes }
		can_declare_war_on = ROM
		OR = {
			NOT = {
				any_country = {
					num_of_military_factories > 50
					is_neighbor_of = HUN
					is_major = yes
					is_in_faction_with = ROM
				}
			}
			ROM = { surrender_progress > 0.2 }
			any_country = {
				is_faction_leader = yes
				is_in_faction_with = ROM
				surrender_progress > 0
			}
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = antagonize
		id = ROM
		value = 2500 # we hateses them filthy Vichy Frenches
	}
	ai_strategy = {
		type = declare_war
		id = ROM
		value = 500
	}
	ai_strategy = {
		type = prepare_for_war
		id = ROM
		value = 200
	}
}
AUH_fight_GER = {

	allowed = {
		OR = {
			tag = HUN
		}
	}
	enable = {
		OR = {
			is_faction_leader = yes
			is_in_faction = no
		}
		GER = { 
			surrender_progress > 0
			has_war = yes 
		}
		can_declare_war_on = GER
		any_state = {
			is_owned_by = GER
			OR = {
				is_claimed_by = HUN
				is_core_of = HUN
			}
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = antagonize
		id = GER
		value = 2500 # we hateses them filthy Vichy Frenches
	}
	ai_strategy = {
		type = declare_war
		id = GER
		value = 500
	}
	ai_strategy = {
		type = prepare_for_war
		id = GER
		value = 200
	}
}



central_european_world_war = {

	allowed = {
		OR = {
			original_tag = SOV
			original_tag = FRA
			original_tag = ENG
		}
	}
	enable = {
		NOT = {
			OR = {
				FRA = { has_war_with = SOV }
				ENG = { has_war_with = SOV }
				ENG = { has_war_with = FRA }
			}
		}
		threat > 0.9
		has_civil_war = no
		NOT = { surrender_progress > 0.1 }
		OR = {
			is_neighbor_of = GER
			any_other_country = {
				is_in_faction_with = GER
				is_neighbor_of = ROOT
			}
			any_other_country = {
				is_in_faction_with = ROOT
				is_neighbor_of = GER
			}
			any_other_country = {
				is_in_faction_with = GER
				any_other_country = {
					is_in_faction_with = ROOT
					is_neighbor_of = PREV
				}
			}
		}
		OR = {
			is_faction_leader = yes
			is_in_faction = yes
		}
		is_historical_focus_on = no
		NOT = { is_in_faction_with = GER }
		GER = { is_faction_leader = yes }
		OR = {
			NOT = { has_government = democratic }
			NOT = { GER = { has_government = democratic } }
		}
		NOT = { has_non_aggression_pact_with = GER }
		NOT = { is_guaranteed_by = GER }
		NOT = { has_guaranteed = GER }
		OR = {
			AND = {
				OR = {
					original_tag = FRA
					original_tag = ENG
				}
				GER = { has_war_with = SOV }
			}
			AND = {
				original_tag = SOV
				NOT = { has_idea = SOV_molotov_ribbentrop_pact }
				GER = { has_war_with = FRA }
				FRA = { is_in_faction = yes }
			}
		}
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = antagonize
		id = GER
		value = 2500
	}

	ai_strategy = {
		type = conquer
		id = GER
		value = 2500
	}
	ai_strategy = {
		type = declare_war
		id = GER
		value = 700
	}
	ai_strategy = {
		type = prepare_for_war
		id = GER
		value = 300
	}
}

GER_be_safe = {
	reversed = yes
	allowed = {
		original_tag = GER
	}
	enable = {
		NOT = { has_war_with = GER }
		OR = {
			AND = {
				is_subject = yes
				OVERLORD = { NOT = { has_war_with = GER } }
			}
			is_in_faction = yes
		}
		OR = {
			GER = { surrender_progress > 0 }
			any_country = {
				is_neighbor_of = GER
				is_major = yes
				is_in_faction = yes
				capital_scope = {
					is_on_continent = europe
				}
				NOT = { is_in_faction_with = GER }
				NOT = { has_non_aggression_pact_with = GER }
				has_war_with = GER
				NOT = { surrender_progress > 0.6 }
			}
		}
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = declare_war
		id = "GER"
		value = 1000
	}
}