# Make POR want to send stuff to Republican Spain
POR_helps_SPD_win_civil_war = {
	allowed = {
		original_tag = POR
		has_dlc = "La Resistance"
	}
	enable = {
		SPR_scw_in_progress = yes
		NOT = { has_government = fascism }
		has_completed_focus = POR_support_the_spanish_republic
		country_exists = SPD
	}
	abort = {
		OR = {
			NOT = { country_exists = SPD }
			SPD = { has_completed_focus = SPR_a_red_iberia }
			has_government = fascism
			has_global_flag = scw_over
		}
	}

	ai_strategy = {
		type = support
		id = SPD
		value = 50
	}

	ai_strategy = {
		type = send_volunteers_desire
		id = SPD
		value = 50
	}

}

# Make POR want to send stuff to Nationalist Spain
POR_helps_SPA_win_civil_war = {
	allowed = {
		original_tag = POR
		has_dlc = "La Resistance"
	}
	enable = {
		SPR_scw_in_progress = yes
		OR = {
			has_government = fascism
			has_government = neutrality
		}
		has_completed_focus = POR_support_the_spanish_nationalists
		country_exists = SPA
	}
	abort = {
		OR = {
			NOT = { country_exists = SPA }
			OR = {
				has_government = communism
				has_government = democratic
			}
			has_global_flag = scw_over
		}
	}

	ai_strategy = {
		type = support
		id = SPA
		value = 50
	}

	ai_strategy = {
		type = send_volunteers_desire
		id = SPA
		value = 50
	}

}

# Make POR want to send stuff to Carlist Spain
POR_helps_SPB_win_civil_war = {
	allowed = {
		original_tag = POR
		has_dlc = "La Resistance"
	}
	enable = {
		SPR_scw_in_progress = yes
		has_government = neutrality
		has_completed_focus = POR_support_a_spanish_monarchy_in_the_war
		country_exists = SPB
	}
	abort = {
		OR = {
			NOT = { country_exists = SPB }
			NOT = { has_government = neutrality }
			has_global_flag = scw_over
		}
	}

	ai_strategy = {
		type = support
		id = SPB
		value = 50
	}

	ai_strategy = {
		type = send_volunteers_desire
		id = SPB
		value = 50
	}

}
