Fixed Descendants Path (bug in library's put from top to bottom)

This commit is contained in:
magenoxx 2012-06-03 16:11:48 +04:00
parent ccb235a3e0
commit 9cb4ee1977
2 changed files with 4 additions and 0 deletions

View file

@ -112,6 +112,7 @@ class DescendantsPathEffect extends OneShotEffect<DescendantsPathEffect> {
player.getLibrary().putOnBottom(card, game);
}
} else {
game.informPlayers("DescendantsPath: put " + card.getName() + " on the bottom.");
player.getLibrary().putOnBottom(card, game);
}

View file

@ -128,6 +128,9 @@ public class Library implements Serializable {
public void putOnBottom(Card card, Game game) {
if (card.getOwnerId().equals(playerId)) {
game.setZone(card.getId(), Zone.LIBRARY);
if (library.contains(card.getId())) {
library.remove(card.getId());
}
library.add(card.getId());
}
else {