If you give two successive orders to a unit in the same loop cycle (or without letting time pass)
the second order will override the first:
command(attack) + command(move) = command(move)
See:
If you give two successive orders to a unit in the same loop cycle (or without letting time pass)
the second order will override the first:
command(attack) + command(move) = command(move)
See: