mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
not shuffling library for tests
This commit is contained in:
parent
5ede2cb7b3
commit
89cec1c2b2
1 changed files with 6 additions and 4 deletions
|
@ -449,9 +449,11 @@ public abstract class GameImpl<T extends GameImpl<T>> implements Game, Serializa
|
||||||
saveState();
|
saveState();
|
||||||
|
|
||||||
//20091005 - 103.1
|
//20091005 - 103.1
|
||||||
for (Player player: state.getPlayers().values()) {
|
if (!testMode) { //don't shuffle in test mode for card injection on top of player's libraries
|
||||||
player.shuffleLibrary(this);
|
for (Player player: state.getPlayers().values()) {
|
||||||
}
|
player.shuffleLibrary(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//20091005 - 103.2
|
//20091005 - 103.2
|
||||||
TargetPlayer targetPlayer = new TargetPlayer();
|
TargetPlayer targetPlayer = new TargetPlayer();
|
||||||
|
@ -1306,7 +1308,7 @@ public abstract class GameImpl<T extends GameImpl<T>> implements Game, Serializa
|
||||||
setZone(card.getId(), Zone.LIBRARY);
|
setZone(card.getId(), Zone.LIBRARY);
|
||||||
player.getLibrary().putOnTop(card, this);
|
player.getLibrary().putOnTop(card, this);
|
||||||
}
|
}
|
||||||
for (Card card : hand) {
|
for (Card card : hand) {
|
||||||
setZone(card.getId(), Zone.HAND);
|
setZone(card.getId(), Zone.HAND);
|
||||||
player.getHand().add(card);
|
player.getHand().add(card);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue