not shuffling library for tests

This commit is contained in:
magenoxx 2012-04-07 11:08:49 +04:00
parent 5ede2cb7b3
commit 89cec1c2b2

View file

@ -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);
} }