From 08d1eb5319f44b3422108d9f8e6ce4d009e84c25 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 15 Jul 2020 14:34:53 +0200 Subject: [PATCH] * The Magic Mirror - Fixed that it drews the wrong number of cards on beginning of upkeep (fixes #6840). --- Mage.Sets/src/mage/cards/t/TheMagicMirror.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Mage.Sets/src/mage/cards/t/TheMagicMirror.java b/Mage.Sets/src/mage/cards/t/TheMagicMirror.java index 2238d81cfcf..49b1ec23c74 100644 --- a/Mage.Sets/src/mage/cards/t/TheMagicMirror.java +++ b/Mage.Sets/src/mage/cards/t/TheMagicMirror.java @@ -1,5 +1,6 @@ package mage.cards.t; +import java.util.UUID; import mage.abilities.Ability; import mage.abilities.common.BeginningOfUpkeepTriggeredAbility; import mage.abilities.common.SimpleStaticAbility; @@ -17,15 +18,11 @@ import mage.constants.*; import mage.counters.CounterType; import mage.filter.StaticFilters; -import java.util.UUID; - /** * @author TheElk801 */ public final class TheMagicMirror extends CardImpl { - private static final DynamicValue xValue = new CountersSourceCount(CounterType.KNOWLEDGE); - public TheMagicMirror(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{6}{U}{U}{U}"); @@ -48,9 +45,8 @@ public final class TheMagicMirror extends CardImpl { ability = new BeginningOfUpkeepTriggeredAbility( new AddCountersSourceEffect(CounterType.KNOWLEDGE.createInstance()) .setText("put a knowledge counter on {this},"), - TargetController.YOU, false - ); - ability.addEffect(new DrawCardSourceControllerEffect(xValue).concatBy("then")); + TargetController.YOU, false); + ability.addEffect(new DrawCardSourceControllerEffect(new CountersSourceCount(CounterType.KNOWLEDGE)).concatBy("then")); this.addAbility(ability); }