wg_MT_take_relic = {
	casus_belli = cb_MT_relic_envy
	hide = no_cb
	release_occupied_systems_on_status_quo = yes

	galactic_empire_joins_defender = {
		from = { is_galactic_emperor = yes }
		imperial_authority >= 100
	}

	# allowed_peace_offers = { # defunct as of 4.0, replaced by forbidden_peace_offers which isn't relevant here
	# 	status_quo
	# 	surrender
	# 	demand_surrender
	# }

	surrender_acceptance = -40

	potential = {
		has_total_war_cb = no
		has_MAP_ap_relic_hunter = no
	}
	possible = {
		custom_tooltip = {
			fail_text = MT_no_relics
			from = {
				is_country_type = default
				num_owned_relics > 0
			}
		}
		custom_tooltip = {
			fail_text = cannot_use_against_emperor
			OR = {
				from = { is_galactic_emperor = no }
				is_galactic_community_member = no
			}
		}
		custom_tooltip = {
			fail_text = pax_galactica_active
			NAND = {
				is_active_resolution = resolution_emperor_pax_galactica
				is_galactic_community_member = yes
				from = { is_galactic_community_member = yes }
			}
		}
	}
	on_accept = {
		hidden_effect = {
			from = {
				add_threat = {
					who = root
					amount = 0.5
				}
			}
			from = {
				add_opinion_modifier = { modifier = opinion_MT_stole_relic who = prev }
			}
		}
		steal_relic = { target = from relic = random }
		create_message = {
			type = MESSAGE_TYPE_MT_STOLEN_RELIC
			localization =  MESSAGE_TYPE_MT_STOLEN_RELIC_DESC
			days = @toast_message_days
			target = capital_scope
			#variable = {
			#	type = name
			#	localization = RELIC
			#	scope = this
			#}
		}
	}

	ai_weight = {
		weight = 10
		modifier = {
			factor = 0
			has_ethic = ethic_gestalt_consciousness
		}
	}
}