forked from External/mage
Fixed Descendants Path (bug in library's put from top to bottom)
This commit is contained in:
parent
ccb235a3e0
commit
9cb4ee1977
2 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue