mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
* The Magic Mirror - Fixed that it drews the wrong number of cards on beginning of upkeep (fixes #6840).
This commit is contained in:
parent
b0cd69bb08
commit
08d1eb5319
1 changed files with 3 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue