This commit is contained in:
jeffwadsworth 2020-01-16 16:33:26 -06:00
parent e4c2f60ed9
commit e92081b7ea

View file

@ -126,11 +126,13 @@ class MizzixsMasteryOverloadEffect extends OneShotEffect {
copiedCards.add(game.copyCard(card, source, source.getControllerId())); copiedCards.add(game.copyCard(card, source, source.getControllerId()));
} }
boolean continueCasting = true; boolean continueCasting = true;
while (continueCasting && controller.isInGame()) { while (continueCasting
TargetCard targetCard = new TargetCard(0, 1, Zone.EXILED, && controller.isInGame()
&& !copiedCards.isEmpty()) {
TargetCard targetCard = new TargetCard(0, 1, Zone.OUTSIDE,
new FilterCard("copied card to cast without paying its mana cost?")); new FilterCard("copied card to cast without paying its mana cost?"));
targetCard.setNotTarget(true); targetCard.setNotTarget(true);
if (controller.choose(Outcome.PlayForFree, copiedCards, targetCard, game)) { if (controller.chooseTarget(Outcome.PlayForFree, copiedCards, targetCard, source, game)) {
Card selectedCard = game.getCard(targetCard.getFirstTarget()); Card selectedCard = game.getCard(targetCard.getFirstTarget());
if (selectedCard != null if (selectedCard != null
&& selectedCard.getSpellAbility().canChooseTarget(game)) { && selectedCard.getSpellAbility().canChooseTarget(game)) {
@ -144,8 +146,7 @@ class MizzixsMasteryOverloadEffect extends OneShotEffect {
} }
} }
continueCasting = !copiedCards.isEmpty() continueCasting = !copiedCards.isEmpty()
&& controller.chooseUse(Outcome.PlayForFree, "Cast one of the copied " && controller.chooseUse(Outcome.Benefit, "Continue to choose copies and cast?", source, game);
+ "cards without paying its mana cost?", source, game);
} }
} }
} }