Skip to content

Commit 0f445c7

Browse files
skip units in squads (dont mark as ignored tho)
1 parent 2eab602 commit 0f445c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autotraining.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ function getTrainingCandidates()
127127
ignore_count = ignore_count + 1
128128
goto next_unit
129129
end
130+
if unit.military.squad_id ~= -1 then
131+
goto next_unit
132+
end
130133
table.insert(ret, { unit = unit, need = need.focus_level })
131134
::next_unit::
132135
end

0 commit comments

Comments
 (0)