lots of fixes - mainly to continuous effects and zone changes

This commit is contained in:
BetaSteward 2010-11-23 05:08:45 +00:00
parent b1858396a5
commit 0cd0b7045a
93 changed files with 600 additions and 348 deletions

View file

@ -66,19 +66,14 @@ public class PutOnLibraryTargetEffect extends OneShotEffect<PutOnLibraryTargetEf
case BATTLEFIELD:
Permanent permanent = game.getPermanent(source.getFirstTarget());
if (permanent != null) {
return permanent.moveToZone(Zone.LIBRARY, game, onTop);
return permanent.moveToZone(Zone.LIBRARY, source.getId(), game, onTop);
}
case GRAVEYARD:
Card card = game.getCard(source.getFirstTarget());
for (Player player: game.getPlayers().values()) {
if (player.getGraveyard().contains(card.getId())) {
player.getGraveyard().remove(card);
return card.moveToZone(Zone.LIBRARY, game, onTop);
// if (onTop)
// player.getLibrary().putOnTop(card, game);
// else
// player.getLibrary().putOnBottom(card, game);
// return true;
return card.moveToZone(Zone.LIBRARY, source.getId(), game, onTop);
}
}
}