mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Fixed a bug of Mizzixs Mastery that could lead to a endless loop.
This commit is contained in:
parent
8ff4f81cea
commit
dcb3d5fb27
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ import mage.target.common.TargetCardInYourGraveyard;
|
|||
public class MizzixsMastery extends CardImpl {
|
||||
|
||||
public MizzixsMastery(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{R}");
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{R}");
|
||||
|
||||
// Exile target card that's an instant or sorcery from your graveyard. For each card exiled this way, copy it, and you may cast the copy without paying its mana cost. Exile Mizzix's Mastery.
|
||||
this.getSpellAbility().addEffect(new MizzixsMasteryEffect());
|
||||
|
@ -144,7 +144,7 @@ class MizzixsMasteryOverloadEffect extends OneShotEffect {
|
|||
copiedCards.add(game.copyCard(card, source, source.getControllerId()));
|
||||
}
|
||||
boolean continueCasting = true;
|
||||
while (continueCasting) {
|
||||
while (continueCasting && controller.isInGame()) {
|
||||
TargetCard targetCard = new TargetCard(0, 1, Zone.EXILED, new FilterCard("copied card to cast without paying its mana cost?"));
|
||||
targetCard.setNotTarget(true);
|
||||
if (controller.choose(outcome, copiedCards, targetCard, game)) {
|
||||
|
|
Loading…
Reference in a new issue