forked from External/mage
Refactor: Fix raw use of parameterized class 'ManaCostsImpl' - 'm' cards (#9062)
This commit is contained in:
parent
3620a4d325
commit
a75aab5e34
201 changed files with 219 additions and 219 deletions
|
|
@ -47,7 +47,7 @@ public final class MaceWindu extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// Meditate {1}{U}
|
||||
this.addAbility(new MeditateAbility(new ManaCostsImpl("{1}{U}")));
|
||||
this.addAbility(new MeditateAbility(new ManaCostsImpl<>("{1}{U}")));
|
||||
}
|
||||
|
||||
private MaceWindu(final MaceWindu card) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class MacetailHystrodon extends CardImpl {
|
|||
// Haste
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
// Cycling {3}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{3}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{3}")));
|
||||
}
|
||||
|
||||
private MacetailHystrodon(final MacetailHystrodon card) {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public final class MadblindMountain extends CardImpl {
|
|||
// {R}, {tap}: Shuffle your library. Activate this ability only if you control two or more red permanents.
|
||||
Ability ability = new ConditionalActivatedAbility(Zone.BATTLEFIELD,
|
||||
new ShuffleLibrarySourceEffect(),
|
||||
new ManaCostsImpl("{R}"),
|
||||
new ManaCostsImpl<>("{R}"),
|
||||
new PermanentsOnTheBattlefieldCondition(filter, ComparisonType.MORE_THAN, 1));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class MaelstromDjinn extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// Morph {2}{U}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{2}{U}")));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{2}{U}")));
|
||||
// When Maelstrom Djinn is turned face up, put two time counters on it and it gains vanishing.
|
||||
Ability ability = new TurnedFaceUpSourceTriggeredAbility(new AddCountersSourceEffect(CounterType.TIME.createInstance(2)));
|
||||
Effect effect = new GainAbilitySourceEffect(new VanishingUpkeepAbility(0), Duration.WhileOnBattlefield);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class MageRingNetwork extends CardImpl {
|
|||
this.addAbility(new ColorlessManaAbility());
|
||||
// {1}, {T}: Put a storage counter on Mage-Ring Network.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.STORAGE.createInstance()),
|
||||
new ManaCostsImpl("{1}"));
|
||||
new ManaCostsImpl<>("{1}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
// {T}, Remove any number of storage counters from Mage-Ring Network: Add {C} for each storage counter removed this way.
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public final class MageRingResponder extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new DontUntapInControllersUntapStepSourceEffect()));
|
||||
|
||||
// {7}: Untap Mage-Ring Responder.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapSourceEffect(), new ManaCostsImpl("{7}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapSourceEffect(), new ManaCostsImpl<>("{7}")));
|
||||
|
||||
// Whenever Mage-Ring Responder attacks, it deals 7 damage to target creature defending player controls.
|
||||
this.addAbility(new MageRingResponderAbility());
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class MagesGuile extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(ShroudAbility.getInstance(), Duration.EndOfTurn));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
// Cycling {U}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{U}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{U}")));
|
||||
}
|
||||
|
||||
private MagesGuile(final MagesGuile card) {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class MagetaTheLion extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {2}{W}{W}, {tap}, Discard two cards: Destroy all creatures except for Mageta the Lion. Those creatures can't be regenerated.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyAllEffect(filter, true), new ManaCostsImpl("{2}{W}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyAllEffect(filter, true), new ManaCostsImpl<>("{2}{W}{W}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new DiscardTargetCost(new TargetCardInHand(2,2, new FilterCard("two cards"))));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class MagewrightsStone extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||
|
||||
// {1}, {T}: Untap target creature that has an activated ability with {T} in its cost.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new ManaCostsImpl("{1}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new ManaCostsImpl<>("{1}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class MagmaOpus extends CardImpl {
|
|||
|
||||
// {U/R}{U/R}, Discard Magma Opus: Create a Treasure token.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
Zone.HAND, new CreateTokenEffect(new TreasureToken()), new ManaCostsImpl("{U/R}{U/R}")
|
||||
Zone.HAND, new CreateTokenEffect(new TreasureToken()), new ManaCostsImpl<>("{U/R}{U/R}")
|
||||
);
|
||||
ability.addCost(new DiscardSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class MagmaPhoenix extends CardImpl {
|
|||
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new DamageEverythingEffect(3, "it"), false));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.GRAVEYARD, new ReturnSourceFromGraveyardToHandEffect(), new ManaCostsImpl("{3}{R}{R}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.GRAVEYARD, new ReturnSourceFromGraveyardToHandEffect(), new ManaCostsImpl<>("{3}{R}{R}")));
|
||||
}
|
||||
|
||||
private MagmaPhoenix(final MagmaPhoenix card) {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class MagmaVein extends CardImpl {
|
|||
|
||||
|
||||
// {R}, Sacrifice a land: Magma Vein deals 1 damage to each creature without flying.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageAllEffect(1, filter1), new ManaCostsImpl("{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageAllEffect(1, filter1), new ManaCostsImpl<>("{R}"));
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter2)));
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class MagmaticCore extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{R}{R}");
|
||||
|
||||
// Cumulative upkeep {1}
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{1}")));
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{1}")));
|
||||
|
||||
// At the beginning of your end step, Magmatic Core deals X damage divided as you choose among any number of target creatures, where X is the number of age counters on it.
|
||||
DynamicValue value = new CountersSourceCount(CounterType.AGE);
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class MagusOfTheBalance extends CardImpl {
|
|||
// {4}{W}, {T}, Sacrifice Magus of the Balance: Each player chooses a number of lands they control equal to the number of lands controlled by the player who controls the fewest, then sacrifices the rest. Players discard cards and sacrifice creatures the same way.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new BalanceEffect(),
|
||||
new ManaCostsImpl("{4}{W}")
|
||||
new ManaCostsImpl<>("{4}{W}")
|
||||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class MagusOfTheCandelabra extends CardImpl {
|
|||
// {X}, {T}: Untap X target lands.
|
||||
Effect effect = new UntapTargetEffect();
|
||||
effect.setText("untap X target lands");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{X}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{X}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_LANDS));
|
||||
ability.setTargetAdjuster(XTargetsAdjuster.instance);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public final class MagusOfTheDisk extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldTappedAbility());
|
||||
|
||||
// {1}, {tap}: Destroy all artifacts, creatures, and enchantments.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyAllEffect(filter, false), new ManaCostsImpl("{1}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyAllEffect(filter, false), new ManaCostsImpl<>("{1}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class MagusOfTheMind extends CardImpl {
|
|||
this.toughness = new MageInt(5);
|
||||
|
||||
// U, T, Sacrifice Magus of the Mind: Shuffle your library, then exile the top X cards, where X is one plus the number of spells cast this turn. Until end of turn, you may play cards exiled this way without paying their mana costs.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MagusOfTheMindEffect(), new ManaCostsImpl("{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MagusOfTheMindEffect(), new ManaCostsImpl<>("{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability, new CastSpellLastTurnWatcher());
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ public final class MagusOfTheOrder extends CardImpl {
|
|||
// {G}, {T}, Sacrifice Magus of the Order and another green creature: Search your library for a green creature card and put it onto the battlefield. Then shuffle your library.
|
||||
Ability ability = new SimpleActivatedAbility(new SearchLibraryPutInPlayEffect(
|
||||
new TargetCardInLibrary(1, filter), false, true
|
||||
), new ManaCostsImpl("{G}"));
|
||||
), new ManaCostsImpl<>("{G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new CompositeCost(
|
||||
new SacrificeSourceCost(), new SacrificeTargetCost(new TargetControlledPermanent(filter2)),
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class MagusOfTheScroll extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {3}, {tap}: Name a card. Reveal a card at random from your hand. If it's the named card, Magus of the Scroll deals 2 damage to any target.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ChooseACardNameEffect(ChooseACardNameEffect.TypeOfName.ALL), new ManaCostsImpl("{3}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ChooseACardNameEffect(ChooseACardNameEffect.TypeOfName.ALL), new ManaCostsImpl<>("{3}"));
|
||||
ability.addEffect(new MagusOfTheScrollEffect());
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class MagusOfTheWheel extends CardImpl {
|
|||
// {1}{R}, {T}, Sacrifice Magus of the Wheel: Each player discards their hand, then draws seven cards.
|
||||
Effect effect = new DrawCardAllEffect(7);
|
||||
effect.setText(", then draws seven cards");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DiscardHandAllEffect(), new ManaCostsImpl("{1}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DiscardHandAllEffect(), new ManaCostsImpl<>("{1}{R}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addEffect(effect);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public final class MagusOfTheWill extends CardImpl {
|
|||
|
||||
// {2}{B}, {T}, Exile Magus of the Will: Until end of turn, you may play cards from your graveyard.
|
||||
// If a card would be put into your graveyard from anywhere else this turn, exile that card instead.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CanPlayCardsFromGraveyardEffect(), new ManaCostsImpl("{2}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CanPlayCardsFromGraveyardEffect(), new ManaCostsImpl<>("{2}{B}"));
|
||||
ability.addEffect(new MagusOfTheWillReplacementEffect());
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new ExileSourceCost());
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class MajorTeroh extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {3}{W}{W}, Sacrifice Major Teroh: Exile all black creatures.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileAllEffect(filter),new ManaCostsImpl("{3}{W}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileAllEffect(filter),new ManaCostsImpl<>("{3}{W}{W}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class MalachOfTheDawn extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {W}{W}{W}: Regenerate Malach of the Dawn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{W}{W}{W}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{W}{W}{W}")));
|
||||
}
|
||||
|
||||
private MalachOfTheDawn(final MalachOfTheDawn card) {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class MalachiteGolem extends CardImpl {
|
|||
this.subtype.add(SubType.GOLEM);
|
||||
this.power = new MageInt(5);
|
||||
this.toughness = new MageInt(3);
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{1}{G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}{G}")));
|
||||
}
|
||||
|
||||
private MalachiteGolem(final MalachiteGolem card) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class MalachiteTalisman extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||
|
||||
// Whenever a player casts a green spell, you may pay {3}. If you do, untap target permanent.
|
||||
Ability ability = new SpellCastAllTriggeredAbility(new DoIfCostPaid(new UntapTargetEffect(), new ManaCostsImpl("{3}")), filter, false);
|
||||
Ability ability = new SpellCastAllTriggeredAbility(new DoIfCostPaid(new UntapTargetEffect(), new ManaCostsImpl<>("{3}")), filter, false);
|
||||
ability.addTarget(new TargetPermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class MalevolentAwakening extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{B}{B}");
|
||||
|
||||
// {1}{B}{B}, Sacrifice a creature: Return target creature card from your graveyard to your hand.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnFromGraveyardToHandTargetEffect(), new ManaCostsImpl("{1}{B}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnFromGraveyardToHandTargetEffect(), new ManaCostsImpl<>("{1}{B}{B}"));
|
||||
ability.addTarget(new TargetCardInYourGraveyard(filter));
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class MalevolentWhispers extends CardImpl {
|
|||
this.getSpellAbility().addEffect(effect);
|
||||
|
||||
// Madness {3}{R}
|
||||
this.addAbility(new MadnessAbility(new ManaCostsImpl("{3}{R}")));
|
||||
this.addAbility(new MadnessAbility(new ManaCostsImpl<>("{3}{R}")));
|
||||
}
|
||||
|
||||
private MalevolentWhispers(final MalevolentWhispers card) {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class MalignantGrowth extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{G}{U}");
|
||||
|
||||
// Cumulative upkeep {1}
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{1}")));
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{1}")));
|
||||
|
||||
// At the beginning of your upkeep, put a growth counter on Malignant Growth.
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class ManaChains extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
// Enchanted creature has "Cumulative upkeep {1}."
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(
|
||||
new CumulativeUpkeepAbility(new ManaCostsImpl("{1}")), AttachmentType.AURA)));
|
||||
new CumulativeUpkeepAbility(new ManaCostsImpl<>("{1}")), AttachmentType.AURA)));
|
||||
}
|
||||
|
||||
private ManaChains(final ManaChains card) {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class ManaforgeCinder extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {1}: Add {B} or {R}. Activate this ability no more than three times each turn.
|
||||
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new ManaforgeCinderManaEffect(), new ManaCostsImpl("{1}"), 3));
|
||||
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new ManaforgeCinderManaEffect(), new ManaCostsImpl<>("{1}"), 3));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class MannichiTheFeveredDream extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {1}{R}: Switch each creature's power and toughness until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessAllEffect(Duration.EndOfTurn), new ManaCostsImpl("{1}{R}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessAllEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{1}{R}")));
|
||||
}
|
||||
|
||||
private MannichiTheFeveredDream(final MannichiTheFeveredDream card) {
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ public final class ManorGargoyle extends CardImpl {
|
|||
ContinuousEffect effect2 = new LoseAbilitySourceEffect(DefenderAbility.getInstance(), Duration.EndOfTurn);
|
||||
effect2.addDependencyType(DependencyType.LooseDefenderEffect);
|
||||
effect2.setText("Until end of turn, {this} loses defender");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect2, new ManaCostsImpl("{1}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect2, new ManaCostsImpl<>("{1}"));
|
||||
effect2 = new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn);
|
||||
effect2.setText("and gains flying");
|
||||
ability.addEffect(effect2);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class ManorSkeleton extends CardImpl {
|
|||
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
// {1}{B}: Regenerate Manor Skeleton.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{1}{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{B}")));
|
||||
}
|
||||
|
||||
private ManorSkeleton(final ManorSkeleton card) {
|
||||
|
|
|
|||
|
|
@ -26,10 +26,10 @@ public final class MarangRiverSkeleton extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {B}: Regenerate Marang River Skeleton.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
|
||||
|
||||
// Megamorph {3}{B}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{3}{B}"), true));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{3}{B}"), true));
|
||||
}
|
||||
|
||||
private MarangRiverSkeleton(final MarangRiverSkeleton card) {
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public final class MarathWillOfTheWild extends CardImpl {
|
|||
// {X}, Remove X +1/+1 counters from Marath: Choose one - Put X +1/+1 counters on target creature;
|
||||
effect = new AddCountersTargetEffect(CounterType.P1P1.createInstance(0), ManacostVariableValue.REGULAR);
|
||||
effect.setText("Put X +1/+1 counters on target creature");
|
||||
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl("{X}"));
|
||||
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl<>("{X}"));
|
||||
ability.addCost(new MarathWillOfTheWildRemoveCountersCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class MarchesasSmuggler extends CardImpl {
|
|||
// Dethrone
|
||||
this.addAbility(new DethroneAbility());
|
||||
// {1}{U}{R}: Target creature you control gains haste until end of turn and can't be blocked this turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{1}{U}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}{U}{R}"));
|
||||
ability.addTarget(new TargetControlledCreaturePermanent());
|
||||
Effect effect = new CantBeBlockedTargetEffect(Duration.EndOfTurn);
|
||||
effect.setText("and can't be blocked this turn");
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class MarduBanner extends CardImpl {
|
|||
this.addAbility(new BlackManaAbility());
|
||||
|
||||
// {R}{W}{B}, {T}, Sacrifice Mardu Banner: Draw a card.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{R}{W}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{R}{W}{B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public final class Marjhan extends CardImpl {
|
|||
|
||||
// {U}{U}, Sacrifice a creature: Untap Marjhan. Activate this ability only during your upkeep.
|
||||
Ability ability = new ConditionalActivatedAbility(Zone.BATTLEFIELD,
|
||||
new UntapSourceEffect(), new ManaCostsImpl("{U}{U}"), new IsStepCondition(PhaseStep.UPKEEP), null);
|
||||
new UntapSourceEffect(), new ManaCostsImpl<>("{U}{U}"), new IsStepCondition(PhaseStep.UPKEEP), null);
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
@ -61,7 +61,7 @@ public final class Marjhan extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantAttackUnlessDefenderControllsPermanent(new FilterLandPermanent(SubType.ISLAND, "an Island"))));
|
||||
|
||||
// {U}{U}: Marjhan gets -1/-0 until end of turn and deals 1 damage to target attacking creature without flying.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(-1, 0, Duration.EndOfTurn), new ManaCostsImpl("{U}{U}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(-1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{U}{U}"));
|
||||
ability.addEffect(new DamageTargetEffect(1, "and"));
|
||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class MarkerBeetles extends CardImpl {
|
|||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
// {2}, Sacrifice Marker Beetles: Draw a card.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{2}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{2}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class MarkovDreadknight extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// {2}{B}, Discard a card: Put two +1/+1 counters on Markhov Dreadknight.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance(2)), new ManaCostsImpl("{2}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance(2)), new ManaCostsImpl<>("{2}{B}"));
|
||||
ability.addCost(new DiscardCardCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public final class MarshHulk extends CardImpl {
|
|||
this.toughness = new MageInt(6);
|
||||
|
||||
// Megamorph {6}{B}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{6}{B}"), true));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{6}{B}"), true));
|
||||
}
|
||||
|
||||
private MarshHulk(final MarshHulk card) {
|
||||
|
|
|
|||
|
|
@ -33,10 +33,10 @@ public final class MarshalingCry extends CardImpl {
|
|||
this.getSpellAbility().addEffect(effect);
|
||||
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
|
||||
// Flashback {3}{W}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{3}{W}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{3}{W}")));
|
||||
}
|
||||
|
||||
private MarshalingCry(final MarshalingCry card) {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public final class MartyrOfSands extends CardImpl {
|
|||
// {1}, Reveal X white cards from your hand, Sacrifice Martyr of Sands: You gain three times X life.
|
||||
Effect effect = new GainLifeEffect(new MultipliedValue(RevealTargetFromHandCostCount.instance, 3));
|
||||
effect.setText("You gain three times X life.");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{1}"));
|
||||
ability.addCost(new RevealTargetFromHandCost(new TargetCardInHand(0, Integer.MAX_VALUE, filter)));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class MartyredRusalka extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {W}, Sacrifice a creature: Target creature can't attack this turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantAttackTargetEffect(Duration.EndOfTurn), new ManaCostsImpl("{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantAttackTargetEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{W}"));
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class MaskedAdmirers extends CardImpl {
|
|||
OneShotEffect effect = new ReturnToHandSourceEffect();
|
||||
effect.setText("return {this} from your graveyard to your hand");
|
||||
this.addAbility(new SpellCastControllerTriggeredAbility(
|
||||
Zone.GRAVEYARD, new DoIfCostPaid(effect, new ManaCostsImpl("{G}{G}")), StaticFilters.FILTER_SPELL_A_CREATURE, false, false));
|
||||
Zone.GRAVEYARD, new DoIfCostPaid(effect, new ManaCostsImpl<>("{G}{G}")), StaticFilters.FILTER_SPELL_A_CREATURE, false, false));
|
||||
}
|
||||
|
||||
private MaskedAdmirers(final MaskedAdmirers card) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class MaskedBlackguard extends CardImpl {
|
|||
|
||||
// {2}{B}: Masked Blackguard gets +1/+1 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{2}{B}")
|
||||
new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{2}{B}")
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class MassDiminish extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetPlayer());
|
||||
|
||||
// Flashback {3}{U}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{3}{U}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{3}{U}")));
|
||||
}
|
||||
|
||||
private MassDiminish(final MassDiminish card) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class MasterOfPearls extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// Morph {3}{W}{W}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{3}{W}{W}")));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{3}{W}{W}")));
|
||||
// When Master of Pearls is turned face up, creatures you control get +2/+2 until end of turn.
|
||||
this.addAbility(new TurnedFaceUpSourceTriggeredAbility(new BoostControlledEffect(2, 2, Duration.EndOfTurn, FILTER_PERMANENT_CREATURES)));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public final class MasterOfTheVeil extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// Morph {2}{U}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{2}{U}")));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{2}{U}")));
|
||||
|
||||
// When Master of the Veil is turned face up, you may turn target creature with a morph ability face down.
|
||||
Ability ability = new TurnedFaceUpSourceTriggeredAbility(new MasterOfTheVeilEffect(), false, true);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class MasterTransmuter extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {U}, {tap}, Return an artifact you control to its owner's hand: You may put an artifact card from your hand onto the battlefield.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutCardFromHandOntoBattlefieldEffect(new FilterArtifactCard("an artifact card")), new ManaCostsImpl("{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutCardFromHandOntoBattlefieldEffect(new FilterArtifactCard("an artifact card")), new ManaCostsImpl<>("{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new ReturnToHandChosenControlledPermanentCost(new TargetControlledPermanent(new FilterControlledArtifactPermanent("an artifact"))));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class MasteryOfTheUnseen extends CardImpl {
|
|||
new FilterControlledPermanent("a permanent you control")));
|
||||
|
||||
// {3}{W}: Manifest the top card of your library.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ManifestEffect(1), new ManaCostsImpl("{3}{W}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ManifestEffect(1), new ManaCostsImpl<>("{3}{W}")));
|
||||
}
|
||||
|
||||
private MasteryOfTheUnseen(final MasteryOfTheUnseen card) {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class MatsuTribeBirdstalker extends CardImpl {
|
|||
// {G}: Matsu-Tribe Birdstalker gains reach until end of turn. (It can block creatures with flying.)
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new GainAbilitySourceEffect(ReachAbility.getInstance(), Duration.EndOfTurn),
|
||||
new ManaCostsImpl("{G}")));
|
||||
new ManaCostsImpl<>("{G}")));
|
||||
}
|
||||
|
||||
private MatsuTribeBirdstalker(final MatsuTribeBirdstalker card) {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class MatsuTribeDecoy extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {2}{G}: Target creature blocks Matsu-Tribe Decoy this turn if able.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MustBeBlockedByTargetSourceEffect(), new ManaCostsImpl("{2}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MustBeBlockedByTargetSourceEffect(), new ManaCostsImpl<>("{2}{G}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
// Whenever Kashi-Tribe Reaver deals combat damage to a creature, tap that creature and it doesn't untap during its controller's next untap step.
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class MawOfKozilek extends CardImpl {
|
|||
this.addAbility(new DevoidAbility(this.color));
|
||||
|
||||
// {C}: Maw of Kozilek gets +2/-2 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, -2, Duration.EndOfTurn), new ManaCostsImpl("{C}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, -2, Duration.EndOfTurn), new ManaCostsImpl<>("{C}")));
|
||||
}
|
||||
|
||||
private MawOfKozilek(final MawOfKozilek card) {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public final class MayaelTheAnima extends CardImpl {
|
|||
// Put the rest on the bottom of your library in any order.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(
|
||||
new LookLibraryAndPickControllerEffect(5, 1, filter, PutCards.BATTLEFIELD, PutCards.BOTTOM_ANY),
|
||||
new ManaCostsImpl("{3}{R}{G}{W}"));
|
||||
new ManaCostsImpl<>("{3}{R}{G}{W}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public final class MedicineBag extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{3}");
|
||||
|
||||
// {1}, {tap}, Discard a card: Regenerate target creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl("{1}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl<>("{1}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new DiscardCardCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class Melancholy extends CardImpl {
|
|||
// Enchanted creature doesn't untap during its controller's untap step.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new DontUntapInControllersUntapStepEnchantedEffect()));
|
||||
// At the beginning of your upkeep, sacrifice Melancholy unless you pay {B}.
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{B}")),
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl<>("{B}")),
|
||||
TargetController.YOU, false));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class MeletisCharlatan extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {2}{U}, {T}: The controller of target instant or sorcery spell copies it. That player may choose new targets for the copy.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MeletisCharlatanCopyTargetSpellEffect(), new ManaCostsImpl("{2}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MeletisCharlatanCopyTargetSpellEffect(), new ManaCostsImpl<>("{2}{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
Target target = new TargetSpell(StaticFilters.FILTER_SPELL_INSTANT_OR_SORCERY);
|
||||
ability.addTarget(target);
|
||||
|
|
|
|||
|
|
@ -35,12 +35,12 @@ public final class Memnarch extends CardImpl {
|
|||
// {1}{U}{U}: Target permanent becomes an artifact in addition to its other types.
|
||||
Effect effect = new AddCardTypeTargetEffect(Duration.Custom, CardType.ARTIFACT);
|
||||
effect.setText("Target permanent becomes an artifact in addition to its other types");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{U}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{1}{U}{U}"));
|
||||
ability.addTarget(new TargetPermanent());
|
||||
this.addAbility(ability);
|
||||
|
||||
// {3}{U}: Gain control of target artifact.
|
||||
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainControlTargetEffect(Duration.WhileOnBattlefield), new ManaCostsImpl("{3}{U}"));
|
||||
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainControlTargetEffect(Duration.WhileOnBattlefield), new ManaCostsImpl<>("{3}{U}"));
|
||||
ability2.addTarget(new TargetArtifactPermanent());
|
||||
this.addAbility(ability2);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class MemorialToFolly extends CardImpl {
|
|||
// {2}{B}, {T}, Sacrifice Memorial to Folly: Return target creature card from your graveyard to your hand.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect()
|
||||
.setText("Return target creature card from your graveyard to your hand"),
|
||||
new ManaCostsImpl("{2}{B}"));
|
||||
new ManaCostsImpl<>("{2}{B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetCardInYourGraveyard(new FilterCreatureCard("creature card from your graveyard")));
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class MemorialToGenius extends CardImpl {
|
|||
this.addAbility(new BlueManaAbility());
|
||||
|
||||
// {4}{U}, {T}, Sacrifice Memorial to Genius: Draw two cards.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(2), new ManaCostsImpl("{4}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(2), new ManaCostsImpl<>("{4}{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class MemorialToGlory extends CardImpl {
|
|||
this.addAbility(new WhiteManaAbility());
|
||||
|
||||
// {3}{W}, {T}, Sacrifice Memorial to Glory: Creature two 1/1 white Soldier creature tokens.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new SoldierToken(), 2), new ManaCostsImpl("{3}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new SoldierToken(), 2), new ManaCostsImpl<>("{3}{W}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class MemorialToUnity extends CardImpl {
|
|||
// Then put the rest on the bottom of your library in a random order.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new LookLibraryAndPickControllerEffect(5, 1, StaticFilters.FILTER_CARD_CREATURE_A, PutCards.HAND, PutCards.BOTTOM_RANDOM),
|
||||
new ManaCostsImpl("{2}{G}"));
|
||||
new ManaCostsImpl<>("{2}{G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class MemorialToWar extends CardImpl {
|
|||
this.addAbility(new RedManaAbility());
|
||||
|
||||
// {4}{R}, {T}, Sacrifice Memorial to War: Destroy target land.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{4}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{4}{R}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetLandPermanent());
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class MemoryLeak extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetOpponent());
|
||||
|
||||
// Cycling {1}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{1}")));
|
||||
}
|
||||
|
||||
private MemoryLeak(final MemoryLeak card) {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class MemorysJourney extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetCardInTargetPlayersGraveyard(3));
|
||||
|
||||
// Flashback {G}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{G}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{G}")));
|
||||
}
|
||||
|
||||
private MemorysJourney(final MemorysJourney card) {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public final class MentalDiscipline extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{U}{U}");
|
||||
|
||||
// {1}{U}, Discard a card: Draw a card.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{1}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{1}{U}"));
|
||||
ability.addCost(new DiscardCardCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class MentorOfTheMeek extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
//Whenever another creature with power 2 or less enters the battlefield under your control, you may pay 1. If you do, draw a card.
|
||||
Effect effect = new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{1}"));
|
||||
Effect effect = new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{1}"));
|
||||
Ability ability = new EntersBattlefieldControlledTriggeredAbility(
|
||||
Zone.BATTLEFIELD, effect, filter, false);
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class MercadianLift extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||
|
||||
// {1}, {tap}: Put a winch counter on Mercadian Lift.
|
||||
Ability ability = new SimpleActivatedAbility(new AddCountersSourceEffect(CounterType.WINCH.createInstance()), new ManaCostsImpl("{1}"));
|
||||
Ability ability = new SimpleActivatedAbility(new AddCountersSourceEffect(CounterType.WINCH.createInstance()), new ManaCostsImpl<>("{1}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ public final class MercenaryInformer extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeTargetedSourceEffect(filterBlack, Duration.WhileOnBattlefield)));
|
||||
|
||||
// {2}{W}: Put target nontoken Mercenary on the bottom of its owner's library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutOnLibraryTargetEffect(false), new ManaCostsImpl("{2}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutOnLibraryTargetEffect(false), new ManaCostsImpl<>("{2}{W}"));
|
||||
ability.addTarget(new TargetPermanent(filterMercenary));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class MerchantOfTheVale extends AdventureCard {
|
|||
|
||||
// {2}{R}, Discard a card: Draw a card.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{2}{R}")
|
||||
new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{2}{R}")
|
||||
);
|
||||
ability.addCost(new DiscardCardCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class MercilessEternal extends CardImpl {
|
|||
this.addAbility(new AfflictAbility(2));
|
||||
|
||||
// {2}{B}, Discard a card: Merciless Eternal gets +2/+2 until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl("{2}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl<>("{2}{B}"));
|
||||
ability.addCost(new DiscardCardCost(false));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class MercilessJavelineer extends CardImpl {
|
|||
CounterType.M1M1.createInstance(),
|
||||
StaticValue.get(1),
|
||||
Outcome.Removal),
|
||||
new ManaCostsImpl("{2}"));
|
||||
new ManaCostsImpl<>("{2}"));
|
||||
ability.addEffect(
|
||||
new CantBlockTargetEffect(Duration.EndOfTurn)
|
||||
.setText("That creature can't block this turn."));
|
||||
|
|
|
|||
|
|
@ -34,12 +34,12 @@ public final class MercurialChemister extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {U}, {T}: Draw two cards.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(2), new ManaCostsImpl("{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(2), new ManaCostsImpl<>("{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
// {R}, {T}, Discard a card: Mercurial Chemister deals damage to target creature equal to the discarded card's converted mana cost.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(DiscardCostCardManaValue.instance), new ManaCostsImpl("{R}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(DiscardCostCardManaValue.instance), new ManaCostsImpl<>("{R}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new DiscardCardCost());
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class MercurialPretender extends CardImpl {
|
|||
// You may have Mercurial Pretender enter the battlefield as a copy of any creature you control,
|
||||
// except it has "{2}{U}{U}: Return this creature to its owner's hand."
|
||||
Effect effect = new CopyPermanentEffect(new FilterControlledCreaturePermanent(),
|
||||
new AbilityCopyApplier(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{2}{U}{U}"))));
|
||||
new AbilityCopyApplier(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl<>("{2}{U}{U}"))));
|
||||
effect.setText(effectText);
|
||||
this.addAbility(new EntersBattlefieldAbility(effect, true));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class MerfolkSeastalkers extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
this.addAbility(new IslandwalkAbility());
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{2}{U}"));
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl<>("{2}{U}"));
|
||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class MerfolkSeer extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Merfolk Seer dies, you may pay {1}{U}. If you do, draw a card.
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{1}{U}"))));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{1}{U}"))));
|
||||
}
|
||||
|
||||
private MerfolkSeer(final MerfolkSeer card) {
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class MerfolkSkydiver extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// {3}{G}{U}: Proliferate. (Choose any number of permanents and/or players, then give each another counter of each kind already there.)
|
||||
this.addAbility(new SimpleActivatedAbility(new ProliferateEffect(), new ManaCostsImpl("{3}{G}{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new ProliferateEffect(), new ManaCostsImpl<>("{3}{G}{U}")));
|
||||
}
|
||||
|
||||
private MerfolkSkydiver(final MerfolkSkydiver card) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class MerrowGrimeblotter extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {1}{UB}, {untap}: Target creature gets -2/-0 until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-2, 0, Duration.EndOfTurn), new ManaCostsImpl("{1}{U/B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-2, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{U/B}"));
|
||||
ability.addCost(new UntapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class MerrowWavebreakers extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {1}{U}, {untap}: Merrow Wavebreakers gains flying until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{1}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}{U}"));
|
||||
ability.addCost(new UntapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class MesaFalcon extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {1}{W}: Mesa Falcon gets +0/+1 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0, 1, Duration.EndOfTurn), new ManaCostsImpl("{1}{W}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{W}")));
|
||||
}
|
||||
|
||||
private MesaFalcon(final MesaFalcon card) {
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ public final class MesmericTrance extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{U}{U}");
|
||||
|
||||
// Cumulative upkeep {1}
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{1}")));
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{1}")));
|
||||
// {U}, Discard a card: Draw a card.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{U}"));
|
||||
ability.addCost(new DiscardCardCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class Metallurgeon extends CardImpl {
|
|||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl("{W}"));
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl<>("{W}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetArtifactPermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public final class MetallurgicSummonings extends CardImpl {
|
|||
|
||||
// {3}{U}{U}, Exile Metallurgic Summons: Return all instant and sorcery cards from your graveyard to your hand. Activate this ability only if you control six or more artifacts.
|
||||
Ability ability = new ConditionalActivatedAbility(Zone.BATTLEFIELD,
|
||||
new MetallurgicSummoningsReturnEffect(), new ManaCostsImpl("{3}{U}{U}"),
|
||||
new MetallurgicSummoningsReturnEffect(), new ManaCostsImpl<>("{3}{U}{U}"),
|
||||
new PermanentsOnTheBattlefieldCondition(new FilterControlledArtifactPermanent(), ComparisonType.MORE_THAN, 5),
|
||||
"{3}{U}{U}, Exile {this}: Return all instant and sorcery cards from your graveyard to your hand."
|
||||
+ " Activate only if you control six or more artifacts.");
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class MetathranAerostat extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// {X}{U}: You may put a creature card with converted mana cost X from your hand onto the battlefield. If you do, return Metathran Aerostat to its owner's hand.
|
||||
this.addAbility(new SimpleActivatedAbility(new MetathranAerostatEffect(), new ManaCostsImpl("{X}{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new MetathranAerostatEffect(), new ManaCostsImpl<>("{X}{U}")));
|
||||
}
|
||||
|
||||
private MetathranAerostat(final MetathranAerostat card) {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public final class MetathranTransport extends CardImpl {
|
|||
this.addAbility(new SimpleEvasionAbility(new CantBeBlockedByCreaturesSourceEffect(filter, Duration.WhileOnBattlefield)));
|
||||
// {U}: Target creature becomes blue until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesColorTargetEffect(ObjectColor.BLUE,
|
||||
Duration.EndOfTurn), new ManaCostsImpl("{U}"));
|
||||
Duration.EndOfTurn), new ManaCostsImpl<>("{U}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class MetathranZombie extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {B}: Regenerate Metathran Zombie.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
|
||||
}
|
||||
|
||||
private MetathranZombie(final MetathranZombie card) {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class MeteorStorm extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{R}{G}");
|
||||
|
||||
// {2}{R}{G}, Discard two cards at random: Meteor Storm deals 4 damage to any target.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(4), new ManaCostsImpl("{2}{R}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(4), new ManaCostsImpl<>("{2}{R}{G}"));
|
||||
ability.addCost(new DiscardTargetCost(new TargetCardInHand(2, new FilterCard("two cards at random")), true));
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class Metrognome extends CardImpl {
|
|||
this.addAbility(new DiscardedByOpponentTriggeredAbility(new CreateTokenEffect(new GnomeToken(), 4)));
|
||||
|
||||
// {4}, {tap}: Create a 1/1 colorless Gnome artifact creature token.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new GnomeToken()), new ManaCostsImpl("{4}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new GnomeToken()), new ManaCostsImpl<>("{4}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class MetropolisSprite extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {U}: Metropolis Sprite gets +1/-1 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, -1, Duration.EndOfTurn), new ManaCostsImpl("{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, -1, Duration.EndOfTurn), new ManaCostsImpl<>("{U}")));
|
||||
}
|
||||
|
||||
private MetropolisSprite(final MetropolisSprite card) {
|
||||
|
|
|
|||
|
|
@ -49,12 +49,12 @@ public final class MetzaliTowerOfTriumph extends CardImpl {
|
|||
this.addAbility(new AnyColorManaAbility());
|
||||
|
||||
// {1}{R}, {T}: Metzali, Tower of Triumph deals 2 damage to each opponent.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamagePlayersEffect(2, TargetController.OPPONENT), new ManaCostsImpl("{1}{R}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamagePlayersEffect(2, TargetController.OPPONENT), new ManaCostsImpl<>("{1}{R}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
// {2}{W}, {T}: Choose a creature at random that attacked this turn. Destroy that creature.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MetzaliTowerOfTriumphEffect(), new ManaCostsImpl("{2}{W}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MetzaliTowerOfTriumphEffect(), new ManaCostsImpl<>("{2}{W}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addWatcher(new AttackedThisTurnWatcher());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class MidnightClock extends CardImpl {
|
|||
|
||||
// {2}{U}: Put an hour counter on Midnight Clock.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new AddCountersSourceEffect(CounterType.HOUR.createInstance()), new ManaCostsImpl("{2}{U}")
|
||||
new AddCountersSourceEffect(CounterType.HOUR.createInstance()), new ManaCostsImpl<>("{2}{U}")
|
||||
));
|
||||
|
||||
// At the beginning of each upkeep, put an hour counter on Midnight Clock.
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class MidsummerRevel extends CardImpl {
|
|||
new AddCountersSourceEffect(CounterType.VERSE.createInstance(), true), TargetController.YOU, true));
|
||||
// {G}, Sacrifice Midsummer Revel: create X 3/3 green Beast creature tokens, where X is the number of verse counters on Midsummer Revel.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new BeastToken(),
|
||||
new CountersSourceCount(CounterType.VERSE)), new ManaCostsImpl("{G}"));
|
||||
new CountersSourceCount(CounterType.VERSE)), new ManaCostsImpl<>("{G}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class MigrationPath extends CardImpl {
|
|||
));
|
||||
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private MigrationPath(final MigrationPath card) {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public final class MigratoryRoute extends CardImpl {
|
|||
getSpellAbility().addEffect(new CreateTokenEffect(new BirdToken(), 4));
|
||||
|
||||
// Basic landcycling {2}
|
||||
this.addAbility(new BasicLandcyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new BasicLandcyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private MigratoryRoute(final MigratoryRoute card) {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public final class MilitiasPride extends CardImpl {
|
|||
class MilitiasPrideTriggerAbility extends TriggeredAbilityImpl {
|
||||
|
||||
public MilitiasPrideTriggerAbility() {
|
||||
super(Zone.BATTLEFIELD, new DoIfCostPaid(new CreateTokenEffect(new KithkinSoldierToken(), 1, true, true), new ManaCostsImpl("{W}")));
|
||||
super(Zone.BATTLEFIELD, new DoIfCostPaid(new CreateTokenEffect(new KithkinSoldierToken(), 1, true, true), new ManaCostsImpl<>("{W}")));
|
||||
}
|
||||
|
||||
public MilitiasPrideTriggerAbility(final MilitiasPrideTriggerAbility ability) {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class MinaAndDennWildborn extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PlayAdditionalLandsControllerEffect(1, Duration.WhileOnBattlefield)));
|
||||
|
||||
// {R}{G}, Return a land you control to its owner's hand: Target creature gains trample until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(TrampleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{R}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(TrampleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{R}{G}"));
|
||||
ability.addCost(new ReturnToHandChosenControlledPermanentCost(new TargetControlledPermanent(filter)));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class MinamoSightbender extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {X}, {T}: Target creature with power X or less can't be blocked this turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(), new ManaCostsImpl("{X}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(), new ManaCostsImpl<>("{X}"));
|
||||
Target target = new TargetPermanent(filter);
|
||||
ability.setTargetAdjuster(MinamoSightbenderAdjuster.instance);
|
||||
ability.addTarget(target);
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public final class MindHarness extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// Cumulative upkeep {1}
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{1}")));
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{1}")));
|
||||
|
||||
// You control enchanted creature.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ControlEnchantedEffect()));
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class MindRake extends CardImpl {
|
|||
// Overload {1}{B}
|
||||
this.addAbility(new OverloadAbility(this, new DiscardEachPlayerEffect(
|
||||
2, false
|
||||
), new ManaCostsImpl("{1}{B}")));
|
||||
), new ManaCostsImpl<>("{1}{B}")));
|
||||
}
|
||||
|
||||
private MindRake(final MindRake card) {
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue