mirror of
https://github.com/correl/mage.git
synced 2024-11-25 11:09:53 +00:00
- Fixed #6193
This commit is contained in:
parent
e4c2f60ed9
commit
e92081b7ea
1 changed files with 6 additions and 5 deletions
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue