* Fixed handling of Split cards (fixes #670).

This commit is contained in:
LevelX2 2015-02-03 00:05:30 +01:00
parent ee5a75169a
commit dd54269216
13 changed files with 127 additions and 41 deletions

View file

@ -96,7 +96,7 @@ public class SystemUtil {
}
Random random = new Random();
Set<Card> cardsToLoad = new HashSet<Card>();
Set<Card> cardsToLoad = new HashSet<>();
for (int i = 0; i < amount; i++) {
CardInfo cardInfo = cards.get(random.nextInt(cards.size()));
Card card = cardInfo != null ? cardInfo.getCard() : null;
@ -128,7 +128,7 @@ public class SystemUtil {
if (zone.equals(Zone.BATTLEFIELD)) {
card.putOntoBattlefield(game, Zone.OUTSIDE, null, player.getId());
} else if (zone.equals(Zone.LIBRARY)) {
game.setZone(card.getId(), Zone.LIBRARY);
card.setZone(Zone.LIBRARY, game);
player.getLibrary().putOnTop(card, game);
} else {
card.moveToZone(zone, null, game, false);