From dcb3d5fb27ee5ddcf002c7395eccda93f0262c50 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 20 Mar 2018 11:29:09 +0100 Subject: [PATCH] * Fixed a bug of Mizzixs Mastery that could lead to a endless loop. --- Mage.Sets/src/mage/cards/m/MizzixsMastery.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/cards/m/MizzixsMastery.java b/Mage.Sets/src/mage/cards/m/MizzixsMastery.java index 665830c4e7d..fd3b892bd84 100644 --- a/Mage.Sets/src/mage/cards/m/MizzixsMastery.java +++ b/Mage.Sets/src/mage/cards/m/MizzixsMastery.java @@ -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)) {