mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Cleanup Dredge.
This commit is contained in:
parent
8845c9bf29
commit
bd51cd5f77
1 changed files with 3 additions and 3 deletions
|
|
@ -100,12 +100,12 @@ class DredgeEffect extends ReplacementEffectImpl {
|
|||
&& player.chooseUse(outcome, new StringBuilder("Dredge ").append(sourceCard.getLogName()).
|
||||
append("? (").append(amount).append(" cards go from top of library to graveyard)").toString(), source, game)) {
|
||||
if (!game.isSimulation()) {
|
||||
game.informPlayers(new StringBuilder(player.getLogName()).append(" dreges ").append(sourceCard.getLogName()).toString());
|
||||
game.informPlayers(new StringBuilder(player.getLogName()).append(" dredges ").append(sourceCard.getLogName()).toString());
|
||||
}
|
||||
Cards cardsToGrave = new CardsImpl();
|
||||
cardsToGrave.addAll(player.getLibrary().getTopCards(game, amount));
|
||||
player.moveCards(cardsToGrave, Zone.LIBRARY, Zone.GRAVEYARD, source, game);
|
||||
player.moveCards(sourceCard, Zone.GRAVEYARD, Zone.HAND, source, game);
|
||||
player.moveCards(cardsToGrave, Zone.GRAVEYARD, source, game);
|
||||
player.moveCards(sourceCard, Zone.HAND, source, game);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue