# Sender (ROOT); Receiver (FROM)
DIPLOMACY_MILACC_ENABLE_TRIGGER = { # player cannot ask AI for mil access
	if = {
		limit = { has_global_flag = rt56rp_gr_bakedmilaccess_gflag }

		AND = {
			custom_trigger_tooltip = { tooltip = dr_blank }

			if = { 
				limit = {
					ROOT = { is_ai = no }
					FROM = { is_ai = yes }
				}
				custom_trigger_tooltip = { tooltip = dr_ai_military_access_request   date > 3000.01.01 }
			}			
		}

	}
}
DIPLOMACY_OFFER_MILACC_ENABLE_TRIGGER = { # ai cannot offer players mil access
	if = {
		limit = { has_global_flag = rt56rp_gr_bakedmilaccess_gflag }

		AND = {
			custom_trigger_tooltip = { tooltip = dr_blank }

			if = { 
				limit = {
					ROOT = { is_ai = yes }
					FROM = { is_ai = no }
				}
				custom_trigger_tooltip = { tooltip = dr_ai_military_access_offer   date > 3000.01.01 }
			}			
		}

	}
}