Return guardian MAI: remove unnecessary condition
We can never get to this point in the code if the unit does not have moves.
This commit is contained in:
parent
a017e584f2
commit
f03c6052d0
1 changed files with 1 additions and 3 deletions
|
@ -35,9 +35,7 @@ function ca_return_guardian:execution(ai, cfg)
|
|||
end
|
||||
|
||||
local nh = AH.next_hop(unit, x, y)
|
||||
if unit.moves~=0 then
|
||||
AH.movefull_stopunit(ai, unit, nh)
|
||||
end
|
||||
AH.movefull_stopunit(ai, unit, nh)
|
||||
end
|
||||
|
||||
return ca_return_guardian
|
||||
|
|
Loading…
Add table
Reference in a new issue