mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
Fix Chaos Wand
This commit is contained in:
parent
c91e56b937
commit
11dffe2182
1 changed files with 3 additions and 1 deletions
|
|
@ -82,15 +82,17 @@ class ChaosWandEffect extends OneShotEffect {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
opponent.moveCards(card, Zone.EXILED, source, game);
|
opponent.moveCards(card, Zone.EXILED, source, game);
|
||||||
|
controller.revealCards(source, new CardsImpl(card), game);
|
||||||
if (card.isInstant() || card.isSorcery()) {
|
if (card.isInstant() || card.isSorcery()) {
|
||||||
if (!controller.chooseUse(outcome, "Cast " + card.getName() + " without paying its mana cost?", source, game)
|
if (!controller.chooseUse(outcome, "Cast " + card.getName() + " without paying its mana cost?", source, game)
|
||||||
|| !controller.cast(card.getSpellAbility(), game, true, new MageObjectReference(source.getSourceObject(game), game))) {
|
|| !controller.cast(card.getSpellAbility(), game, true, new MageObjectReference(source.getSourceObject(game), game))) {
|
||||||
cardsToShuffle.add(card);
|
cardsToShuffle.add(card);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
} else {
|
||||||
cardsToShuffle.add(card);
|
cardsToShuffle.add(card);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return opponent.putCardsOnBottomOfLibrary(cardsToShuffle, game, source, false);
|
return opponent.putCardsOnBottomOfLibrary(cardsToShuffle, game, source, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue