mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Some updates to Whirlpool Rider.
This commit is contained in:
parent
8b4a74bc0d
commit
aa8c72cb0c
1 changed files with 2 additions and 5 deletions
|
@ -94,12 +94,9 @@ class WhirlpoolRiderTriggeredEffect extends OneShotEffect {
|
||||||
if (controller != null) {
|
if (controller != null) {
|
||||||
int cardsHand = controller.getHand().size();
|
int cardsHand = controller.getHand().size();
|
||||||
if (cardsHand > 0) {
|
if (cardsHand > 0) {
|
||||||
Cards cards = controller.getHand().copy();
|
for (Card card: controller.getHand().getCards(game)) {
|
||||||
for (UUID cardId: cards) {
|
|
||||||
Card card = game.getCard(cardId);
|
|
||||||
if (card != null) {
|
if (card != null) {
|
||||||
controller.removeFromHand(card, game);
|
controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.HAND, true, false);
|
||||||
card.moveToZone(Zone.LIBRARY, source.getSourceId(), game, true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
controller.shuffleLibrary(game);
|
controller.shuffleLibrary(game);
|
||||||
|
|
Loading…
Reference in a new issue