You are on page 1of 1

ability = {

ITA_force_attack = {
name = ABILITY_avanti
desc = ABILITY_avanti_desc
icon = GFX_ability_chi_force_attack

sound_effect = ITA_infantry_neutral_combat

type = army_leader

allowed = {
is_leading_army_group = no
is_border_war = no
OWNER = {
has_completed_focus = ITA_the_new_arditi
}
}

cost = 0.15
duration = 168

unit_modifiers = {
army_infantry_attack_factor = 0.2
army_speed_factor = 0.1
supply_consumption_factor = 0.1
}

one_time_effect = {
add_temporary_buff_to_units = {
cannot_retreat_while_attacking = 1.0
str_damage_multiplier = 0.15

days = 7
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
}
}
}
}

You might also like