ability = {	
	CHI_force_attack = {
		name = ABILITY_FORCE_ATTACK
		desc = ABILITY_FORCE_ATTACK_DESC
		icon = GFX_ability_chi_force_attack
		
		sound_effect = command_power_ability_offensive
		
		type = army_leader
		
		allowed = {
			is_leading_army_group = no
			is_border_war = no
			OWNER = {				
				has_completed_focus = CHI_dare_to_die_corps
			}
		}
		
		cost = 0.2
		duration = 168
		cooldown = 168
		one_time_effect = {
			add_temporary_buff_to_units = {
				combat_breakthrough = 0.1
				org_damage_multiplier = -0.25
				str_damage_multiplier = 0.25
				war_support_reduction_on_damage = 0.25
				cannot_retreat_while_attacking = 1.00
				
				days = 5
				tooltip = ABILITY_FORCE_ATTACK_TOOLTIP
			}
		}
		
		
		ai_will_do = {
			factor = -1
			modifier = {
				FROM = {
					has_war_support > 0.1
					command_power > 1.0
				}
				check_variable = { num_units_offensive_combats > 6 }
				
				set_temp_variable = { temp = avg_offensive_combat_status }
				check_variable = { temp > 0.45 }
				check_variable = { ai_random > temp }
				
				add = 2
			}
		}
	}
}