Scripted Effect
destroy_every_sub_unit_of_type
Definitionin_game/common/scripted_effects/unit_effects.txt:39
40if = {
41limit = {
41any_sub_unit = {
41sub_unit_type = $sub_unit_type$
41count = all
}
}
42destroy_unit = yes
}
44else = {
45custom_description = {
46text = destroy_every_sub_unit_of_type
47value = $sub_unit_type$
48every_sub_unit = {
49limit = {
49sub_unit_type = $sub_unit_type$
}
50destroy_subunit = yes
}
}
}