#my_casus_belli = {
#	potential = { ... }		# trigger to make some CBs invalid for certain types of countries; this = attacker (CB owner); default: { always = yes }
#	is_valid = { ... }		# trigger, evaluated daily to check if CB should be created or destroyed automatically, does not affect CBs granted via script;
#								# this = attacker (CB owner), from = defender (target country); default: { always = yes }
#	destroy_if = { ... }	# trigger, evaluated daily to destroy CBs that have been granted via script ahead of expiration date;
#								# this = attacker (CB owner), from = defender (target country); default: { always = no }
#	show_notification = no/yes	# optional (default = yes), flag to control whether this CB will generate a notification (to avoid duplicate 
# 								# notification when a claim CB is generated)
#}

#开放边境宣战理由
cb_open_border = {
	show_in_diplomacy = yes
	show_notification = yes
	potential = {
		has_authority = auth_xilin_mind #进攻方是希灵帝国
	}
	is_valid = {
		from = {
				has_country_flag  = f_refuse_open_border_to_xilin #拒绝对希灵开放边境
	      has_closed_borders = prev	      
		}
	}
}

#希灵征服,与希灵敌对的国家将成为仆从国
cb_xilin_subjugation = {
	show_in_diplomacy = yes
	show_notification = yes
	potential = {
		has_authority = auth_xilin_mind #进攻方是希灵帝国
	}
	is_valid = { 
		from = {   
	      can_xilin_subjugation = yes
		}
	}	
}

#解放战争(将人民从错误或暴政解放出来)解放出的国家将直接成为希灵的附庸
cb_xilin_liberate = {
	 show_in_diplomacy = yes
	 show_notification = yes
	 potential = {
		  has_authority = auth_xilin_mind #进攻方是希灵帝国
	 }
	 is_valid = { 
		 from = {   
	      need_xilin_liberate = yes
	      #有殖民星球星系有宣称
	      any_system_within_border = {
						any_planet = { 
								is_colony = yes
						}
						root = { has_claim = prev }
				}
		 }
	 }	
}


#来自希灵的惩戒，惩戒侮辱希灵的国家
cb_xilin_discipline = {
	show_in_diplomacy = yes
	show_notification = yes
	potential = {
		has_authority = auth_xilin_mind #进攻方是希灵帝国
	}
	is_valid = {
		from = {
				need_xilin_punish = yes
		}
	}
}

#罪恶(吃人，或种族灭绝)
cb_evil = {
	show_in_diplomacy = yes
	show_notification = yes
	potential = {
		has_authority = auth_xilin_mind #进攻方是希灵帝国
	}
	is_valid = {
		from = { 
	      has_country_flag  = f_evil_country   #目标是邪恶国家
		}
	}
}