From 89cec1c2b278b6767b6b00785890417b8c0893c9 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Sat, 7 Apr 2012 11:08:49 +0400 Subject: [PATCH] not shuffling library for tests --- Mage/src/mage/game/GameImpl.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Mage/src/mage/game/GameImpl.java b/Mage/src/mage/game/GameImpl.java index 220d3e1c47..7ccc29b112 100644 --- a/Mage/src/mage/game/GameImpl.java +++ b/Mage/src/mage/game/GameImpl.java @@ -449,9 +449,11 @@ public abstract class GameImpl> implements Game, Serializa saveState(); //20091005 - 103.1 - for (Player player: state.getPlayers().values()) { - player.shuffleLibrary(this); - } + if (!testMode) { //don't shuffle in test mode for card injection on top of player's libraries + for (Player player: state.getPlayers().values()) { + player.shuffleLibrary(this); + } + } //20091005 - 103.2 TargetPlayer targetPlayer = new TargetPlayer(); @@ -1306,7 +1308,7 @@ public abstract class GameImpl> implements Game, Serializa setZone(card.getId(), Zone.LIBRARY); player.getLibrary().putOnTop(card, this); } - for (Card card : hand) { + for (Card card : hand) { setZone(card.getId(), Zone.HAND); player.getHand().add(card); }