* Goblin Charbelcher - Fixed a bug, that the return cards to library step looped endless.

This commit is contained in:
LevelX2 2014-10-17 08:17:03 +02:00
parent 746e135f21
commit 2c171e32b9

View file

@ -131,18 +131,8 @@ class GoblinCharbelcherEffect extends OneShotEffect {
if (targetPlayer != null) { if (targetPlayer != null) {
targetPlayer.damage(damage, source.getSourceId(), game, false, true); targetPlayer.damage(damage, source.getSourceId(), game, false, true);
} }
} }
player.putCardsOnBottomOfLibrary(cards, game, source, true);
TargetCard target = new TargetCard(Zone.LIBRARY, new FilterCard("card to put on the bottom of your library"));
while (player.isInGame() && cards.size() > 1) {
player.choose(Outcome.Neutral, cards, target, game);
Card card = cards.get(target.getFirstTarget(), game);
if (card != null) {
player.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.LIBRARY, false, true);
}
target.clearChosen();
}
return true; return true;
} }
} }