Fix raw use of parameterized class 'ManaCostsImpl' - 'e' cards (#9035)

This commit is contained in:
DeepCrimson 2022-05-30 07:51:31 -07:00 committed by GitHub
parent 178a5bf346
commit abc1c9fe4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
114 changed files with 126 additions and 126 deletions

View file

@ -25,7 +25,7 @@ public final class EarthRift extends CardImpl {
this.getSpellAbility().addEffect(new DestroyTargetEffect());
this.getSpellAbility().addTarget(new TargetLandPermanent());
// Flashback {5}{R}{R}
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{5}{R}{R}")));
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{5}{R}{R}")));
}
private EarthRift(final EarthRift card) {

View file

@ -37,7 +37,7 @@ public final class Earthblighter extends CardImpl {
this.toughness = new MageInt(1);
// {2}{B}, {tap}, Sacrifice a Goblin: Destroy target land.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{2}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{2}{B}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter)));
ability.addTarget(new TargetLandPermanent());

View file

@ -22,7 +22,7 @@ public final class Earthbrawn extends CardImpl {
this.getSpellAbility().addEffect(new BoostTargetEffect(3, 3, Duration.EndOfTurn));
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
this.addAbility(new ReinforceAbility(1, new ManaCostsImpl("{1}{G}")));
this.addAbility(new ReinforceAbility(1, new ManaCostsImpl<>("{1}{G}")));
}
private Earthbrawn(final Earthbrawn card) {

View file

@ -37,8 +37,8 @@ public final class EarthenGoo extends CardImpl {
// Cumulative upkeep {R} or {G}
this.addAbility(new CumulativeUpkeepAbility(new OrCost(
"{R} or {G}", new ManaCostsImpl("{R}"),
new ManaCostsImpl("{G}")
"{R} or {G}", new ManaCostsImpl<>("{R}"),
new ManaCostsImpl<>("{G}")
)));
// Earthen Goo gets +1/+1 for each age counter on it.

View file

@ -32,7 +32,7 @@ public final class Earthlink extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{B}{R}{G}");
// At the beginning of your upkeep, sacrifice Earthlink unless you pay {2}.
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{2}")), TargetController.YOU, false));
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl<>("{2}")), TargetController.YOU, false));
// Whenever a creature dies, that creature's controller sacrifices a land.
this.addAbility(new DiesCreatureTriggeredAbility(new EarthlinkEffect(), false, false, true));

View file

@ -55,7 +55,7 @@ public final class EarthshakerKhenra extends CardImpl {
this.addAbility(ability);
// Eternalize {4}{R}{R}
this.addAbility(new EternalizeAbility(new ManaCostsImpl("{4}{R}{R}"), this));
this.addAbility(new EternalizeAbility(new ManaCostsImpl<>("{4}{R}{R}"), this));
}
private EarthshakerKhenra(final EarthshakerKhenra card) {

View file

@ -40,7 +40,7 @@ public final class EasternPaladin extends CardImpl {
this.power = new MageInt(3);
this.toughness = new MageInt(3);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{B}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{B}{B}"));
ability.addTarget(new TargetCreaturePermanent(filter));
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -34,7 +34,7 @@ public final class EasyPrey extends CardImpl {
this.getSpellAbility().addTarget(new TargetPermanent(filter));
// Cycling {2}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
}
private EasyPrey(final EasyPrey card) {

View file

@ -44,12 +44,12 @@ public final class EaterOfHope extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// {B}, Sacrifice another creature: Regenerate Eater of Hope.
Ability regenAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}"));
Ability regenAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}"));
regenAbility.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(1, 1, StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE, true)));
this.addAbility(regenAbility);
// {2}{B}, Sacrifice two other creatures: Destroy target creature.
Ability destroyAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{2}{B}"));
Ability destroyAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{2}{B}"));
destroyAbility.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(2, 2, destroyFilter, true)));
destroyAbility.addTarget(new TargetCreaturePermanent());
this.addAbility(destroyAbility);

View file

@ -26,7 +26,7 @@ public final class EbonyTreefolk extends CardImpl {
this.power = new MageInt(3);
this.toughness = new MageInt(3);
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{B}{G}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{B}{G}")));
}
private EbonyTreefolk(final EbonyTreefolk card) {

View file

@ -40,12 +40,12 @@ public final class EchoMage extends LevelerCard {
this.toughness = new MageInt(3);
// Level up {1}{U}
this.addAbility(new LevelUpAbility(new ManaCostsImpl("{1}{U}")));
this.addAbility(new LevelUpAbility(new ManaCostsImpl<>("{1}{U}")));
// LEVEL 2-3
// 2/4
// {U}{U}, {tap}: Copy target instant or sorcery spell. You may choose new targets for the copy.
Abilities<Ability> abilities1 = new AbilitiesImpl<>();
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CopyTargetSpellEffect(), new ManaCostsImpl("{U}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CopyTargetSpellEffect(), new ManaCostsImpl<>("{U}{U}"));
ability.addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_INSTANT_OR_SORCERY));
ability.addCost(new TapSourceCost());
abilities1.add(ability);
@ -53,7 +53,7 @@ public final class EchoMage extends LevelerCard {
// 2/5
// {U}{U}, {tap}: Copy target instant or sorcery spell twice. You may choose new targets for the copies.
Abilities<Ability> abilities2 = new AbilitiesImpl<>();
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new EchoMageEffect(), new ManaCostsImpl("{U}{U}"));
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new EchoMageEffect(), new ManaCostsImpl<>("{U}{U}"));
ability.addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_INSTANT_OR_SORCERY));
ability.addCost(new TapSourceCost());
abilities2.add(ability);

View file

@ -27,7 +27,7 @@ public final class EchoOfEons extends CardImpl {
this.getSpellAbility().addEffect(effect);
// Flashback {2}{U}
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{2}{U}")));
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{2}{U}")));
}
private EchoOfEons(final EchoOfEons card) {

View file

@ -28,7 +28,7 @@ public final class EchoTracer extends CardImpl {
this.toughness = new MageInt(2);
// Morph {2}{U}
this.addAbility(new MorphAbility(new ManaCostsImpl("{2}{U}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{2}{U}")));
// When Echo Tracer is turned face up, return target creature to its owner's hand.
Ability ability = new TurnedFaceUpSourceTriggeredAbility(new ReturnToHandTargetEffect());
ability.addTarget(new TargetCreaturePermanent());

View file

@ -20,7 +20,7 @@ public final class EchoesOfTheKinTree extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{W}");
// {2}{W}: Bolster 1.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BolsterEffect(1),new ManaCostsImpl("{2}{W}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BolsterEffect(1),new ManaCostsImpl<>("{2}{W}")));
}
private EchoesOfTheKinTree(final EchoesOfTheKinTree card) {

View file

@ -33,7 +33,7 @@ public final class EdificeOfAuthority extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
// {1}, {T}: Target creature can't attack this turn. Put a brick counter on Edifice of Authority.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantAttackTargetEffect(Duration.EndOfTurn), new ManaCostsImpl("{1}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantAttackTargetEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{1}"));
ability.addCost(new TapSourceCost());
ability.addEffect(new AddCountersSourceEffect(CounterType.BRICK.createInstance()));
ability.addTarget(new TargetCreaturePermanent());
@ -41,7 +41,7 @@ public final class EdificeOfAuthority extends CardImpl {
// {1}, {T}: Until your next turn, target creature can't attack or block and its activated abilities can't be activated. Activate this ability only if there are three or more brick counter on Edifice of Authority.
Condition condition = new SourceHasCounterCondition(CounterType.BRICK, 3, Integer.MAX_VALUE);
Ability ability2 = new ConditionalActivatedAbility(Zone.BATTLEFIELD, new EdificeOfAuthorityEffect(), new ManaCostsImpl("{1}"), condition, rule);
Ability ability2 = new ConditionalActivatedAbility(Zone.BATTLEFIELD, new EdificeOfAuthorityEffect(), new ManaCostsImpl<>("{1}"), condition, rule);
ability2.addCost(new TapSourceCost());
ability2.addTarget(new TargetCreaturePermanent());
this.addAbility(ability2);

View file

@ -42,7 +42,7 @@ public final class EfreetWeaponmaster extends CardImpl {
this.addAbility(new EfreetWeaponmasterAbility());
// Morph {2}{U}{R}{W}
this.addAbility(new MorphAbility(new ManaCostsImpl("{2}{U}{R}{W}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{2}{U}{R}{W}")));
}
private EfreetWeaponmaster(final EfreetWeaponmaster card) {

View file

@ -61,7 +61,7 @@ public final class EgonGodOfDeath extends ModalDoubleFacesCard {
));
// {2}{B}, {T}, Exile a creature card from your graveyard: Draw a card
Ability ability = new SimpleActivatedAbility(new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{2}{B}"));
Ability ability = new SimpleActivatedAbility(new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{2}{B}"));
ability.addCost(new TapSourceCost());
ability.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_A)));
this.getRightHalfCard().addAbility(ability);

View file

@ -29,7 +29,7 @@ public final class EidolonOfPhilosophy extends CardImpl {
this.toughness = new MageInt(2);
// {6}{U}, Sacrifice Eidolon of Philosophy: Draw three cards.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(3), new ManaCostsImpl("{6}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(3), new ManaCostsImpl<>("{6}{U}"));
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);
}

View file

@ -37,13 +37,13 @@ public final class EightAndAHalfTails extends CardImpl {
this.toughness = new MageInt(2);
// {1}{W}: Target permanent you control gains protection from white until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(ProtectionAbility.from(ObjectColor.WHITE), Duration.EndOfTurn), new ManaCostsImpl("{1}{W}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(ProtectionAbility.from(ObjectColor.WHITE), Duration.EndOfTurn), new ManaCostsImpl<>("{1}{W}"));
Target target = new TargetControlledPermanent();
ability.addTarget(target);
this.addAbility(ability);
// {1}: Target spell or permanent becomes white until end of turn.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new BecomesColorTargetEffect(ObjectColor.WHITE, Duration.EndOfTurn, "Target spell or permanent becomes white until end of turn"), new ManaCostsImpl("{1}"));
new BecomesColorTargetEffect(ObjectColor.WHITE, Duration.EndOfTurn, "Target spell or permanent becomes white until end of turn"), new ManaCostsImpl<>("{1}"));
target = new TargetSpellOrPermanent();
ability.addTarget(target);
this.addAbility(ability);

View file

@ -42,7 +42,7 @@ public final class ElderDruid extends CardImpl {
this.toughness = new MageInt(2);
// {3}{G}, {tap}: You may tap or untap target artifact, creature, or land.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MayTapOrUntapTargetEffect(), new ManaCostsImpl("{3}{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MayTapOrUntapTargetEffect(), new ManaCostsImpl<>("{3}{G}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);

View file

@ -32,7 +32,7 @@ public final class ElderOfLaurels extends CardImpl {
// {3}{G}: Target creature gets +X/+X until end of turn, where X is the number of creatures you control.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new BoostTargetEffect(CreaturesYouControlCount.instance, CreaturesYouControlCount.instance, Duration.EndOfTurn, true),
new ManaCostsImpl("{3}{G}"));
new ManaCostsImpl<>("{3}{G}"));
ability.addTarget(new TargetCreaturePermanent());
ability.addHint(CreaturesYouControlHint.instance);
this.addAbility(ability);

View file

@ -40,7 +40,7 @@ public final class EldraziObligator extends CardImpl {
// Haste
this.addAbility(HasteAbility.getInstance());
DoIfCostPaid costPaidEffect = new DoIfCostPaid(new GainControlTargetEffect(Duration.EndOfTurn), new ManaCostsImpl("{1}{C}"));
DoIfCostPaid costPaidEffect = new DoIfCostPaid(new GainControlTargetEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{1}{C}"));
Effect untapEffect = new UntapTargetEffect();
untapEffect.setText("untap that creature,");
Effect hasteEffect = new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn);

View file

@ -35,7 +35,7 @@ public final class ElectricEel extends CardImpl {
// {R}{R}: Electric Eel gets +2/+0 until end of turn and deals 1 damage to you.
Effect effect = new DamageControllerEffect(1);
effect.setText("and deals 1 damage to you");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{R}{R}"));
ability.addEffect(effect);
this.addAbility(ability);
}

View file

@ -25,7 +25,7 @@ public final class Electrickery extends CardImpl {
this.getSpellAbility().addEffect(new DamageTargetEffect(1));
// Overload {1}{R} (You may cast this spell for its overload cost. If you do, change its text by replacing all instances of "target" with "each.")
this.addAbility(new OverloadAbility(this, new DamageAllEffect(1, StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL), new ManaCostsImpl("{1}{R}")));
this.addAbility(new OverloadAbility(this, new DamageAllEffect(1, StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL), new ManaCostsImpl<>("{1}{R}")));
}
private Electrickery(final Electrickery card) {

View file

@ -103,7 +103,7 @@ class ElectropotenceEffect extends OneShotEffect {
if (creature != null && controller != null) {
if (controller.chooseUse(Outcome.Damage, "Pay {2}{R} to do the damage?", source, game)) {
// if (controller.chooseUse(Outcome.Damage, "Pay {2}{R}? If you do, " + creature.getName() + " deals damage equal to its power to any target.", game)) {
ManaCosts manaCosts = new ManaCostsImpl("{2}{R}");
ManaCosts manaCosts = new ManaCostsImpl<>("{2}{R}");
if (manaCosts.pay(source, game, source, controller.getId(), false, null)) {
int amount = creature.getPower().getValue();
UUID target = source.getTargets().getFirstTarget();

View file

@ -27,7 +27,7 @@ public final class ElementalMasterpiece extends CardImpl {
// {U/R}{U/R}, Discard Elemental Masterpiece: 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);

View file

@ -24,7 +24,7 @@ public final class ElephantAmbush extends CardImpl {
// Create a 3/3 green Elephant creature token.
this.getSpellAbility().addEffect(new CreateTokenEffect(new ElephantToken()));
// Flashback {6}{G}{G}
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{6}{G}{G}")));
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{6}{G}{G}")));
}
private ElephantAmbush(final ElephantAmbush card) {

View file

@ -35,7 +35,7 @@ public final class ElephantGrass extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{G}");
// Cumulative upkeep {1}
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{1}")));
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{1}")));
// Black creatures can't attack you.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantAttackYouAllEffect(Duration.WhileOnBattlefield, filterBlack)));

View file

@ -26,7 +26,7 @@ public final class ElfReplica extends CardImpl {
this.subtype.add(SubType.ELF);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{1}{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{1}{G}"));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);

View file

@ -42,7 +42,7 @@ public final class EliteArcanist extends CardImpl {
this.addAbility(new EntersBattlefieldTriggeredAbility(new EliteArcanistImprintEffect(), true));
// {X}, {T}: Copy the exiled card. You may cast the copy without paying its mana cost. X is the converted mana cost of the exiled card.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new EliteArcanistCopyEffect(), new ManaCostsImpl("{X}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new EliteArcanistCopyEffect(), new ManaCostsImpl<>("{X}"));
ability.addCost(new TapSourceCost());
ability.setCostAdjuster(EliteArcanistAdjuster.instance);
this.addAbility(ability);

View file

@ -29,7 +29,7 @@ public final class EliteArrester extends CardImpl {
// {1}{U}, {T}: Tap target creature.
Ability ability = new SimpleActivatedAbility(
new TapTargetEffect(), new ManaCostsImpl("{1}{U}")
new TapTargetEffect(), new ManaCostsImpl<>("{1}{U}")
);
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());

View file

@ -30,7 +30,7 @@ public final class ElixirOfVitality extends CardImpl {
ability1.addCost(new SacrificeSourceCost());
this.addAbility(ability1);
// {8}, {tap}, Sacrifice Elixir of Vitality: You gain 8 life.
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(8), new ManaCostsImpl("{8}"));
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(8), new ManaCostsImpl<>("{8}"));
ability2.addCost(new TapSourceCost());
ability2.addCost(new SacrificeSourceCost());
this.addAbility(ability2);

View file

@ -24,7 +24,7 @@ public final class ElvenFortress extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{G}");
// {1}{G}: Target blocking creature gets +0/+1 until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(0, 1, Duration.EndOfTurn), new ManaCostsImpl("{1}{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(0, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{G}"));
ability.addTarget(new TargetCreaturePermanent(new FilterBlockingCreature()));
this.addAbility(ability);
}

View file

@ -25,7 +25,7 @@ public final class ElvenLyre extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{2}");
// {1}, {tap}, Sacrifice Elven Lyre: Target creature gets +2/+2 until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl("{1}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl<>("{1}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetCreaturePermanent());

View file

@ -31,7 +31,7 @@ public final class ElvishAberration extends CardImpl {
// {tap}: Add {G}{G}{G}.
this.addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, Mana.GreenMana(3), new TapSourceCost()));
// Forestcycling {2}
this.addAbility(new ForestcyclingAbility(new ManaCostsImpl("{2}")));
this.addAbility(new ForestcyclingAbility(new ManaCostsImpl<>("{2}")));
}
private ElvishAberration(final ElvishAberration card) {

View file

@ -58,7 +58,7 @@ public final class ElvishClancaller extends CardImpl {
new TargetCardInLibrary(filter2),
false
),
new ManaCostsImpl("{4}{G}{G}"));
new ManaCostsImpl<>("{4}{G}{G}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

View file

@ -30,7 +30,7 @@ public final class ElvishHerder extends CardImpl {
// {G}: Target creature gains trample until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(
TrampleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{G}"));
TrampleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{G}"));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

View file

@ -31,7 +31,7 @@ public final class ElvishHexhunter extends CardImpl {
this.toughness = new MageInt(1);
// {GW}, {tap}, Sacrifice Elvish Hexhunter: Destroy target enchantment.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{G/W}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{G/W}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetEnchantmentPermanent());

View file

@ -31,7 +31,7 @@ public final class ElvishHunter extends CardImpl {
// {1}{G}, {tap}: Target creature doesn't untap during its controller's next untap step.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DontUntapInControllersNextUntapStepTargetEffect("Target creature"),
new ManaCostsImpl("{1}{G}"));
new ManaCostsImpl<>("{1}{G}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -30,7 +30,7 @@ public final class ElvishLyrist extends CardImpl {
this.toughness = new MageInt(1);
// {G}, {tap}, Sacrifice Elvish Lyrist: Destroy target enchantment.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{G}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetEnchantmentPermanent());

View file

@ -37,7 +37,7 @@ public final class ElvishPathcutter extends CardImpl {
this.toughness = new MageInt(2);
// {2}{G}: Target Elf creature gains forestwalk until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(new ForestwalkAbility(), Duration.EndOfTurn), new ManaCostsImpl("{2}{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(new ForestwalkAbility(), Duration.EndOfTurn), new ManaCostsImpl<>("{2}{G}"));
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);
}

View file

@ -31,7 +31,7 @@ public final class ElvishPiper extends CardImpl {
// {G}, {tap}: You may put a creature card from your hand onto the battlefield.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_CREATURE_A),
new ManaCostsImpl("{G}"));
new ManaCostsImpl<>("{G}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

View file

@ -41,7 +41,7 @@ public final class ElvishScout extends CardImpl {
this.toughness = new MageInt(1);
// {G}, {tap}: Untap target attacking creature you control. Prevent all combat damage that would be dealt to and dealt by it this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new ManaCostsImpl("{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new ManaCostsImpl<>("{G}"));
ability.addCost(new TapSourceCost());
Effect effect = new PreventDamageByTargetEffect(Duration.EndOfTurn, true);
effect.setText("Prevent all combat damage that would be dealt to");

View file

@ -30,7 +30,7 @@ public final class ElvishScrapper extends CardImpl {
this.toughness = new MageInt(1);
// {G}, {tap}, Sacrifice Elvish Scrapper: Destroy target artifact.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{G}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetArtifactPermanent());

View file

@ -41,7 +41,7 @@ public final class ElvishSkysweeper extends CardImpl {
this.toughness = new MageInt(1);
// {4}{G}, Sacrifice a creature: Destroy target creature with flying.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{4}{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{4}{G}"));
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);

View file

@ -48,7 +48,7 @@ public final class ElvishWarmaster extends CardImpl {
// {5}{G}{G}: Elves you control get +2/+2 and gain deathtouch until end of turn.
Ability ability = new SimpleActivatedAbility(new BoostControlledEffect(
2, 2, Duration.EndOfTurn, filter2).setText("Elves you control get +2/+2"), new ManaCostsImpl("{5}{G}{G}")
2, 2, Duration.EndOfTurn, filter2).setText("Elves you control get +2/+2"), new ManaCostsImpl<>("{5}{G}{G}")
);
ability.addEffect(new GainAbilityControlledEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn, filter2
).setText("and gain deathtouch until end of turn")

View file

@ -30,7 +30,7 @@ public final class EmberEyeWolf extends CardImpl {
this.addAbility(HasteAbility.getInstance());
// {1}{R}: Ember-Eye Wolf gets +2/+0 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl("{1}{R}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{R}")));
}
private EmberEyeWolf(final EmberEyeWolf card) {

View file

@ -47,7 +47,7 @@ public final class EmberethSkyblazer extends CardImpl {
OpponentsCount.instance, StaticValue.get(0), Duration.EndOfTurn,
StaticFilters.FILTER_PERMANENT_CREATURE, false, true
).setText("creatures you control get +X/+0 until end of turn, where X is the number of opponents you have"),
new ManaCostsImpl("{2}{R}")
new ManaCostsImpl<>("{2}{R}")
), false));
}

View file

@ -78,7 +78,7 @@ class EmberwildeDjinnEffect extends OneShotEffect {
if (player == null || sourceObject == null) {
return false;
}
Cost cost = new OrCost("{R}{R} or 2 life", new ManaCostsImpl("{R}{R}"), new PayLifeCost(2));
Cost cost = new OrCost("{R}{R} or 2 life", new ManaCostsImpl<>("{R}{R}"), new PayLifeCost(2));
if (player.chooseUse(Outcome.GainControl, "Gain control of " + sourceObject.getLogName() + "?", source, game)) {
if (cost.pay(source, game, source, player.getId(), false)) {
ContinuousEffect effect = new GainControlTargetEffect(Duration.Custom, false, player.getId());

View file

@ -33,7 +33,7 @@ public final class EmbodimentOfSpring extends CardImpl {
// {1}{G}, {T}, Sacrifice Embodiment of Spring: Search your library for a basic land card, put it onto the battlefield tapped, then shuffle your library.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true),
new ManaCostsImpl("{1}{G}"));
new ManaCostsImpl<>("{1}{G}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);

View file

@ -26,7 +26,7 @@ public final class Embolden extends CardImpl {
this.getSpellAbility().addTarget(new TargetAnyTargetAmount(4));
// Flashback {1}{W}
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{1}{W}")));
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{1}{W}")));
}

View file

@ -32,7 +32,7 @@ public final class EmeraldDragonfly extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// {G}{G}: Emerald Dragonfly gains first strike until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{G}{G}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{G}{G}")));
}
private EmeraldDragonfly(final EmeraldDragonfly card) {

View file

@ -22,7 +22,7 @@ public final class EmmessiTome extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{4}");
// {5}, {tap}: Draw two cards, then discard a card.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawDiscardControllerEffect(2,1), new ManaCostsImpl("{5}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawDiscardControllerEffect(2,1), new ManaCostsImpl<>("{5}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

View file

@ -33,7 +33,7 @@ public final class EmpressGalina extends CardImpl {
this.toughness = new MageInt(3);
// {U}{U}, {tap}: Gain control of target legendary permanent.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainControlTargetEffect(Duration.Custom), new ManaCostsImpl("{U}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainControlTargetEffect(Duration.Custom), new ManaCostsImpl<>("{U}{U}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);

View file

@ -34,7 +34,7 @@ public final class EncampmentKeeper extends CardImpl {
this.addAbility(FirstStrikeAbility.getInstance());
// {7}{W}, Sacrifice Encampment Keeper: Creatures you control get +2/+2 until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostControlledEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl("{7}{W}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostControlledEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl<>("{7}{W}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);

View file

@ -34,7 +34,7 @@ public final class EnclaveCryptologist extends LevelerCard {
this.power = new MageInt(0);
this.toughness = new MageInt(1);
this.addAbility(new LevelUpAbility(new ManaCostsImpl("{1}{U}")));
this.addAbility(new LevelUpAbility(new ManaCostsImpl<>("{1}{U}")));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawDiscardControllerEffect(), new TapSourceCost());
Abilities<Ability> abilities1 = new AbilitiesImpl<>(ability);

View file

@ -42,13 +42,13 @@ public final class Endbringer extends CardImpl {
this.addAbility(ability);
// {C}, {T}: Target creature can't attack or block this turn.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantAttackBlockTargetEffect(Duration.EndOfTurn), new ManaCostsImpl("{C}"));
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantAttackBlockTargetEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{C}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
// {C}{C}, {T}: Draw a card.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{C}{C}"));
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{C}{C}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

View file

@ -24,7 +24,7 @@ public final class EndbringersRevel extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{B}");
// {4}: Return target creature card from a graveyard to its owner's hand. Any player may activate this ability but only any time they could cast a sorcery.
ActivateAsSorceryActivatedAbility ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl("{4}"));
ActivateAsSorceryActivatedAbility ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl<>("{4}"));
ability.addTarget(new TargetCardInGraveyard(new FilterCreatureCard("creature card in a graveyard")));
ability.setMayActivate(TargetController.ANY);
ability.addEffect(new InfoEffect("Any player may activate this ability"));

View file

@ -31,7 +31,7 @@ public final class Endoskeleton extends CardImpl {
// {2}, {tap}: Target creature gets +0/+3 for as long as Endoskeleton remains tapped.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(
new BoostTargetEffect(0, 3, Duration.Custom), SourceTappedCondition.TAPPED,
"target creature gets +0/+3 for as long as {this} remains tapped"), new ManaCostsImpl("{2}"));
"target creature gets +0/+3 for as long as {this} remains tapped"), new ManaCostsImpl<>("{2}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -34,7 +34,7 @@ public final class EnergyStorm extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{W}");
// Cumulative upkeep {1}
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{1}")));
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{1}")));
// Prevent all damage that would be dealt by instant and sorcery spells.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,

View file

@ -57,7 +57,7 @@ public final class EnergyVortex extends CardImpl {
new AddCountersSourceEffect(
CounterType.VORTEX.createInstance(),
ManacostVariableValue.REGULAR, true
), new ManaCostsImpl("{X}"),
), new ManaCostsImpl<>("{X}"),
new IsStepCondition(PhaseStep.UPKEEP)
));
}

View file

@ -32,7 +32,7 @@ public final class EngineeredExplosives extends CardImpl {
// Sunburst
this.addAbility(new SunburstAbility(this));
// {2}, Sacrifice Engineered Explosives: Destroy each nonland permanent with converted mana cost equal to the number of charge counters on Engineered Explosives.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new EngineeredExplosivesEffect(), new ManaCostsImpl("{2}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new EngineeredExplosivesEffect(), new ManaCostsImpl<>("{2}"));
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);
}

View file

@ -28,7 +28,7 @@ public final class EngulfingFlames extends CardImpl {
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
this.getSpellAbility().addEffect(new CantRegenerateTargetEffect(Duration.EndOfTurn, "It"));
// Flashback {3}{R}
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{3}{R}")));
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{3}{R}")));
}
private EngulfingFlames(final EngulfingFlames card) {

View file

@ -31,7 +31,7 @@ public final class EnigmaEidolon extends CardImpl {
this.toughness = new MageInt(2);
// {U}, Sacrifice Enigma Eidolon: Target player puts the top three cards of their library into their graveyard.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutLibraryIntoGraveTargetEffect(3), new ManaCostsImpl("{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutLibraryIntoGraveTargetEffect(3), new ManaCostsImpl<>("{U}"));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(ability);

View file

@ -30,11 +30,11 @@ public final class EnsouledScimitar extends CardImpl {
this.subtype.add(SubType.EQUIPMENT);
// {3}: Ensouled Scimitar becomes a 1/5 Spirit artifact creature with flying until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(new EnsouledScimitarToken(), "", Duration.EndOfTurn), new ManaCostsImpl("{3}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(new EnsouledScimitarToken(), "", Duration.EndOfTurn), new ManaCostsImpl<>("{3}")));
// Equipped creature gets +1/+5.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(1, 5)));
// Equip {2}
this.addAbility(new EquipAbility(Outcome.BoostCreature, new ManaCostsImpl("{2}")));
this.addAbility(new EquipAbility(Outcome.BoostCreature, new ManaCostsImpl<>("{2}")));
}
private EnsouledScimitar(final EnsouledScimitar card) {

View file

@ -33,7 +33,7 @@ public final class EntrancingLyre extends CardImpl {
// {X}, {T}: Tap target creature with power X or less. It doesn't untap during its controller's untap step for as long as Entrancing Lyre remains tapped.
Ability ability = new SimpleActivatedAbility(
new TapTargetEffect("tap target creature with power X or less"), new ManaCostsImpl("{X}")
new TapTargetEffect("tap target creature with power X or less"), new ManaCostsImpl<>("{X}")
);
ability.addCost(new TapSourceCost());
ability.addEffect(new DontUntapAsLongAsSourceTappedEffect());

View file

@ -25,7 +25,7 @@ public final class EntreatTheAngels extends CardImpl {
this.getSpellAbility().addEffect(new CreateTokenEffect(new AngelToken(), ManacostVariableValue.REGULAR));
// Miracle {X}{W}{W}
this.addAbility(new MiracleAbility(this, new ManaCostsImpl("{X}{W}{W}")));
this.addAbility(new MiracleAbility(this, new ManaCostsImpl<>("{X}{W}{W}")));
}
private EntreatTheAngels(final EntreatTheAngels card) {

View file

@ -33,7 +33,7 @@ public final class EntropicEidolon extends CardImpl {
this.toughness = new MageInt(2);
// {B}, Sacrifice Entropic Eidolon: Target player loses 1 life and you gain 1 life.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeTargetEffect(1), new ManaCostsImpl("{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeTargetEffect(1), new ManaCostsImpl<>("{B}"));
Effect effect = new GainLifeEffect(1);
effect.setText("and you gain 1 life");
ability.addEffect(effect);

View file

@ -35,7 +35,7 @@ public final class EpharasRadiance extends CardImpl {
Ability ability = new EnchantAbility(auraTarget.getTargetName());
this.addAbility(ability);
// Enchanted creature has "{1}{W}, {T}: You gain 3 life."
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(3), new ManaCostsImpl("{1}{W}"));
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(3), new ManaCostsImpl<>("{1}{W}"));
ability.addCost(new TapSourceCost());
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(ability, AttachmentType.AURA, Duration.WhileOnBattlefield)));
}

View file

@ -41,7 +41,7 @@ public final class EpiphanyStorm extends CardImpl {
this.addAbility(ability);
// Enchanted creature has "{R}, {T}, Discard a card: Draw a card."
Ability drawAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{R}"));
Ability drawAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{R}"));
drawAbility.addCost(new TapSourceCost());
drawAbility.addCost(new DiscardCardCost());
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(drawAbility, AttachmentType.AURA)));

View file

@ -30,7 +30,7 @@ public final class EpitaphGolem extends CardImpl {
Ability ability = new SimpleActivatedAbility(
Zone.BATTLEFIELD,
new PutOnLibraryTargetEffect(false),
new ManaCostsImpl("{2}"));
new ManaCostsImpl<>("{2}"));
ability.addTarget(new TargetCardInYourGraveyard());
this.addAbility(ability);
}

View file

@ -62,7 +62,7 @@ public final class ErebosBleakHearted extends CardImpl {
// {1}{B}, Sacrifice another creature: Target creature gets -2/-1 until end of turn.
Ability ability = new SimpleActivatedAbility(
new BoostTargetEffect(-2, -1), new ManaCostsImpl("{1}{B}")
new BoostTargetEffect(-2, -1), new ManaCostsImpl<>("{1}{B}")
);
ability.addCost(new SacrificeTargetCost(
new TargetControlledPermanent(StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE)

View file

@ -44,7 +44,7 @@ public final class ErebosGodOfTheDead extends CardImpl {
// {1}{B}, Pay 2 life: Draw a card.
Ability ability = new SimpleActivatedAbility(
new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{1}{B}")
new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{1}{B}")
);
ability.addCost(new PayLifeCost(2));
this.addAbility(ability);

View file

@ -33,7 +33,7 @@ public final class EronTheRelentless extends CardImpl {
// Haste
this.addAbility(HasteAbility.getInstance());
// {R}{R}{R}: Regenerate Eron the Relentless.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{R}{R}{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{R}{R}{R}"));
this.addAbility(ability);
}

View file

@ -38,7 +38,7 @@ public final class Erosion extends CardImpl {
this.addAbility(new EnchantAbility(auraTarget.getTargetName()));
// At the beginning of the upkeep of enchanted land's controller, destroy that land unless that player pays {1} or 1 life.
Effect effect = new DoUnlessTargetPlayerOrTargetsControllerPaysEffect(new DestroyAttachedToEffect("enchanted land"), new OrCost("{1} or 1 life", new ManaCostsImpl("{1}"), new PayLifeCost(1)));
Effect effect = new DoUnlessTargetPlayerOrTargetsControllerPaysEffect(new DestroyAttachedToEffect("enchanted land"), new OrCost("{1} or 1 life", new ManaCostsImpl<>("{1}"), new PayLifeCost(1)));
effect.setText("destroy that land unless that player pays {1} or 1 life");
this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, effect, TargetController.CONTROLLER_ATTACHED_TO, false, true, "At the beginning of the upkeep of enchanted land's controller, "));
}

View file

@ -27,7 +27,7 @@ public final class ErrantEphemeron extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// Suspend 4-{1}{U}
this.addAbility(new SuspendAbility(4, new ManaCostsImpl("{1}{U}"), this));
this.addAbility(new SuspendAbility(4, new ManaCostsImpl<>("{1}{U}"), this));
}
private ErrantEphemeron(final ErrantEphemeron card) {

View file

@ -29,7 +29,7 @@ public final class ErraticPortal extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{4}");
// {1}, {tap}: Return target creature to its owner's hand unless its controller pays {1}.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ErraticPortalEffect(new GenericManaCost(1)), new ManaCostsImpl("{1}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ErraticPortalEffect(new GenericManaCost(1)), new ManaCostsImpl<>("{1}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -28,7 +28,7 @@ public final class ErraticVisionary extends CardImpl {
// {1}{U}, {T}: Draw a card, then discard a card.
Ability ability = new SimpleActivatedAbility(
new DrawDiscardControllerEffect(), new ManaCostsImpl("{1}{U}")
new DrawDiscardControllerEffect(), new ManaCostsImpl<>("{1}{U}")
);
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -42,7 +42,7 @@ public final class ErtaiTheCorrupted extends CardImpl {
this.toughness = new MageInt(4);
// {U}, {tap}, Sacrifice a creature or enchantment: Counter target spell.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new ManaCostsImpl("{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new ManaCostsImpl<>("{U}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter)));
ability.addTarget(new TargetSpell());

View file

@ -32,7 +32,7 @@ public final class ErtaiWizardAdept extends CardImpl {
this.toughness = new MageInt(1);
// {2}{U}{U}, {tap}: Counter target spell.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new ManaCostsImpl("{2}{U}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new ManaCostsImpl<>("{2}{U}{U}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetSpell());
this.addAbility(ability);

View file

@ -33,7 +33,7 @@ public final class EscapeArtist extends CardImpl {
// Escape Artist can't be blocked.
this.addAbility(new CantBeBlockedSourceAbility());
// {U}, Discard a card: Return Escape Artist to its owner's hand.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl<>("{U}"));
ability.addCost(new DiscardTargetCost(new TargetCardInHand()));
this.addAbility(ability);
}

View file

@ -34,7 +34,7 @@ public final class EscapeRoutes extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{U}");
// {2}{U}: Return target white or black creature you control to its owner's hand.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl("{2}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl<>("{2}{U}"));
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);
}

View file

@ -32,7 +32,7 @@ public final class EssenceDepleter extends CardImpl {
this.addAbility(new DevoidAbility(this.color));
// {1}{C}: Target opponent loses 1 life and you gain 1 life.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeTargetEffect(1), new ManaCostsImpl("{1}{C}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeTargetEffect(1), new ManaCostsImpl<>("{1}{C}"));
ability.addEffect(new GainLifeEffect(1).concatBy("and"));
ability.addTarget(new TargetOpponent());
this.addAbility(ability);

View file

@ -27,7 +27,7 @@ public final class EssenceFracture extends CardImpl {
this.getSpellAbility().addTarget(new TargetCreaturePermanent(2));
// Cycling {2}{U}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}{U}")));
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}{U}")));
}
private EssenceFracture(final EssenceFracture card) {

View file

@ -31,7 +31,7 @@ public final class EtchedMonstrosity extends CardImpl {
this.power = new MageInt(10);
this.toughness = new MageInt(10);
this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.M1M1.createInstance(5)), " with five -1/-1 counters on it"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(3), new ManaCostsImpl("{W}{U}{B}{R}{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(3), new ManaCostsImpl<>("{W}{U}{B}{R}{G}"));
ability.addCost(new RemoveCountersSourceCost(CounterType.M1M1.createInstance(5)));
ability.addTarget(new TargetPlayer());
this.addAbility(ability);

View file

@ -32,7 +32,7 @@ public final class EtchedOracle extends CardImpl {
// Sunburst (This enters the battlefield with a +1/+1 counter on it for each color of mana spent to cast it.)
this.addAbility(new SunburstAbility(this));
// {1}, Remove four +1/+1 counters from Etched Oracle: Target player draws three cards.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(3), new ManaCostsImpl("{1}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(3), new ManaCostsImpl<>("{1}"));
ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance(4)));
ability.addTarget(new TargetPlayer());
this.addAbility(ability);

View file

@ -38,13 +38,13 @@ public final class EternalDragon extends CardImpl {
// {3}{W}{W}: Return Eternal Dragon from your graveyard to your hand. Activate this ability only during your upkeep.
Ability ability = new ConditionalActivatedAbility(Zone.GRAVEYARD,
new ReturnSourceFromGraveyardToHandEffect(),
new ManaCostsImpl("{3}{W}{W}"),
new ManaCostsImpl<>("{3}{W}{W}"),
new IsStepCondition(PhaseStep.UPKEEP),
null
);
this.addAbility(ability);
// PlainscyclingAbility {2}
this.addAbility(new PlainscyclingAbility(new ManaCostsImpl("{2}")));
this.addAbility(new PlainscyclingAbility(new ManaCostsImpl<>("{2}")));
}
private EternalDragon(final EternalDragon card) {

View file

@ -33,7 +33,7 @@ public final class EternalTaskmaster extends CardImpl {
// Whenever Eternal Taskmaster attacks, you may pay {2}{B}. If you do, return target creature card from your graveyard to your hand.
Ability ability = new AttacksTriggeredAbility(new DoIfCostPaid(
new ReturnToHandTargetEffect(), new ManaCostsImpl("{2}{B}")
new ReturnToHandTargetEffect(), new ManaCostsImpl<>("{2}{B}")
), false);
ability.addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD));
this.addAbility(ability);

View file

@ -43,7 +43,7 @@ public final class EtherealAbsolution extends CardImpl {
// {2}{W}{B}: Exile target card from an opponent's graveyard. If it was a creature card, you create a 1/1 white and black Spirit creature token with flying.
Ability ability = new SimpleActivatedAbility(
new EtherealAbsolutionEffect(), new ManaCostsImpl("{2}{W}{B}")
new EtherealAbsolutionEffect(), new ManaCostsImpl<>("{2}{W}{B}")
);
ability.addTarget(new TargetCardInOpponentsGraveyard(StaticFilters.FILTER_CARD));
this.addAbility(ability);

View file

@ -32,7 +32,7 @@ public final class EtherealUsher extends CardImpl {
// {U}, {tap}: Target creature can't be blocked this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new CantBeBlockedTargetEffect(),
new ManaCostsImpl("{U}"));
new ManaCostsImpl<>("{U}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -24,7 +24,7 @@ public final class EtheriumAbomination extends CardImpl {
this.power = new MageInt(4);
this.toughness = new MageInt(3);
this.addAbility(new UnearthAbility(new ManaCostsImpl("{1}{U}{B}")));
this.addAbility(new UnearthAbility(new ManaCostsImpl<>("{1}{U}{B}")));
}
public EtheriumAbomination (final EtheriumAbomination card) {

View file

@ -34,7 +34,7 @@ public final class EtheriumAstrolabe extends CardImpl {
// Flash
this.addAbility(FlashAbility.getInstance());
// {B}, {tap}, Sacrifice an artifact: Draw a card.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{B}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter)));
this.addAbility(ability);

View file

@ -29,7 +29,7 @@ public final class EtheriumHornSorcerer extends CardImpl {
this.toughness = new MageInt(6);
// {1}{U}{R}: Return Etherium-Horn Sorcerer to its owner's hand.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{1}{U}{R}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl<>("{1}{U}{R}")));
// Cascade
this.addAbility(new CascadeAbility());

View file

@ -45,13 +45,13 @@ public final class EtherswornAdjudicator extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// {1}{W}{B}, {T}: Destroy target creature or enchantment.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{1}{W}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{1}{W}{B}"));
ability.addCost(new TapSourceCost());
Target target = new TargetPermanent(filter);
ability.addTarget(target);
this.addAbility(ability);
// {2}{U}: Untap Ethersworn Adjudicator.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapSourceEffect(), new ManaCostsImpl("{2}{U}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapSourceEffect(), new ManaCostsImpl<>("{2}{U}")));
}
private EtherswornAdjudicator(final EtherswornAdjudicator card) {

View file

@ -36,7 +36,7 @@ public final class EvanescentIntellect extends CardImpl {
Ability ability = new EnchantAbility(auraTarget.getTargetName());
this.addAbility(ability);
// Enchanted creature has "{1}{U}, {T}: Target player puts the top three cards of their library into their graveyard."
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MillCardsTargetEffect(3), new ManaCostsImpl("{1}{U}"));
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MillCardsTargetEffect(3), new ManaCostsImpl<>("{1}{U}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(ability, AttachmentType.AURA, Duration.WhileOnBattlefield)));

View file

@ -34,7 +34,7 @@ public final class EverflameEidolon extends CardImpl {
// Bestow {2}{R}
this.addAbility(new BestowAbility(this, "{2}{R}"));
// {R}: Everflame Eidolon gets +1/+0 until end of turn. If it's an Aura, enchanted creature gets +1/+0 until end of turn instead.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new EverflameEidolonEffect(), new ManaCostsImpl("{R}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new EverflameEidolonEffect(), new ManaCostsImpl<>("{R}")));
// Enchanted creature gets +1/+1.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(1, 1, Duration.WhileOnBattlefield)));
}

View file

@ -45,7 +45,7 @@ public final class EvergloveCourier extends CardImpl {
// {2}{G}, {tap}: Target Elf creature gets +2/+2 and has trample for as long as Everglove Courier remains tapped.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(
new BoostTargetEffect(2, 2, Duration.Custom), SourceTappedCondition.TAPPED,
"target Elf creature gets +2/+2"), new ManaCostsImpl("{2}{G}"));
"target Elf creature gets +2/+2"), new ManaCostsImpl<>("{2}{G}"));
ability.addEffect(new ConditionalContinuousEffect(new GainAbilityTargetEffect(TrampleAbility.getInstance(),
Duration.Custom), SourceTappedCondition.TAPPED,"and has trample for as long as {this} remains tapped"));
ability.addCost(new TapSourceCost());

View file

@ -27,7 +27,7 @@ public final class EvernightShade extends CardImpl {
this.toughness = new MageInt(1);
// {B}: Evernight Shade gets +1/+1 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{B}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{B}")));
this.addAbility(new UndyingAbility());
}

View file

@ -46,7 +46,7 @@ public final class Evershrike extends CardImpl {
this.addAbility(new SimpleStaticAbility(new BoostSourceEffect(amount, amount, Duration.WhileOnBattlefield)));
// {X}{WB}{WB}: Return Evershrike from your graveyard to the battlefield. You may put an Aura card with converted mana cost X or less from your hand onto the battlefield attached to it. If you don't, exile Evershrike.
this.addAbility(new SimpleActivatedAbility(Zone.GRAVEYARD, new EvershrikeEffect(), new ManaCostsImpl("{X}{W/B}{W/B}")));
this.addAbility(new SimpleActivatedAbility(Zone.GRAVEYARD, new EvershrikeEffect(), new ManaCostsImpl<>("{X}{W/B}{W/B}")));
}
private Evershrike(final Evershrike card) {

View file

@ -66,7 +66,7 @@ class EvilTwinCopyApplier extends CopyApplier {
@Override
public boolean apply(Game game, MageObject blueprint, Ability source, UUID copyToObjectId) {
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{U}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{U}{B}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent(filter));
blueprint.getAbilities().add(ability);

Some files were not shown because too many files have changed in this diff Show more