﻿INJECT:alliance = {
	visible = {
		NOT = { is_country_type = decentralized }
		is_revolutionary = no
		is_subject = no
	}

	possible = {
		aggressive_diplomatic_plays_permitted = yes
		OR = {
			AND = {
				root = {
					OR = {
						is_country_type = recognized
						is_country_type = colonial
					}
				}
				scope:other_country = {
					OR = {
						is_country_type = recognized
						is_country_type = colonial
					}
				}
			}
			AND = {
				root = {
					is_country_type = unrecognized
				}
				scope:other_country = {
					is_country_type = unrecognized
				}
			}
		}
		root = {
			NOT = {has_modifier = perpetual_neutrality}
		}
		scope:other_country = {
			NOT = {has_modifier = perpetual_neutrality}
		}
		NOT = {
            root = { # as in in other triggers
                is_country_type = colonial
                is_subject = yes
            }
		}
		NOT = {
            scope:other_country = { 
                is_country_type = colonial
                is_subject = yes
            }
		}
	}
}

INJECT:defensive_pact = {
	visible = {
		NOT = { is_country_type = decentralized }
		is_revolutionary = no
		is_subject = no
	}

	possible = {
		aggressive_diplomatic_plays_permitted = yes
		OR = {
			AND = {
				root = {
					OR = {
						is_country_type = recognized
						is_country_type = colonial
					}
				}
				scope:other_country = {
					OR = {
						is_country_type = recognized
						is_country_type = colonial
					}
				}
			}
			AND = {
				root = {
					is_country_type = unrecognized
				}
				scope:other_country = {
					is_country_type = unrecognized
				}
			}
		}
		root = {
			NOT = {has_modifier = perpetual_neutrality}
		}
		scope:other_country = {
			NOT = {has_modifier = perpetual_neutrality}
		}
		NOT = {
            root = { # as in in other triggers
                is_country_type = colonial
                is_subject = yes
            }
		}
		NOT = {
            scope:other_country = { 
                is_country_type = colonial
                is_subject = yes
            }
		}
	}

}