Refactor: Fix raw use of parameterized class 'ManaCostsImpl' - 'n' cards (#9063)

This commit is contained in:
DeepCrimson 2022-06-06 05:38:55 -07:00 committed by GitHub
parent fce78c3b12
commit 3620a4d325
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
85 changed files with 96 additions and 96 deletions

View file

@ -36,13 +36,13 @@ public final class NacatlHuntPride extends CardImpl {
this.addAbility(VigilanceAbility.getInstance());
// {R}, {tap}: Target creature can't block this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBlockTargetEffect(Duration.EndOfTurn), new ManaCostsImpl("{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBlockTargetEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{R}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
// {G}, {tap}: Target creature blocks this turn if able.
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BlocksIfAbleTargetEffect(Duration.EndOfTurn), new ManaCostsImpl("{G}"));
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BlocksIfAbleTargetEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{G}"));
ability2.addCost(new TapSourceCost());
ability2.addTarget(new TargetCreaturePermanent());
this.addAbility(ability2);

View file

@ -30,7 +30,7 @@ public final class NacreTalisman extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
// Whenever a player casts a white 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);
}

View file

@ -27,7 +27,7 @@ public final class NafsAsp extends CardImpl {
// Whenever Nafs Asp deals damage to a player, that player loses 1 life at the beginning of their next draw step unless they pay {1} before that draw step.
this.addAbility(new DealsDamageToAPlayerTriggeredAbility(new UnlessPaysDelayedEffect(
new ManaCostsImpl("{1}"), new LoseLifeTargetEffect(1), PhaseStep.DRAW, true,
new ManaCostsImpl<>("{1}"), new LoseLifeTargetEffect(1), PhaseStep.DRAW, true,
"that player loses 1 life at the beginning of their next draw step unless they pay {1} before that draw step."),
false, true));
}

View file

@ -22,7 +22,7 @@ public final class NaggingThoughts extends CardImpl {
this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect(2, 1, PutCards.HAND, PutCards.GRAVEYARD));
// Madness {1}{U}
this.addAbility(new MadnessAbility(new ManaCostsImpl("{1}{U}")));
this.addAbility(new MadnessAbility(new ManaCostsImpl<>("{1}{U}")));
}
private NaggingThoughts(final NaggingThoughts card) {

View file

@ -34,7 +34,7 @@ public final class NahirisMachinations extends CardImpl {
this.addAbility(ability);
// {1}{R}: Nahiri's Machinations deals 1 damage to target blocking creature.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl("{1}{R}"));
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl<>("{1}{R}"));
ability.addTarget(new TargetCreaturePermanent(new FilterBlockingCreature("blocking creature")));
this.addAbility(ability);
}

View file

@ -57,7 +57,7 @@ public final class NajeelaTheBladeBlossom extends CardImpl {
Ability ability = new ConditionalActivatedAbility(
Zone.BATTLEFIELD,
new UntapAllEffect(StaticFilters.FILTER_ATTACKING_CREATURES),
new ManaCostsImpl("{W}{U}{B}{R}{G}"),
new ManaCostsImpl<>("{W}{U}{B}{R}{G}"),
new IsPhaseCondition(TurnPhase.COMBAT)
);
ability.addEffect(new GainAbilityAllEffect(

View file

@ -31,7 +31,7 @@ public final class NakayaShade extends CardImpl {
// {B}: Nakaya Shade gets +1/+1 until end of turn unless any player pays {2}.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
new DoUnlessAnyPlayerPaysEffect(new BoostSourceEffect(1,1, Duration.EndOfTurn),new GenericManaCost(2)),
new ManaCostsImpl("{B}")));
new ManaCostsImpl<>("{B}")));
}
private NakayaShade(final NakayaShade card) {

View file

@ -45,7 +45,7 @@ public final class NalathniDragon extends CardImpl {
// {R}: Nalathni Dragon gets +1/+0 until end of turn. If this ability has been activated four or more times this turn, sacrifice Nalathni Dragon at the beginning of the next end step.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new BoostSourceEffect(1, 0, Duration.EndOfTurn),
new ManaCostsImpl("{R}"));
new ManaCostsImpl<>("{R}"));
ability.addEffect(new NalathniDragonEffect());
this.addAbility(ability);
}

View file

@ -38,7 +38,7 @@ public final class NamelessOne extends CardImpl {
// Nameless One's power and toughness are each equal to the number of Wizards on the battlefield.
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new PermanentsOnBattlefieldCount(filter), Duration.EndOfGame)));
// Morph {2}{U}
this.addAbility(new MorphAbility(new ManaCostsImpl("{2}{U}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{2}{U}")));
}
private NamelessOne(final NamelessOne card) {

View file

@ -36,7 +36,7 @@ public final class NantukoCalmer extends CardImpl {
this.toughness = new MageInt(3);
// {G}, {tap}, Sacrifice Nantuko Calmer: 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

@ -31,7 +31,7 @@ public final class NantukoDisciple extends CardImpl {
this.toughness = new MageInt(2);
// {G}, {tap}: Target creature gets +2/+2 until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl("{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl<>("{G}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -37,7 +37,7 @@ public final class NantukoMentor extends CardImpl {
this.toughness = new MageInt(1);
// {2}{G}, {tap}: Target creature gets +X/+X until end of turn, where X is that creature's power.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new NantukoMentorEffect(), new ManaCostsImpl("{2}{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new NantukoMentorEffect(), new ManaCostsImpl<>("{2}{G}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -28,7 +28,7 @@ public final class NantukoShade extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(1);
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}")));
}
private NantukoShade(final NantukoShade card) {

View file

@ -45,7 +45,7 @@ public final class NantukoShaman extends CardImpl {
this.addAbility(ability);
// Suspend 1-{2}{G}{G}
this.addAbility(new SuspendAbility(1, new ManaCostsImpl("{2}{G}{G}"), this));
this.addAbility(new SuspendAbility(1, new ManaCostsImpl<>("{2}{G}{G}"), this));
}
private NantukoShaman(final NantukoShaman card) {

View file

@ -32,7 +32,7 @@ public final class NantukoVigilante extends CardImpl {
this.toughness = new MageInt(2);
// Morph {1}{G}
this.addAbility(new MorphAbility(new ManaCostsImpl("{1}{G}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{1}{G}")));
// When Nantuko Vigilante is turned face up, destroy target artifact or enchantment.
Ability ability = new TurnedFaceUpSourceTriggeredAbility(new DestroyTargetEffect());
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));

View file

@ -25,12 +25,12 @@ public final class Narcissism extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{G}");
// {G}, Discard a card: Target creature gets +2/+2 until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl("{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl<>("{G}"));
ability.addCost(new DiscardCardCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
// {G}, Sacrifice Narcissism: Target creature gets +2/+2 until end of turn.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl("{G}"));
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl<>("{G}"));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -48,7 +48,7 @@ public final class NarfiBetrayerKing extends CardImpl {
this.addAbility(new SimpleActivatedAbility(
Zone.GRAVEYARD,
new ReturnSourceFromGraveyardToBattlefieldEffect(true, false),
new ManaCostsImpl("{S}{S}{S}")
new ManaCostsImpl<>("{S}{S}{S}")
));
}

View file

@ -36,7 +36,7 @@ public final class NaturesBlessing extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{G}{W}");
// {G}{W}, Discard a card: Put a +1/+1 counter on target creature or that creature gains banding, first strike, or trample.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new NaturesBlessingEffect(), new ManaCostsImpl("{G}{W}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new NaturesBlessingEffect(), new ManaCostsImpl<>("{G}{W}"));
ability.addCost(new DiscardCardCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -38,7 +38,7 @@ public final class NaturesWrath extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{4}{G}{G}");
// At the beginning of your upkeep, sacrifice Nature's Wrath unless you pay {G}.
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{G}")), TargetController.YOU, false));
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl<>("{G}")), TargetController.YOU, false));
// Whenever a player puts an Island or blue permanent onto the battlefield, they sacrifice an Island or blue permanent.
this.addAbility(new EntersBattlefieldAllTriggeredAbility(

View file

@ -31,11 +31,11 @@ public final class NayaBattlemage extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(2);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{R}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{W}"));
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl<>("{W}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -33,7 +33,7 @@ public final class NearheathChaplain extends CardImpl {
this.addAbility(LifelinkAbility.getInstance());
// {2}{W}, Exile Neaheath Chaplain from your graveyard: Create two 1/1 white Spirit creature tokens with flying. Activate this ability only any time you could cast a sorcery.
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.GRAVEYARD, new CreateTokenEffect(new SpiritWhiteToken(), 2), new ManaCostsImpl("{2}{W}"));
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.GRAVEYARD, new CreateTokenEffect(new SpiritWhiteToken(), 2), new ManaCostsImpl<>("{2}{W}"));
ability.addCost(new ExileSourceFromGraveCost());
this.addAbility(ability);
}

View file

@ -32,7 +32,7 @@ public final class Nebuchadnezzar extends CardImpl {
this.toughness = new MageInt(3);
// {X}, {T}: Choose a card name. Target opponent reveals X cards at random from their hand. Then that player discards all cards with that name revealed this way. Activate this ability only during your turn.
Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD, new ChooseACardNameEffect(ChooseACardNameEffect.TypeOfName.ALL), new ManaCostsImpl("{X}"), MyTurnCondition.instance);
Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD, new ChooseACardNameEffect(ChooseACardNameEffect.TypeOfName.ALL), new ManaCostsImpl<>("{X}"), MyTurnCondition.instance);
ability.addCost(new TapSourceCost());
ability.addEffect(new NebuchadnezzarEffect());
ability.addTarget(new TargetOpponent());

View file

@ -32,7 +32,7 @@ public final class NecromancersStockpile extends CardImpl {
// {1}{B}, Discard a creature card: Draw a card.
// If the discarded card was a Zombie card, create a tapped 2/2 black Zombie creature token.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{1}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{1}{B}"));
ability.addCost(new NecromancersStockpileDiscardTargetCost(new TargetCardInHand(StaticFilters.FILTER_CARD_CREATURE)));
ability.addEffect(new NecromancersStockpilePutTokenEffect());
this.addAbility(ability);

View file

@ -34,7 +34,7 @@ public final class NecromasterDragon extends CardImpl {
// Whenever Necromaster Dragon deals combat damage to a player, you may pay {2}. If you do, create a 2/2 black Zombie creature token and each opponent puts the top two cards of their library into their graveyard
Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(
new DoIfCostPaid(new CreateTokenEffect(new ZombieToken(), 1), new ManaCostsImpl("{2}")), false);
new DoIfCostPaid(new CreateTokenEffect(new ZombieToken(), 1), new ManaCostsImpl<>("{2}")), false);
ability.addEffect(new MillCardsEachPlayerEffect(2, TargetController.OPPONENT));
this.addAbility(ability);
}

View file

@ -58,7 +58,7 @@ public final class NecropolisFiend extends CardImpl {
effect.setText("Target creature gets -X/-X until end of turn");
Ability ability = new SimpleActivatedAbility(
Zone.BATTLEFIELD, effect,
new ManaCostsImpl("{X}")
new ManaCostsImpl<>("{X}")
);
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());

View file

@ -35,7 +35,7 @@ public final class Necrosavant extends CardImpl {
// {3}{B}{B}, Sacrifice a creature: Return Necrosavant from your graveyard to the battlefield. Activate this ability only during your upkeep.
Ability ability = new ConditionalActivatedAbility(Zone.GRAVEYARD,
new ReturnSourceFromGraveyardToBattlefieldEffect(false,false),
new ManaCostsImpl("{3}{B}{B}"),
new ManaCostsImpl<>("{3}{B}{B}"),
new IsStepCondition(PhaseStep.UPKEEP),
null
);

View file

@ -38,7 +38,7 @@ public final class NeedleSpires extends CardImpl {
// {2}{R}{W}: Needle Spires becomes a 2/1 red and white Elemental creature with double strike until end of turn. It's still a land.
Effect effect = new BecomesCreatureSourceEffect(new NeedleSpiresToken(), "land", Duration.EndOfTurn);
effect.setText("{this} becomes a 2/1 red and white Elemental creature with double strike until end of turn. It's still a land");
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{2}{R}{W}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{2}{R}{W}")));
}
private NeedleSpires(final NeedleSpires card) {

View file

@ -27,7 +27,7 @@ public final class NeedlebiteTrap extends CardImpl {
this.subtype.add(SubType.TRAP);
// If an opponent gained life this turn, you may pay {B} rather than pay Needlebite Trap's mana cost.
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl("{B}"), NeedlebiteTrapCondition.instance), new PlayerGainedLifeWatcher());
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl<>("{B}"), NeedlebiteTrapCondition.instance), new PlayerGainedLifeWatcher());
// Target player loses 5 life and you gain 5 life.
this.getSpellAbility().addEffect(new LoseLifeTargetEffect(5));

View file

@ -38,7 +38,7 @@ public final class NemataGroveGuardian extends CardImpl {
this.toughness = new MageInt(5);
// {2}{G}: Create a 1/1 green Saproling creature token.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new SaprolingToken()), new ManaCostsImpl("{2}{G}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new SaprolingToken()), new ManaCostsImpl<>("{2}{G}")));
// Sacrifice a Saproling: Saproling creatures get +1/+1 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.EndOfTurn, filter, false), new SacrificeTargetCost(new TargetControlledPermanent(filter1))));
}

View file

@ -44,7 +44,7 @@ public final class NemesisTrap extends CardImpl {
this.subtype.add(SubType.TRAP);
// If a white creature is attacking, you may pay {B}{B} rather than pay Nemesis Trap's mana cost.
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl("{B}{B}"), new PermanentsOnTheBattlefieldCondition(filter, false)));
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl<>("{B}{B}"), new PermanentsOnTheBattlefieldCondition(filter, false)));
// Exile target attacking creature. Create a token that's a copy of that creature. Exile it at the beginning of the next end step.
this.getSpellAbility().addEffect(new NemesisTrapEffect());

View file

@ -26,7 +26,7 @@ public final class NephaliaDrownyard extends CardImpl {
this.addAbility(new ColorlessManaAbility());
// {1}{U}{B}, {T}: Target player puts the top three cards of their library into their graveyard.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutLibraryIntoGraveTargetEffect(3), new ManaCostsImpl("{1}{U}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutLibraryIntoGraveTargetEffect(3), new ManaCostsImpl<>("{1}{U}{B}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(ability);

View file

@ -41,7 +41,7 @@ public final class NephaliaMoondrakes extends CardImpl {
this.addAbility(ability);
// {4}{U}{U}, Exile Nephalia Moondrakes from your graveyard: Creatures you control gain flying until end of turn.
ability = new SimpleActivatedAbility(Zone.GRAVEYARD, new GainAbilityControlledEffect(FlyingAbility.getInstance(), Duration.EndOfTurn, FILTER_PERMANENT_CREATURES), new ManaCostsImpl("{4}{U}{U}"));
ability = new SimpleActivatedAbility(Zone.GRAVEYARD, new GainAbilityControlledEffect(FlyingAbility.getInstance(), Duration.EndOfTurn, FILTER_PERMANENT_CREATURES), new ManaCostsImpl<>("{4}{U}{U}"));
ability.addCost(new ExileSourceFromGraveCost());
this.addAbility(ability);
}

View file

@ -38,7 +38,7 @@ public final class NephaliaSmuggler extends CardImpl {
this.toughness = new MageInt(1);
// {3}{U}, {tap}: Exile another target creature you control, then return that card to the battlefield under your control.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetForSourceEffect(), new ManaCostsImpl("{3}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetForSourceEffect(), new ManaCostsImpl<>("{3}{U}"));
ability.addCost(new TapSourceCost());
ability.addEffect(new ReturnToBattlefieldUnderYourControlTargetEffect(false));
ability.addTarget(new TargetControlledCreaturePermanent(filter));

View file

@ -31,7 +31,7 @@ public final class NetterEnDal extends CardImpl {
this.toughness = new MageInt(1);
// {W}, {tap}, Discard a card: 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 TapSourceCost());
ability.addCost(new DiscardCardCost());
ability.addTarget(new TargetCreaturePermanent());

View file

@ -38,7 +38,7 @@ public final class NettlingCurse extends CardImpl {
this.addAbility(new AttacksOrBlocksAttachedTriggeredAbility(new LoseLifeControllerAttachedEffect(3), AttachmentType.AURA));
// {1}{R}: Enchanted creature attacks this turn if able.
this.addAbility(new SimpleActivatedAbility(new AttacksIfAbleAttachedEffect(Duration.EndOfTurn, AttachmentType.AURA).setText("Enchanted creature attacks this turn if able."), new ManaCostsImpl("{1}{R}")));
this.addAbility(new SimpleActivatedAbility(new AttacksIfAbleAttachedEffect(Duration.EndOfTurn, AttachmentType.AURA).setText("Enchanted creature attacks this turn if able."), new ManaCostsImpl<>("{1}{R}")));
}
private NettlingCurse(final NettlingCurse card) {

View file

@ -27,7 +27,7 @@ public final class NeurokReplica extends CardImpl {
this.subtype.add(SubType.WIZARD);
this.power = new MageInt(1);
this.toughness = new MageInt(4);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl("{1}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl<>("{1}{U}"));
ability.addTarget(new TargetCreaturePermanent());
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);

View file

@ -33,7 +33,7 @@ public final class NeurokStealthsuit extends CardImpl {
// Equipped creature has shroud.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(ShroudAbility.getInstance(), AttachmentType.EQUIPMENT)));
// {U}{U}: Attach Neurok Stealthsuit to target creature you control.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AttachEffect(Outcome.BoostCreature, "Attach {this} to target creature you control"), new ManaCostsImpl("{U}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AttachEffect(Outcome.BoostCreature, "Attach {this} to target creature you control"), new ManaCostsImpl<>("{U}{U}"));
ability.addTarget(new TargetControlledCreaturePermanent());
this.addAbility(ability);
// Equip {1}

View file

@ -40,13 +40,13 @@ public final class NeurokTransmuter extends CardImpl {
this.toughness = new MageInt(2);
// {U}: Target creature becomes an artifact in addition to its other types until end of turn.
Ability becomeArtifactAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCardTypeTargetEffect(Duration.EndOfTurn, CardType.ARTIFACT), new ManaCostsImpl("{U}"));
Ability becomeArtifactAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCardTypeTargetEffect(Duration.EndOfTurn, CardType.ARTIFACT), new ManaCostsImpl<>("{U}"));
becomeArtifactAbility.addTarget(new TargetCreaturePermanent());
this.addAbility(becomeArtifactAbility);
// {U}: Until end of turn, target artifact creature becomes blue and isn't an artifact.
Effect blueEffect = new BecomesColorTargetEffect(ObjectColor.BLUE, Duration.EndOfTurn);
blueEffect.setText("Until end of turn, target artifact creature becomes blue and ");
Ability becomeBlueAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, blueEffect, new ManaCostsImpl("{U}"));
Ability becomeBlueAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, blueEffect, new ManaCostsImpl<>("{U}"));
becomeBlueAbility.addTarget(new TargetCreaturePermanent(filter));
Effect loseArtifactEffect = new LoseArtifactTypeTargetEffect(Duration.EndOfTurn);
loseArtifactEffect.setText("isn't an artifact");

View file

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

View file

@ -38,7 +38,7 @@ public final class NevinyrralsDisk 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);
}

View file

@ -43,13 +43,13 @@ public final class NewPrahvGuildmage extends CardImpl {
this.toughness = new MageInt(2);
// {W}{U}: Target creature gains flying until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{W}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{W}{U}"));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
// {3}{W}{U}: Detain target nonland permanent an opponent controls.
// (Until your next turn, that permanent can't attack or block and its activated abilities can't be activated.)
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DetainTargetEffect(), new ManaCostsImpl("{3}{W}{U}"));
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DetainTargetEffect(), new ManaCostsImpl<>("{3}{W}{U}"));
TargetNonlandPermanent target = new TargetNonlandPermanent(filter);
ability.addTarget(target);
this.addAbility(ability);

View file

@ -33,7 +33,7 @@ public final class NezumiBoneReader extends CardImpl {
// {B}, Sacrifice a creature: Target player discards a card. Activate this ability only any time you could cast a sorcery.
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1),
new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
ability.addCost(new ManaCostsImpl("{B}"));
ability.addCost(new ManaCostsImpl<>("{B}"));
ability.addTarget(new TargetPlayer());
this.addAbility(ability);
}

View file

@ -43,7 +43,7 @@ public final class NezumiGraverobber extends CardImpl {
this.flipCardName = "Nighteyes the Desecrator";
// {1}{B}: Exile target card from an opponent's graveyard. If no cards are in that graveyard, flip Nezumi Graverobber.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl("{1}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl<>("{1}{B}"));
Target target = new TargetCardInOpponentsGraveyard(new FilterCard("card from an opponent's graveyard"));
ability.addTarget(target);
ability.addEffect(new NezumiGraverobberFlipEffect());
@ -104,7 +104,7 @@ class NighteyesTheDesecratorToken extends TokenImpl {
power = new MageInt(4);
toughness = new MageInt(2);
// {4}{B}: Put target creature card from a graveyard onto the battlefield under your control.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnFromGraveyardToBattlefieldTargetEffect(), new ManaCostsImpl("{4}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnFromGraveyardToBattlefieldTargetEffect(), new ManaCostsImpl<>("{4}{B}"));
ability.addTarget(new TargetCardInGraveyard(new FilterCreatureCard("creature card from a graveyard")));
this.addAbility(ability);
}

View file

@ -37,7 +37,7 @@ public final class NezumiShortfang extends CardImpl {
this.flipCardName = "Stabwhisker the Odious";
// {1}{B}, {tap}: Target opponent discards a card. Then if that player has no cards in hand, flip Nezumi Shortfang.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1), new ManaCostsImpl("{1}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1), new ManaCostsImpl<>("{1}{B}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetOpponent());
ability.addEffect(new ConditionalOneShotEffect(

View file

@ -28,7 +28,7 @@ public final class NiallSilvain extends CardImpl {
this.toughness = new MageInt(2);
// {G}{G}{G}{G}, {tap}: Regenerate target creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl("{G}{G}{G}{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl<>("{G}{G}{G}{G}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -63,7 +63,7 @@ public final class NiambiEsteemedSpeaker extends CardImpl {
// {1}{W}{U}, {T}, Discard a legendary card: Draw two cards.
ability = new SimpleActivatedAbility(
new DrawCardSourceControllerEffect(2), new ManaCostsImpl("{1}{W}{U}")
new DrawCardSourceControllerEffect(2), new ManaCostsImpl<>("{1}{W}{U}")
);
ability.addCost(new TapSourceCost());
ability.addCost(new DiscardTargetCost(new TargetCardInHand(filter2)));

View file

@ -34,7 +34,7 @@ public final class NicolBolas extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// At the beginning of your upkeep, sacrifice Nicol Bolas unless you pay {U}{B}{R}.
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{U}{B}{R}")), TargetController.YOU, false));
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl<>("{U}{B}{R}")), TargetController.YOU, false));
// Whenever Nicol Bolas deals damage to an opponent, that player discards their hand.
this.addAbility(new DealsDamageToOpponentTriggeredAbility(new DiscardHandTargetEffect("that player"), false, false, true));

View file

@ -47,7 +47,7 @@ public final class NicolBolasTheRavager extends CardImpl {
this.addAbility(new ActivateAsSorceryActivatedAbility(
Zone.BATTLEFIELD,
new ExileAndReturnTransformedSourceEffect(Pronoun.HE),
new ManaCostsImpl("{4}{U}{B}{R}")
new ManaCostsImpl<>("{4}{U}{B}{R}")
));
}

View file

@ -39,7 +39,7 @@ public final class NightDealings extends CardImpl {
this.addAbility((new NightDealingsTriggeredAbility()));
// {2}{B}{B}, Remove X theft counters from Night Dealings: Search your library for a nonland card with converted mana cost X, reveal it, and put it into your hand. Then shuffle your library.
Ability ability = new SimpleActivatedAbility(new NightDealingsSearchEffect(), new ManaCostsImpl("{2}{B}{B}"));
Ability ability = new SimpleActivatedAbility(new NightDealingsSearchEffect(), new ManaCostsImpl<>("{2}{B}{B}"));
ability.addCost(new RemoveVariableCountersSourceCost(CounterType.THEFT.createInstance(1)));
this.addAbility(ability);
}

View file

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

View file

@ -36,7 +36,7 @@ public final class NightfallPredator extends CardImpl {
new FightTargetSourceEffect().setText(
"{this} fights target creature. " +
"<i>(Each deals damage equal to its power to the other.)</i>"),
new ManaCostsImpl("{R}")
new ManaCostsImpl<>("{R}")
);
activatedAbility.addCost(new TapSourceCost());
activatedAbility.addTarget(new TargetCreaturePermanent());

View file

@ -42,7 +42,7 @@ public final class NightfireGiant extends CardImpl {
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostSourceWhileControlsEffect(filter, 1, 1)));
// {4}{R}: Nightfire Giant deals 2 damage to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl("{4}{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl<>("{4}{R}"));
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);

View file

@ -34,13 +34,13 @@ public final class NightscapeApprentice extends CardImpl {
this.toughness = new MageInt(1);
// {U}, {T}: Put target creature you control on top of its owner's library.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutOnLibraryTargetEffect(true), new ManaCostsImpl("{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutOnLibraryTargetEffect(true), new ManaCostsImpl<>("{U}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetControlledCreaturePermanent());
this.addAbility(ability);
// {R}, {T}: Target creature gains first strike until end of turn.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(FirstStrikeAbility.getInstance(),
Duration.EndOfTurn), new ManaCostsImpl("{R}"));
Duration.EndOfTurn), new ManaCostsImpl<>("{R}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -42,7 +42,7 @@ public final class NightscapeFamiliar extends CardImpl {
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new SpellsCostReductionControllerEffect(filter, 1)));
// {1}{B}: Regenerate Nightscape Familiar.
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 NightscapeFamiliar(final NightscapeFamiliar card) {

View file

@ -30,13 +30,13 @@ public final class NightscapeMaster extends CardImpl {
this.toughness = new MageInt(2);
// {U}{U}, {tap}: Return target creature to its owner's hand.
Ability returnAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl("{U}{U}"));
Ability returnAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl<>("{U}{U}"));
returnAbility.addTarget(new TargetCreaturePermanent());
returnAbility.addCost(new TapSourceCost());
this.addAbility(returnAbility);
// {R}{R}, {tap}: Nightscape Master deals 2 damage to target creature.
Ability damageAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl("{R}{R}"));
Ability damageAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl<>("{R}{R}"));
damageAbility.addTarget(new TargetCreaturePermanent());
damageAbility.addCost(new TapSourceCost());
this.addAbility(damageAbility);

View file

@ -49,7 +49,7 @@ public final class NightshadeAssassin extends CardImpl {
this.addAbility(ability);
// Madness {1}{B}
this.addAbility(new MadnessAbility(new ManaCostsImpl("{1}{B}")));
this.addAbility(new MadnessAbility(new ManaCostsImpl<>("{1}{B}")));
}
private NightshadeAssassin(final NightshadeAssassin card) {

View file

@ -37,7 +37,7 @@ public final class NightshadeSeer extends CardImpl {
this.toughness = new MageInt(1);
// {2}{B}, {tap}: Reveal any number of black cards in your hand. Target creature gets -X/-X until end of turn, where X is the number of cards revealed this way.
Ability ability = new SimpleActivatedAbility(new NightshadeSeerEffect(), new ManaCostsImpl("{2}{B}"));
Ability ability = new SimpleActivatedAbility(new NightshadeSeerEffect(), new ManaCostsImpl<>("{2}{B}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -29,7 +29,7 @@ public final class NightwingShade extends CardImpl {
this.toughness = new MageInt(2);
this.addAbility(FlyingAbility.getInstance());
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{1}{B}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{B}")));
}
private NightwingShade(final NightwingShade card) {

View file

@ -31,7 +31,7 @@ public final class NihilisticGlee extends CardImpl {
// {2}{B}, Discard a card: Target opponent loses 1 life and you gain 1 life.
Ability ability = new SimpleActivatedAbility(
new LoseLifeTargetEffect(1),
new ManaCostsImpl("{2}{B}")
new ManaCostsImpl<>("{2}{B}")
);
ability.addEffect(new GainLifeEffect(1).concatBy("and"));
ability.addCost(new DiscardCardCost());

View file

@ -36,7 +36,7 @@ public final class Nihilith extends CardImpl {
this.addAbility(FearAbility.getInstance());
// Suspend 7-{1}{B}
this.addAbility(new SuspendAbility(7, new ManaCostsImpl("{1}{B}"), this, false));
this.addAbility(new SuspendAbility(7, new ManaCostsImpl<>("{1}{B}"), this, false));
// Whenever a card is put into an opponent's graveyard from anywhere, if Nihilith is suspended, you may remove a time counter from Nihilith.
this.addAbility(new ConditionalInterveningIfTriggeredAbility(

View file

@ -135,7 +135,7 @@ class NilsDisciplineEnforcerEffect extends CantAttackYouUnlessPayManaAllEffect {
if (count < 1) {
return null;
}
return new ManaCostsImpl("{" + count + '}');
return new ManaCostsImpl<>("{" + count + '}');
}
@Override

View file

@ -44,7 +44,7 @@ public final class NimDevourer extends CardImpl {
// {B}{B}: Return Nim Devourer from your graveyard to the battlefield, then sacrifice a creature. Activate this ability only during your upkeep.
Ability ability = new ConditionalActivatedAbility(Zone.GRAVEYARD,
new ReturnSourceFromGraveyardToBattlefieldEffect(false, false),
new ManaCostsImpl("{B}{B}"),
new ManaCostsImpl<>("{B}{B}"),
new IsStepCondition(PhaseStep.UPKEEP), null);
ability.addEffect(new NimDevourerEffect());
this.addAbility(ability);

View file

@ -27,7 +27,7 @@ public final class NimReplica extends CardImpl {
this.subtype.add(SubType.ZOMBIE);
this.power = new MageInt(3);
this.toughness = new MageInt(1);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-1, -1, Duration.EndOfTurn), new ManaCostsImpl("{2}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-1, -1, Duration.EndOfTurn), new ManaCostsImpl<>("{2}{B}"));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -30,7 +30,7 @@ public final class NirkanaCutthroat extends LevelerCard {
this.color.setBlack(true);
this.power = new MageInt(3);
this.toughness = new MageInt(2);
this.addAbility(new LevelUpAbility(new ManaCostsImpl("{2}{B}")));
this.addAbility(new LevelUpAbility(new ManaCostsImpl<>("{2}{B}")));
Abilities<Ability> abilities1 = new AbilitiesImpl<>();
abilities1.add(DeathtouchAbility.getInstance());

View file

@ -38,7 +38,7 @@ public final class NirkanaRevenant extends CardImpl {
// {B}: Nirkana Revenant gets +1/+1 until end of turn.
this.addAbility(new SimpleActivatedAbility(
new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{B}")
new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{B}")
));
}

View file

@ -41,7 +41,7 @@ public final class NivMizzetDracogenius extends CardImpl {
this.addAbility(new DealsDamageToAPlayerTriggeredAbility(new DrawCardSourceControllerEffect(1), true));
// {U}{R}: Niv-Mizzet, Dracogenius deals 1 damage to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1),new ManaCostsImpl("{U}{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1),new ManaCostsImpl<>("{U}{R}"));
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
}

View file

@ -43,10 +43,10 @@ public final class NivixGuildmage extends CardImpl {
this.toughness = new MageInt(2);
// {1}{U}{R}: Draw a card, then discard a card.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawDiscardControllerEffect(), new ManaCostsImpl("{1}{U}{R}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawDiscardControllerEffect(), new ManaCostsImpl<>("{1}{U}{R}")));
// {2}{U}{R}: Copy target instant or sorcery spell you control. You may choose new targets for the copy.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CopyTargetSpellEffect(), new ManaCostsImpl("{2}{U}{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CopyTargetSpellEffect(), new ManaCostsImpl<>("{2}{U}{R}"));
ability.addTarget(new TargetSpell(filter));
this.addAbility(ability);
}

View file

@ -28,7 +28,7 @@ public final class NoblePanther extends CardImpl {
this.toughness = new MageInt(3);
// {1}: Noble Panther gains first strike until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{1}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}")));
}
private NoblePanther(final NoblePanther card) {

View file

@ -27,7 +27,7 @@ public final class NobleSteeds extends CardImpl {
Ability ability = new SimpleActivatedAbility(
Zone.BATTLEFIELD,
new GainAbilityTargetEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn),
new ManaCostsImpl("{1}{W}")
new ManaCostsImpl<>("{1}{W}")
);
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -29,7 +29,7 @@ public final class NobleTemplar extends CardImpl {
// Vigilance
this.addAbility(VigilanceAbility.getInstance());
// Plainscycling {2}
this.addAbility(new PlainscyclingAbility(new ManaCostsImpl("{2}")));
this.addAbility(new PlainscyclingAbility(new ManaCostsImpl<>("{2}")));
}
private NobleTemplar(final NobleTemplar card) {

View file

@ -34,7 +34,7 @@ public final class NomadDecoy extends CardImpl {
this.toughness = new MageInt(2);
// {W}, {tap}: Tap target creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{W}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl<>("{W}"));
ability.addTarget(new TargetCreaturePermanent());
ability.addCost(new TapSourceCost());
this.addAbility(ability);
@ -42,7 +42,7 @@ public final class NomadDecoy extends CardImpl {
// Threshold - {W}{W}, {T}: Tap two target creatures. Activate this ability only if seven or more cards are in your graveyard.
Ability thresholdAbility = new ConditionalActivatedAbility(Zone.BATTLEFIELD,
new TapTargetEffect(),
new ManaCostsImpl("{W}{W}"),
new ManaCostsImpl<>("{W}{W}"),
new CardsInControllerGraveyardCondition(7));
thresholdAbility.addCost(new TapSourceCost());
thresholdAbility.addTarget(new TargetCreaturePermanent(2));

View file

@ -44,7 +44,7 @@ public final class NomadMythmaker extends CardImpl {
this.toughness = new MageInt(2);
// {W}, {tap}: Put target Aura card from a graveyard onto the battlefield under your control attached to a creature you control.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new NomadMythmakerEffect(), new ManaCostsImpl("{W}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new NomadMythmakerEffect(), new ManaCostsImpl<>("{W}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCardInGraveyard(1, FILTER));
this.addAbility(ability);

View file

@ -34,7 +34,7 @@ public final class NomadStadium extends CardImpl {
// Threshold - {W}, {tap}, Sacrifice Nomad Stadium: You gain 4 life. Activate this ability only if seven or more cards are in your graveyard.
Ability thresholdAbility = new ConditionalActivatedAbility(Zone.BATTLEFIELD,
new GainLifeEffect(4),
new ManaCostsImpl("{W}"),
new ManaCostsImpl<>("{W}"),
new CardsInControllerGraveyardCondition(7));
thresholdAbility.addCost(new TapSourceCost());
thresholdAbility.addCost(new SacrificeSourceCost());

View file

@ -25,7 +25,7 @@ public final class NomadicElf extends CardImpl {
this.toughness = new MageInt(2);
// {1}{G}: Add one mana of any color.
this.addAbility(new AnyColorManaAbility(new ManaCostsImpl("{1}{G}")));
this.addAbility(new AnyColorManaAbility(new ManaCostsImpl<>("{1}{G}")));
}
private NomadicElf(final NomadicElf card) {

View file

@ -38,7 +38,7 @@ public final class NorthernPaladin extends CardImpl {
this.toughness = new MageInt(3);
// {W}{W}, {tap}: Destroy target black permanent.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{W}{W}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{W}{W}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);

View file

@ -31,7 +31,7 @@ public final class NotoriousAssassin extends CardImpl {
this.toughness = new MageInt(2);
// {2}{B}, {tap}, Discard a card: Destroy target nonblack creature. It can't be regenerated.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(true), new ManaCostsImpl("{2}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(true), new ManaCostsImpl<>("{2}{B}"));
ability.addCost(new TapSourceCost());
ability.addCost(new DiscardCardCost());
ability.addTarget(new TargetCreaturePermanent(StaticFilters.FILTER_PERMANENT_CREATURE_NON_BLACK));

View file

@ -30,7 +30,7 @@ public final class NovaCleric extends CardImpl {
this.toughness = new MageInt(2);
// {2}{W}, {tap}, Sacrifice Nova Cleric: Destroy all enchantments.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyAllEffect(new FilterEnchantmentPermanent("enchantments")), new ManaCostsImpl("{2}{W}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyAllEffect(new FilterEnchantmentPermanent("enchantments")), new ManaCostsImpl<>("{2}{W}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);

View file

@ -25,7 +25,7 @@ public final class NullBrooch extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{4}");
// {2}, {tap}, Discard your hand: Counter target noncreature spell.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new ManaCostsImpl("{2}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new ManaCostsImpl<>("{2}"));
ability.addCost(new TapSourceCost());
ability.addCost(new DiscardHandCost());
ability.addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_NON_CREATURE));

View file

@ -31,12 +31,12 @@ public final class NullChampion extends LevelerCard {
this.color.setBlack(true);
this.power = new MageInt(1);
this.toughness = new MageInt(1);
this.addAbility(new LevelUpAbility(new ManaCostsImpl("{3}")));
this.addAbility(new LevelUpAbility(new ManaCostsImpl<>("{3}")));
Abilities<Ability> abilities1 = new AbilitiesImpl<>();
Abilities<Ability> abilities2 = new AbilitiesImpl<>();
abilities2.add(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
abilities2.add(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
this.addAbilities(LevelerCardBuilder.construct(
new LevelerCardBuilder.LevelAbility(1, 3, abilities1, 4, 2),

View file

@ -78,7 +78,7 @@ class NumaJoragaChieftainEffect extends OneShotEffect {
if (player == null) {
return false;
}
ManaCosts cost = new ManaCostsImpl("{X}{X}");
ManaCosts cost = new ManaCostsImpl<>("{X}{X}");
if (!player.chooseUse(Outcome.BoostCreature, "Pay " + cost.getText() + "?", source, game)) {
return false;
}

View file

@ -38,7 +38,7 @@ public final class NumotTheDevastator extends CardImpl {
OneShotEffect effect = new DestroyTargetEffect();
effect.setText("destroy up to two target lands");
Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(
new DoIfCostPaid(effect, new ManaCostsImpl("{2}{R}")), false);
new DoIfCostPaid(effect, new ManaCostsImpl<>("{2}{R}")), false);
ability.addTarget(new TargetLandPermanent(0, 2, StaticFilters.FILTER_LANDS, false));
this.addAbility(ability);
}

View file

@ -39,7 +39,7 @@ public final class NurturerInitiate extends CardImpl {
this.toughness = new MageInt(1);
// Whenever a player casts a green spell, you may pay {1}. If you do, target creature gets +1/+1 until end of turn.
Ability ability = new SpellCastAllTriggeredAbility(new DoIfCostPaid(new BoostTargetEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{1}")), filter, false);
Ability ability = new SpellCastAllTriggeredAbility(new DoIfCostPaid(new BoostTargetEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{1}")), filter, false);
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

View file

@ -50,7 +50,7 @@ public final class NyleaGodOfTheHunt extends CardImpl {
// {3}{G}: Target creature gets +2/+2 until end of turn.
Ability ability = new SimpleActivatedAbility(
new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl("{3}{G}")
new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl<>("{3}{G}")
);
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -48,7 +48,7 @@ public final class NyleaKeenEyed extends CardImpl {
this.addAbility(new SimpleStaticAbility(new SpellsCostReductionControllerEffect(filter, 1)));
// {2}{G}: Reveal the top card of your library. If it's a creature card, put it into your hand. Otherwise, you may put it into your graveyard.
this.addAbility(new SimpleActivatedAbility(new NyleaKeenEyedEffect(), new ManaCostsImpl("{2}{G}")));
this.addAbility(new SimpleActivatedAbility(new NyleaKeenEyedEffect(), new ManaCostsImpl<>("{2}{G}")));
}
private NyleaKeenEyed(final NyleaKeenEyed card) {

View file

@ -37,7 +37,7 @@ public final class NyxWeaver extends CardImpl {
// At the beginning of your upkeep, put the top two cards of your library into your graveyard.
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new MillCardsControllerEffect(2), TargetController.YOU, false));
// {1}{B}{G}, Exile Nyx Weaver: Return target card from your graveyard to your hand.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnFromGraveyardToHandTargetEffect(), new ManaCostsImpl("{1}{B}{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnFromGraveyardToHandTargetEffect(), new ManaCostsImpl<>("{1}{B}{G}"));
ability.addCost(new ExileSourceCost());
ability.addTarget(new TargetCardInYourGraveyard());
this.addAbility(ability);