* Siren of the Silent Song - Fixed a bug that the controller also wrongly put a card into the graveyard from library.

This commit is contained in:
LevelX2 2014-02-04 22:19:26 +01:00
parent 022587e6f9
commit 71fafb168c

View file

@ -88,16 +88,10 @@ public class PutTopCardOfLibraryIntoGraveEachPlayerEffect extends OneShotEffect<
putCardsToGravecard(playerId, source, game);
}
}
break;
default:
throw new UnsupportedOperationException("TargetController type not supported.");
}
int cardsCount = Math.min(numberCards, player.getLibrary().size());
for (int i = 0; i < cardsCount; i++) {
Card card = player.getLibrary().removeFromTop(game);
if (card != null) {
card.moveToZone(Zone.GRAVEYARD, source.getId(), game, true);
}
}
return true;
}
return false;