mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
* 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:
parent
022587e6f9
commit
71fafb168c
1 changed files with 1 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue