mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
* Goblin Charbelcher - Fixed a bug, that the return cards to library step looped endless.
This commit is contained in:
parent
746e135f21
commit
2c171e32b9
1 changed files with 2 additions and 12 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue