When adding cards to library, insert "closest to top" card last
This problem was initially reported by Xyx in the #support Discord channel, on July 24 2019.
When you activate Scroll rack, the card you choose as "closest to top" will be farthest from the top.
This problem occurs in the most recent build, and has been occurring since at least 1.6.11.
forge-game/.../ability/effects/ChageZoneAllEffect.resolve handles the movement of cards from another zone into the library. When two or more cards are moved, it takes the card list returned by
p.getController().orderMoveToZoneList and adds them to the library one by one.
This is a problem because the list returned by
PlayerControllerHuman.orderMoveToZoneList is in order of "closest to top" to "farthest from top". The last card added to the library will be closest to top when the ability finishes resolving, and this is the opposite of the intended order.
Reversing the list before adding the cards should resolve the problem.