Fix raw use of parameterized class 'ManaCostsImpl' - 'c' cards (#9012)

This commit is contained in:
DeepCrimson 2022-05-29 10:26:40 -07:00 committed by GitHub
parent a8eba71156
commit 4af07b957d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
215 changed files with 239 additions and 239 deletions

View file

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

View file

@ -36,7 +36,7 @@ public final class CabalExecutioner extends CardImpl {
this.addAbility(new CabalExecutionerAbility());
// Morph {3}{B}{B}
this.addAbility(new MorphAbility(new ManaCostsImpl("{3}{B}{B}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{3}{B}{B}")));
}
private CabalExecutioner(final CabalExecutioner card) {

View file

@ -37,7 +37,7 @@ public final class CabalInquisitor extends CardImpl {
this.toughness = new MageInt(1);
// Threshold - {1}{B}, {T}, Exile two cards from your graveyard: Target player discards a card. Activate this ability only any time you could cast a sorcery, and only if seven or more cards are in your graveyard.
Ability ability = new ActivateAsSorceryConditionalActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1), new ManaCostsImpl("{1}{B}"), new CardsInControllerGraveyardCondition(7));
Ability ability = new ActivateAsSorceryConditionalActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1), new ManaCostsImpl<>("{1}{B}"), new CardsInControllerGraveyardCondition(7));
ability.addTarget(new TargetPlayer());
ability.addCost(new TapSourceCost());
ability.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(2, StaticFilters.FILTER_CARDS_FROM_YOUR_GRAVEYARD)));

View file

@ -33,7 +33,7 @@ public final class CabalInterrogator extends CardImpl {
// Activate only as a sorcery.
Ability ability = new ActivateAsSorceryActivatedAbility(
new DiscardCardYouChooseTargetEffect(TargetController.ANY, ManacostVariableValue.REGULAR),
new ManaCostsImpl("{X}{B}"));
new ManaCostsImpl<>("{X}{B}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(ability);

View file

@ -38,14 +38,14 @@ public final class CabalPatriarch extends CardImpl {
this.toughness = new MageInt(5);
// {2}{B}, Sacrifice a creature: Target creature gets -2/-2 until end of turn.
Ability ability1 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-2, -2, Duration.EndOfTurn), new ManaCostsImpl("{2}{B}"));
Ability ability1 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-2, -2, Duration.EndOfTurn), new ManaCostsImpl<>("{2}{B}"));
TargetControlledPermanent target = new TargetControlledPermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT);
ability1.addCost(new SacrificeTargetCost(target));
ability1.addTarget(new TargetCreaturePermanent());
this.addAbility(ability1);
// {2}{B}, Exile a creature card from your graveyard: Target creature gets -2/-2 until end of turn.
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-2, -2, Duration.EndOfTurn), new ManaCostsImpl("{2}{B}"));
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-2, -2, Duration.EndOfTurn), new ManaCostsImpl<>("{2}{B}"));
ability2.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(new FilterCreatureCard("a creature card"))));
ability2.addTarget(new TargetCreaturePermanent());
this.addAbility(ability2);

View file

@ -36,7 +36,7 @@ public final class CabalPit extends CardImpl {
// Threshold - {B}, {T}, Sacrifice Cabal Pit: Target creature gets -2/-2 until end of turn. Activate this ability only if seven or more cards are in your graveyard.
Ability thresholdAbility = new ConditionalActivatedAbility(Zone.BATTLEFIELD,
new BoostTargetEffect(-2,-2, Duration.EndOfTurn),
new ManaCostsImpl("{B}"),
new ManaCostsImpl<>("{B}"),
new CardsInControllerGraveyardCondition(7));
thresholdAbility.addCost(new TapSourceCost());
thresholdAbility.addCost(new SacrificeSourceCost());

View file

@ -33,13 +33,13 @@ public final class CabalTorturer extends CardImpl {
this.toughness = new MageInt(1);
// {B}, {tap}: Target creature gets -1/-1 until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-1, -1, Duration.EndOfTurn), new ManaCostsImpl("{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-1, -1, Duration.EndOfTurn), new ManaCostsImpl<>("{B}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
// Threshold - {3}{B}{B}, {tap}: Target creature gets -2/-2 until end of turn. Activate this ability only if seven or more cards are in your graveyard.
ability = new ConditionalActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-2, -2, Duration.EndOfTurn),
new ManaCostsImpl("{3}{B}{B}"), new CardsInControllerGraveyardCondition(7));
new ManaCostsImpl<>("{3}{B}{B}"), new CardsInControllerGraveyardCondition(7));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
ability.setAbilityWord(AbilityWord.THRESHOLD);

View file

@ -24,7 +24,7 @@ public final class CacklingCounterpart extends CardImpl {
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
// Flashback {5}{U}{U}
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{5}{U}{U}")));
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{5}{U}{U}")));
}
private CacklingCounterpart(final CacklingCounterpart card) {

View file

@ -36,7 +36,7 @@ public final class CacklingWitch extends CardImpl {
ManacostVariableValue manaX = ManacostVariableValue.REGULAR;
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new BoostTargetEffect(manaX, StaticValue.get(0), Duration.EndOfTurn),
new ManaCostsImpl("{X}{B}"));
new ManaCostsImpl<>("{X}{B}"));
ability.addCost(new TapSourceCost());
ability.addCost(new DiscardCardCost());
ability.addTarget(new TargetCreaturePermanent());

View file

@ -30,7 +30,7 @@ public final class CadaverousKnight extends CardImpl {
// Flanking
this.addAbility(new FlankingAbility());
// {1}{B}{B}: Regenerate Cadaverous Knight.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{1}{B}{B}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{B}{B}")));
}
private CadaverousKnight(final CadaverousKnight card) {

View file

@ -39,7 +39,7 @@ public final class CageOfHands extends CardImpl {
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CageOfHandsEffect()));
// {1}{W}: Return Cage of Hands to its owner's hand.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{1}{W}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl<>("{1}{W}")));
}
private CageOfHands(final CageOfHands card) {

View file

@ -31,7 +31,7 @@ public final class CagedZombie extends CardImpl {
// {1}{B}, {T}: Each opponent loses 2 life. Activate this ability only if a creature died this turn.
Ability ability = new ActivateIfConditionActivatedAbility(
Zone.BATTLEFIELD, new LoseLifeOpponentsEffect(2),
new ManaCostsImpl("{1}{B}"), MorbidCondition.instance
new ManaCostsImpl<>("{1}{B}"), MorbidCondition.instance
);
ability.addCost(new TapSourceCost());
this.addAbility(ability.addHint(MorbidHint.instance));

View file

@ -28,9 +28,9 @@ public final class CalderaKavu extends CardImpl {
this.toughness = new MageInt(2);
// {1}{B}: Caldera Kavu gets +1/+1 until end of turn.
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}")));
// {G}: Caldera Kavu becomes the color of your choice until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesColorSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{G}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesColorSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{G}")));
}
private CalderaKavu(final CalderaKavu card) {

View file

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

View file

@ -24,7 +24,7 @@ public final class CallOfTheWild extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{G}{G}");
// {2}{G}{G}: Reveal the top card of your library. If it's a creature card, put it onto the battlefield. Otherwise, put it into your graveyard.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CallOfTheWildEffect(), new ManaCostsImpl("{2}{G}{G}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CallOfTheWildEffect(), new ManaCostsImpl<>("{2}{G}{G}")));
}
private CallOfTheWild(final CallOfTheWild card) {

View file

@ -33,7 +33,7 @@ public final class CallerOfGales extends CardImpl {
this.toughness = new MageInt(1);
// {1}{U}, {T}: Target creature gains flying until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{1}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}{U}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -39,7 +39,7 @@ public final class CallousDeceiver extends CardImpl {
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new LookLibraryControllerEffect(), new GenericManaCost(1)));
// {2}: Reveal the top card of your library. If it's a land card, {this} gets +1/+0 and gains flying until end of turn. Activate this ability only once each turn.
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new CallousDeceiverEffect(), new ManaCostsImpl("{2}")));
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new CallousDeceiverEffect(), new ManaCostsImpl<>("{2}")));
}
private CallousDeceiver(final CallousDeceiver card) {

View file

@ -27,7 +27,7 @@ public final class CandelabraOfTawnos extends CardImpl {
// {X}, {T}: Untap X target lands.
Effect effect = new UntapTargetEffect();
effect.setText("untap X target lands");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{X}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{X}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_LANDS));
ability.setTargetAdjuster(XTargetsAdjuster.instance);

View file

@ -26,7 +26,7 @@ public final class CanopyClaws extends CardImpl {
this.getSpellAbility().addEffect(new LoseAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn));
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
// Flashback {G}
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{G}")));
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{G}")));
}
private CanopyClaws(final CanopyClaws card) {

View file

@ -35,7 +35,7 @@ public final class CanopyDragon extends CardImpl {
// {1}{G}: Canopy Dragon gains flying and loses trample until end of turn.
Effect effect = new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn);
effect.setText("{this} gains flying");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{1}{G}"));
effect = new LoseAbilitySourceEffect(TrampleAbility.getInstance(), Duration.EndOfTurn);
effect.setText("and loses trample until end of turn");
ability.addEffect(effect);

View file

@ -31,7 +31,7 @@ public final class CanyonDrake extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// {1}, Discard a card at random: Canyon Drake gets +2/+0 until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl("{1}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}"));
ability.addCost(new DiscardCardCost(true));
this.addAbility(ability);
}

View file

@ -25,7 +25,7 @@ public final class CanyonLurkers extends CardImpl {
this.toughness = new MageInt(2);
// Morph 3R
this.addAbility(new MorphAbility(new ManaCostsImpl("{3}{R}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{3}{R}")));
}
private CanyonLurkers(final CanyonLurkers card) {

View file

@ -32,7 +32,7 @@ public final class CanyonSlough extends CardImpl {
this.addAbility(new EntersBattlefieldTappedAbility());
// Cycling {2}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
}

View file

@ -30,7 +30,7 @@ public final class CapashenKnight extends CardImpl {
this.addAbility(FirstStrikeAbility.getInstance());
// {1}{W}: Capashen Knight gets +1/+0 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{1}{W}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{W}")));
}
private CapashenKnight(final CapashenKnight card) {

View file

@ -40,7 +40,7 @@ public final class CapashenStandard extends CardImpl {
// Enchanted creature gets +1/+1.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(1, 1, Duration.WhileOnBattlefield)));
// {2}, Sacrifice Capashen Standard: Draw a card.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{2}"));
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{2}"));
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);
}

View file

@ -28,7 +28,7 @@ public final class CapashenTemplar extends CardImpl {
this.toughness = new MageInt(2);
// {W}: Capashen Templar gets +0/+1 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0, 1, Duration.EndOfTurn), new ManaCostsImpl("{W}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{W}")));
}
private CapashenTemplar(final CapashenTemplar card) {

View file

@ -31,7 +31,7 @@ public final class CapashenUnicorn extends CardImpl {
this.toughness = new MageInt(2);
// {1}{W}, {tap}, Sacrifice Capashen Unicorn: Destroy target artifact or enchantment.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{1}{W}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{1}{W}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));

View file

@ -46,7 +46,7 @@ public final class CaptainOfTheMists extends CardImpl {
this.addAbility(new EntersBattlefieldControlledTriggeredAbility(new UntapSourceEffect(), filter));
// {1}{U}, {tap}: You may tap or untap target permanent.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MayTapOrUntapTargetEffect(), new ManaCostsImpl("{1}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MayTapOrUntapTargetEffect(), new ManaCostsImpl<>("{1}{U}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPermanent());
this.addAbility(ability);

View file

@ -51,7 +51,7 @@ public final class CaptainPhasma extends CardImpl {
new GainAbilityControlledEffect(ability, Duration.WhileOnBattlefield, filter, false)));
// {W}{U}{B}{R}{G}: Search your library for a Trooper creature card, reveal it, put it into your hand, then shuffle your library.
this.addAbility(new SimpleActivatedAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filterCard), true, true), new ManaCostsImpl("{W}{U}{B}{R}{G}")));
this.addAbility(new SimpleActivatedAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filterCard), true, true), new ManaCostsImpl<>("{W}{U}{B}{R}{G}")));
}
private CaptainPhasma(final CaptainPhasma card) {

View file

@ -35,7 +35,7 @@ public final class CaptivatingCrew extends CardImpl {
this.toughness = new MageInt(3);
// {3}{R}: Gain control of target creature an opponent controls until end of turn. Untap that creature. It gains haste until end of turn. Activate this ability only any time you could cast a sorcery.
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new GainControlTargetEffect(Duration.EndOfTurn, true), new ManaCostsImpl("{3}{R}"));
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new GainControlTargetEffect(Duration.EndOfTurn, true), new ManaCostsImpl<>("{3}{R}"));
Effect effect = new UntapTargetEffect();
effect.setText("Untap that creature");
ability.addEffect(effect);

View file

@ -29,7 +29,7 @@ public final class CaravanEscort extends LevelerCard {
this.power = new MageInt(1);
this.toughness = new MageInt(1);
this.addAbility(new LevelUpAbility(new ManaCostsImpl("{2}")));
this.addAbility(new LevelUpAbility(new ManaCostsImpl<>("{2}")));
AbilitiesImpl<Ability> levelAbilities = new AbilitiesImpl<>(FirstStrikeAbility.getInstance());
this.addAbilities(LevelerCardBuilder.construct(

View file

@ -48,7 +48,7 @@ public final class CaribouRange extends CardImpl {
Ability ability = new EnchantAbility(auraTarget.getTargetName());
this.addAbility(ability);
// Enchanted land has "{W}{W}, {T}: Create a 0/1 white Caribou creature token."
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new CaribouToken()), new ManaCostsImpl("{W}{W}"));
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new CaribouToken()), new ManaCostsImpl<>("{W}{W}"));
ability.addCost(new TapSourceCost());
Effect effect = new GainAbilityAttachedEffect(ability, AttachmentType.AURA);
effect.setText("Enchanted land has \"{W}{W}, {T}: Create a 0/1 white Caribou creature token.\"");

View file

@ -36,7 +36,7 @@ public final class CarnageGladiator extends CardImpl {
this.addAbility(new CarnageGladiatorTriggeredAbility());
// {1}{B}{R}: Renegerate Carnage Gladiator.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(),new ManaCostsImpl("{1}{B}{R}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(),new ManaCostsImpl<>("{1}{B}{R}")));
}

View file

@ -29,7 +29,7 @@ public final class Carnassid extends CardImpl {
// Trample
this.addAbility(TrampleAbility.getInstance());
// {1}{G}: Regenerate Carnassid.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{1}{G}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{G}")));
}
private Carnassid(final Carnassid card) {

View file

@ -51,7 +51,7 @@ public final class CarnifexDemon extends CardImpl {
new AddCountersAllEffect(
CounterType.M1M1.createInstance(),
filter
), new ManaCostsImpl("{B}")
), new ManaCostsImpl<>("{B}")
);
ability.addCost(new RemoveCountersSourceCost(CounterType.M1M1.createInstance()));
this.addAbility(ability);

View file

@ -29,7 +29,7 @@ public final class CarnivorousMossBeast extends CardImpl {
this.toughness = new MageInt(5);
// {5}{G}{G}: Put a +1/+1 counter on Carnivorous Moss-Beast.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl("{5}{G}{G}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl<>("{5}{G}{G}")));
}
private CarnivorousMossBeast(final CarnivorousMossBeast card) {

View file

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

View file

@ -28,7 +28,7 @@ public final class CarrionBeetles extends CardImpl {
this.toughness = new MageInt(1);
// {2}{B}, {T}: Exile up to three target cards from a single graveyard.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl("{2}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl<>("{2}{B}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCardInASingleGraveyard(0, 3, StaticFilters.FILTER_CARD_CARDS));
this.addAbility(ability);

View file

@ -29,7 +29,7 @@ public final class CarrionWall extends CardImpl {
// Defender
this.addAbility(DefenderAbility.getInstance());
// {1}{B}: Regenerate Carrion Wall.
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 CarrionWall(final CarrionWall card) {

View file

@ -29,10 +29,10 @@ public final class Carrionette extends CardImpl {
this.toughness = new MageInt(1);
// {2}{B}{B}: Exile Carrionette and target creature unless that creature's controller pays {2}. Activate this ability only if Carrionette is in your graveyard.
DoUnlessTargetPlayerOrTargetsControllerPaysEffect effect = new DoUnlessTargetPlayerOrTargetsControllerPaysEffect(new ExileTargetEffect(), new ManaCostsImpl("{2}"));
DoUnlessTargetPlayerOrTargetsControllerPaysEffect effect = new DoUnlessTargetPlayerOrTargetsControllerPaysEffect(new ExileTargetEffect(), new ManaCostsImpl<>("{2}"));
effect.addEffect(new ExileSourceEffect());
effect.setText("Exile {this} and target creature unless that creature's controller pays {2}. Activate only if {this} is in your graveyard");
Ability ability = new SimpleActivatedAbility(Zone.GRAVEYARD, effect, new ManaCostsImpl("{2}{B}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.GRAVEYARD, effect, new ManaCostsImpl<>("{2}{B}{B}"));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

View file

@ -25,15 +25,15 @@ public final class CascadeBluffs extends CardImpl {
this.addAbility(new ColorlessManaAbility());
// {U/R}, {tap}: Add {U}{U}, {U}{R}, or {R}{R}.
SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.BlueMana(2), new ManaCostsImpl("{U/R}"));
SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.BlueMana(2), new ManaCostsImpl<>("{U/R}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
ability = new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(0, 1, 0, 1, 0, 0, 0, 0), new ManaCostsImpl("{U/R}"));
ability = new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(0, 1, 0, 1, 0, 0, 0, 0), new ManaCostsImpl<>("{U/R}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana(2), new ManaCostsImpl("{U/R}"));
ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana(2), new ManaCostsImpl<>("{U/R}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

View file

@ -42,7 +42,7 @@ public final class CastOut extends CardImpl {
this.addAbility(ability);
// Cycling {W}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{W}")));
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{W}")));
}

View file

@ -44,7 +44,7 @@ public final class CastleArdenvale extends CardImpl {
// {2}{W}{W}, {T}: Create a 1/1 white Human creature token.
Ability ability = new SimpleActivatedAbility(
new CreateTokenEffect(new HumanToken()), new ManaCostsImpl("{2}{W}{W}")
new CreateTokenEffect(new HumanToken()), new ManaCostsImpl<>("{2}{W}{W}")
);
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -44,7 +44,7 @@ public final class CastleEmbereth extends CardImpl {
// {1}{R}{R}, {T}: Creatures you control get +1/+0 until end of turn.
Ability ability = new SimpleActivatedAbility(
new BoostControlledEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{1}{R}{R}")
new BoostControlledEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{R}{R}")
);
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -47,7 +47,7 @@ public final class CastleGarenbrig extends CardImpl {
// {2}{G}{G}, {T}: Add six {G}. Spend this mana only to cast creature spells or activate abilities of creatures.
Ability ability = new ConditionalColoredManaAbility(
new ManaCostsImpl("{2}{G}{G}"), Mana.GreenMana(6), new CastleGarenbrigManaBuilder()
new ManaCostsImpl<>("{2}{G}{G}"), Mana.GreenMana(6), new CastleGarenbrigManaBuilder()
);
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -45,7 +45,7 @@ public final class CastleLocthwain extends CardImpl {
// {1}{B}{B}, {T}: Draw a card, then you lose life equal to the number of cards in your hand.
Ability ability = new SimpleActivatedAbility(
new DrawCardSourceControllerEffect(1).setText("draw a card,"), new ManaCostsImpl("{1}{B}{B}")
new DrawCardSourceControllerEffect(1).setText("draw a card,"), new ManaCostsImpl<>("{1}{B}{B}")
);
ability.addEffect(new LoseLifeSourceControllerEffect(CardsInControllerHandCount.instance)
.setText("then you lose life equal to the number of cards in your hand"));

View file

@ -42,7 +42,7 @@ public final class CastleVantress extends CardImpl {
this.addAbility(new BlueManaAbility());
// {2}{U}{U}, {T}: Scry 2.
Ability ability = new SimpleActivatedAbility(new ScryEffect(2), new ManaCostsImpl("{2}{U}{U}"));
Ability ability = new SimpleActivatedAbility(new ScryEffect(2), new ManaCostsImpl<>("{2}{U}{U}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

View file

@ -31,7 +31,7 @@ public final class CatBurglar extends CardImpl {
this.toughness = new MageInt(2);
// {2}{B}, {tap}: 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 ManaCostsImpl("{2}{B}"));
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1), new ManaCostsImpl<>("{2}{B}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(ability);

View file

@ -30,7 +30,7 @@ public final class CatharCommando extends CardImpl {
this.addAbility(FlashAbility.getInstance());
// {1}, Sacrifice Cathar Commando: Destroy target artifact or enchantment.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{1}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{1}"));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));
this.addAbility(ability);

View file

@ -66,7 +66,7 @@ public final class CattiBrieOfMithralHall extends CardImpl {
// attacking or blocking creature an opponent controls, where X is the number of
// counters removed this way.
Ability damageAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new DamageTargetEffect(CattiBrieRemovedCounterValue.instance).setText("it deals X damage to target attacking or blocking creature an opponent controls, where X is the number of counters removed this way"), new ManaCostsImpl("{1}"));
new DamageTargetEffect(CattiBrieRemovedCounterValue.instance).setText("it deals X damage to target attacking or blocking creature an opponent controls, where X is the number of counters removed this way"), new ManaCostsImpl<>("{1}"));
damageAbility.addTarget(new TargetCreaturePermanent(filter));
damageAbility.addCost(new RemoveAllCountersSourceCost(CounterType.P1P1));

View file

@ -30,7 +30,7 @@ public final class CausticCaterpillar extends CardImpl {
this.toughness = new MageInt(1);
// {1}{G}, Sacrifice Caustic Caterpillar: Destroy target artifact or enchantment.
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 TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));
this.addAbility(ability);

View file

@ -46,7 +46,7 @@ public final class CavalierOfFlame extends CardImpl {
// {1}{R}: Creatures you control get +1/+0 and gain haste until end of turn.
Ability ability = new SimpleActivatedAbility(new BoostControlledEffect(
1, 0, Duration.EndOfTurn
).setText("Creatures you control get +1/+0"), new ManaCostsImpl("{1}{R}"));
).setText("Creatures you control get +1/+0"), new ManaCostsImpl<>("{1}{R}"));
ability.addEffect(new GainAbilityControlledEffect(
HasteAbility.getInstance(), Duration.EndOfTurn,
StaticFilters.FILTER_PERMANENT_CREATURE

View file

@ -49,7 +49,7 @@ public final class CaveOfTheFrostDragon extends CardImpl {
.withColor("W")
.withSubType(SubType.DRAGON)
.withAbility(FlyingAbility.getInstance()),
"land", Duration.EndOfTurn), new ManaCostsImpl("{4}{W}")));
"land", Duration.EndOfTurn), new ManaCostsImpl<>("{4}{W}")));
}
private CaveOfTheFrostDragon(final CaveOfTheFrostDragon card) {

View file

@ -35,7 +35,7 @@ public final class CavePeople extends CardImpl {
this.addAbility(new AttacksTriggeredAbility(new BoostSourceEffect(1, -2, Duration.EndOfTurn), false));
// {1}{R}{R}, {tap}: Target creature gains mountainwalk until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(new MountainwalkAbility(), Duration.EndOfTurn), new ManaCostsImpl("{1}{R}{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(new MountainwalkAbility(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}{R}{R}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -30,7 +30,7 @@ public final class CavernCrawler extends CardImpl {
this.addAbility(new MountainwalkAbility());
// {R}: Cavern Crawler gets +1/-1 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, -1, Duration.EndOfTurn), new ManaCostsImpl("{R}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, -1, Duration.EndOfTurn), new ManaCostsImpl<>("{R}")));
}
private CavernCrawler(final CavernCrawler card) {

View file

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

View file

@ -41,7 +41,7 @@ public final class CelestialColonnade extends CardImpl {
.withSubType(SubType.ELEMENTAL)
.withAbility(FlyingAbility.getInstance())
.withAbility(VigilanceAbility.getInstance()),
"land", Duration.EndOfTurn), new ManaCostsImpl("{3}{W}{U}")));
"land", Duration.EndOfTurn), new ManaCostsImpl<>("{3}{W}{U}")));
}
private CelestialColonnade(final CelestialColonnade card) {

View file

@ -45,7 +45,7 @@ public final class CelestialEnforcer extends CardImpl {
// {1}{W}, {T}: Tap target creature. Activate this ability only if you control a creature with flying.
Ability ability = new ActivateIfConditionActivatedAbility(
Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{1}{W}"), condition
Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl<>("{1}{W}"), condition
);
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());

View file

@ -37,7 +37,7 @@ public final class CemeteryPuca extends CardImpl {
// Whenever a creature dies, you may pay {1}. If you do, Cemetery Puca becomes a copy of that creature, except it has this ability.
this.addAbility(new DiesCreatureTriggeredAbility(
new DoIfCostPaid(new CemeteryPucaEffect(), new ManaCostsImpl("{1}")),
new DoIfCostPaid(new CemeteryPucaEffect(), new ManaCostsImpl<>("{1}")),
false,
StaticFilters.FILTER_PERMANENT_A_CREATURE,
true));
@ -76,7 +76,7 @@ class CemeteryPucaEffect extends OneShotEffect {
Permanent copyFromCreature = getTargetPointer().getFirstTargetPermanentOrLKI(game, source);
if (copyFromCreature != null) {
game.copyPermanent(Duration.WhileOnBattlefield, copyFromCreature, copyToCreature.getId(), source, new EmptyCopyApplier());
ContinuousEffect effect = new GainAbilityTargetEffect(new DiesCreatureTriggeredAbility(new DoIfCostPaid(new CemeteryPucaEffect(), new ManaCostsImpl("{1}")), false, StaticFilters.FILTER_PERMANENT_A_CREATURE, true), Duration.WhileOnBattlefield);
ContinuousEffect effect = new GainAbilityTargetEffect(new DiesCreatureTriggeredAbility(new DoIfCostPaid(new CemeteryPucaEffect(), new ManaCostsImpl<>("{1}")), false, StaticFilters.FILTER_PERMANENT_A_CREATURE, true), Duration.WhileOnBattlefield);
effect.setTargetPointer(new FixedTarget(copyToCreature.getId(), game));
game.addEffect(effect, source);
return true;

View file

@ -43,7 +43,7 @@ public final class CemeteryReaper extends CardImpl {
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter, true)));
// {2}{B}, {T} : Exile target creature card from a graveyard. Create a 2/2 black Zombie creature token.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl("{2}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl<>("{2}{B}"));
ability.addCost(new TapSourceCost());
ability.addEffect(new CreateTokenEffect(new ZombieToken()));
ability.addTarget(new TargetCardInGraveyard(new FilterCreatureCard("creature card from a graveyard")));

View file

@ -25,7 +25,7 @@ public final class Censor extends CardImpl {
this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(1)));
// Cycling {U}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{U}")));
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{U}")));
}

View file

@ -36,7 +36,7 @@ public final class CentaurGarden extends CardImpl {
// Threshold - {G}, {tap}, Sacrifice Centaur Garden: Target creature gets +3/+3 until end of turn. Activate this ability only if seven or more cards are in your graveyard.
Ability thresholdAbility = new ConditionalActivatedAbility(Zone.BATTLEFIELD,
new BoostTargetEffect(+3,+3, Duration.EndOfTurn),
new ManaCostsImpl("{G}"),
new ManaCostsImpl<>("{G}"),
new CardsInControllerGraveyardCondition(7));
thresholdAbility.addCost(new TapSourceCost());
thresholdAbility.addCost(new SacrificeSourceCost());

View file

@ -21,7 +21,7 @@ public final class CentaurGlade extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{3}{G}{G}");
// {2}{G}{G}: Create a 3/3 green Centaur creature token.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new CentaurToken(), 1), new ManaCostsImpl("{2}{G}{G}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new CentaurToken(), 1), new ManaCostsImpl<>("{2}{G}{G}")));
}
private CentaurGlade(final CentaurGlade card) {

View file

@ -30,7 +30,7 @@ public final class CentaurVeteran extends CardImpl {
// Trample
this.addAbility(TrampleAbility.getInstance());
// {G}, Discard a card: Regenerate Centaur Veteran.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{G}"));
ability.addCost(new DiscardCardCost());
this.addAbility(ability);
}

View file

@ -30,7 +30,7 @@ public final class CentaursHerald extends CardImpl {
this.toughness = new MageInt(1);
// {2}{G}, Sacrifice Centaur's Herald: Create a 3/3 green Centaur creature token.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new CentaurToken()), new ManaCostsImpl("{2}{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new CentaurToken()), new ManaCostsImpl<>("{2}{G}"));
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);
}

View file

@ -35,7 +35,7 @@ public final class CephalidColiseum extends CardImpl {
// Threshold - {U}, {tap}, Sacrifice Cephalid Coliseum: Target player draws three cards, then discards three cards. Activate this ability only if seven or more cards are in your graveyard.
Ability thresholdAbility = new ConditionalActivatedAbility(Zone.BATTLEFIELD,
new DrawDiscardTargetEffect(3, 3),
new ManaCostsImpl("{U}"),
new ManaCostsImpl<>("{U}"),
new CardsInControllerGraveyardCondition(7));
thresholdAbility.addCost(new TapSourceCost());
thresholdAbility.addCost(new SacrificeSourceCost());

View file

@ -41,7 +41,7 @@ public final class CephalidIllusionist extends CardImpl {
Effect effect = new PreventDamageToTargetEffect(Duration.EndOfTurn, true);
effect.setText("Prevent all combat damage that would be dealt to");
// and dealt by target creature you control this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{2}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{2}{U}"));
effect = new PreventDamageByTargetEffect(Duration.EndOfTurn, true);
effect.setText("and dealt by target creature you control this turn.");
ability.addEffect(effect);

View file

@ -38,7 +38,7 @@ public final class CephalidRetainer extends CardImpl {
this.toughness = new MageInt(3);
// {U}{U}: Tap target creature without flying.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{U}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl<>("{U}{U}"));
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);
}

View file

@ -35,7 +35,7 @@ public final class CephalidScout extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// {2}{U}, Sacrifice a land: Draw a card.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{2}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{2}{U}"));
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(StaticFilters.FILTER_CONTROLLED_LAND_SHORT_TEXT)));
this.addAbility(ability);
}

View file

@ -32,7 +32,7 @@ public final class CeruleanSphinx extends CardImpl {
// {U}: Cerulean Sphinx's owner shuffles it into their library.
Effect effect = new ShuffleIntoLibrarySourceEffect();
effect.setText("{this}'s owner shuffles it into their library.");
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{U}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{U}")));
}
private CeruleanSphinx(final CeruleanSphinx card) {

View file

@ -74,7 +74,7 @@ class ChainLightningEffect extends OneShotEffect {
}
if (affectedPlayer != null) {
if (affectedPlayer.chooseUse(Outcome.Copy, "Pay {R}{R} to copy the spell?", source, game)) {
Cost cost = new ManaCostsImpl("{R}{R}");
Cost cost = new ManaCostsImpl<>("{R}{R}");
if (cost.pay(source, game, source, affectedPlayer.getId(), false, null)) {
Spell spell = game.getStack().getSpell(source.getSourceId());
if (spell != null) {

View file

@ -76,7 +76,7 @@ class ChainStasisEffect extends OneShotEffect {
if (player == null) {
return false;
}
Cost cost = new ManaCostsImpl("{2}{U}");
Cost cost = new ManaCostsImpl<>("{2}{U}");
if (cost.pay(source, game, source, controller.getId(), false)) {
if (player.chooseUse(outcome, "Copy the spell?", source, game)) {
Spell spell = game.getStack().getSpell(source.getSourceId());

View file

@ -26,7 +26,7 @@ public final class ChainersEdict extends CardImpl {
this.getSpellAbility().addTarget(new TargetPlayer());
// Flashback {5}{B}{B}
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{5}{B}{B}")));
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{5}{B}{B}")));
}
private ChainersEdict(final ChainersEdict card) {

View file

@ -32,14 +32,14 @@ public final class Chainflinger extends CardImpl {
this.toughness = new MageInt(2);
// {1}{R}, {tap}: Chainflinger deals 1 damage to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1),new ManaCostsImpl("{1}{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1),new ManaCostsImpl<>("{1}{R}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
// Threshold - {2}{R}, {tap}: Chainflinger deals 2 damage to any target. Activate this ability only if seven or more cards are in your graveyard.
Ability thresholdAbility = new ConditionalActivatedAbility(Zone.BATTLEFIELD,
new DamageTargetEffect(2),
new ManaCostsImpl("{2}{R}"),
new ManaCostsImpl<>("{2}{R}"),
new CardsInControllerGraveyardCondition(7));
thresholdAbility.addCost(new TapSourceCost());
thresholdAbility.addTarget(new TargetAnyTarget());

View file

@ -29,7 +29,7 @@ public final class ChainwhipCyclops extends CardImpl {
// {3}{R}: Target creature can't block this turn.
Ability ability = new SimpleActivatedAbility(
new CantBlockTargetEffect(Duration.EndOfTurn), new ManaCostsImpl("{3}{R}")
new CantBlockTargetEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{3}{R}")
);
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -33,7 +33,7 @@ public final class ChakramSlinger extends CardImpl {
this.addAbility(new PartnerWithAbility("Chakram Retriever"));
// {R}, {T}: Chakram Slinger deals 2 damage to target player or planeswalker.
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(2), new ManaCostsImpl("{R}"));
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(2), new ManaCostsImpl<>("{R}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPlayerOrPlaneswalker());
this.addAbility(ability);

View file

@ -47,14 +47,14 @@ public final class ChamberSentry extends CardImpl {
// {X}, {T}, Remove X +1/+1 counters from Chamber Sentry: It deals X damage to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(ManacostVariableValue.REGULAR)
.setText("It deals X damage to any target"),
new ManaCostsImpl("{X}"));
new ManaCostsImpl<>("{X}"));
ability.addCost(new TapSourceCost());
ability.addCost(new ChamberSentryRemoveVariableCountersSourceCost(CounterType.P1P1.createInstance()));
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
// {W}{U}{B}{R}{G}: Return Chamber Sentry from your graveyard to your hand.
this.addAbility(new SimpleActivatedAbility(Zone.GRAVEYARD, new ReturnSourceFromGraveyardToHandEffect(), new ManaCostsImpl("{W}{U}{B}{R}{G}")));
this.addAbility(new SimpleActivatedAbility(Zone.GRAVEYARD, new ReturnSourceFromGraveyardToHandEffect(), new ManaCostsImpl<>("{W}{U}{B}{R}{G}")));
}
private ChamberSentry(final ChamberSentry card) {

View file

@ -61,7 +61,7 @@ public final class ChampionOfStraySouls extends CardImpl {
// {5}{B}{B}: Put Champion of Stray Souls on top of your library from your graveyard.
this.addAbility(new SimpleActivatedAbility(Zone.GRAVEYARD,
new PutOnLibrarySourceEffect(true, "Put {this} on top of your library from your graveyard"),
new ManaCostsImpl("{5}{B}{B}")));
new ManaCostsImpl<>("{5}{B}{B}")));
}
private ChampionOfStraySouls(final ChampionOfStraySouls card) {

View file

@ -42,7 +42,7 @@ public final class ChampionOfWits extends CardImpl {
this.addAbility(ability);
// Eternalize {5}{U}{U}
this.addAbility(new EternalizeAbility(new ManaCostsImpl("{5}{U}{U}"), this));
this.addAbility(new EternalizeAbility(new ManaCostsImpl<>("{5}{U}{U}"), this));
}
private ChampionOfWits(final ChampionOfWits card) {

View file

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

View file

@ -84,7 +84,7 @@ class ChandrasRegulatorEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId());
ManaCostsImpl cost = new ManaCostsImpl("{1}");
ManaCostsImpl cost = new ManaCostsImpl<>("{1}");
if (player == null) {
return false;
}

View file

@ -29,7 +29,7 @@ public final class CharRumbler extends CardImpl {
// Double strike
this.addAbility(DoubleStrikeAbility.getInstance());
// {R}: Char-Rumbler gets +1/+0 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{R}")));
}
private CharRumbler(final CharRumbler card) {

View file

@ -26,7 +26,7 @@ public final class ChargingSlateback extends CardImpl {
// Charging Slateback can't block.
this.addAbility(new CantBlockAbility());
// Morph {4}{R}
this.addAbility(new MorphAbility(new ManaCostsImpl("{4}{R}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{4}{R}")));
}
private ChargingSlateback(final ChargingSlateback card) {

View file

@ -30,7 +30,7 @@ public final class ChargingTroll extends CardImpl {
// Vigilance
this.addAbility(VigilanceAbility.getInstance());
// {G}: Regenerate Charging Troll.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{G}"));
this.addAbility(ability);
}

View file

@ -31,7 +31,7 @@ public final class CharmPeddler extends CardImpl {
this.toughness = new MageInt(1);
// {W}, {T}, Discard a card: The next time a source of your choice would deal damage to target creature this turn, prevent that damage.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventNextDamageFromChosenSourceToTargetEffect(Duration.EndOfTurn), new ManaCostsImpl("{W}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventNextDamageFromChosenSourceToTargetEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{W}"));
ability.addCost(new TapSourceCost());
ability.addCost(new DiscardCardCost());
ability.addTarget(new TargetCreaturePermanent());

View file

@ -57,7 +57,7 @@ public final class CharnelTroll extends CardImpl {
Ability ability = new SimpleActivatedAbility(
Zone.BATTLEFIELD,
new AddCountersSourceEffect(CounterType.P1P1.createInstance()),
new ManaCostsImpl("{B}{G}")
new ManaCostsImpl<>("{B}{G}")
);
ability.addCost(new DiscardTargetCost(
new TargetCardInHand(StaticFilters.FILTER_CARD_CREATURE_A)

View file

@ -29,9 +29,9 @@ public final class ChartoothCougar extends CardImpl {
this.toughness = new MageInt(4);
// {R}: Chartooth Cougar gets +1/+0 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{R}")));
// Mountaincycling {2}
this.addAbility(new MountaincyclingAbility(new ManaCostsImpl("{2}")));
this.addAbility(new MountaincyclingAbility(new ManaCostsImpl<>("{2}")));
}
private ChartoothCougar(final ChartoothCougar card) {

View file

@ -25,7 +25,7 @@ public final class ChatterOfTheSquirrel extends CardImpl {
this.getSpellAbility().addEffect(new CreateTokenEffect(new SquirrelToken()));
// Flashback {1}{G}
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{1}{G}")));
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{1}{G}")));
}
private ChatterOfTheSquirrel(final ChatterOfTheSquirrel card) {

View file

@ -28,7 +28,7 @@ public final class CheckpointOfficer extends CardImpl {
this.toughness = new MageInt(2);
// {1}{W}, {T}: Tap target creature.
Ability ability = new SimpleActivatedAbility(new TapTargetEffect(), new ManaCostsImpl("{1}{W}"));
Ability ability = new SimpleActivatedAbility(new TapTargetEffect(), new ManaCostsImpl<>("{1}{W}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -35,7 +35,7 @@ public final class ChemistersTrick extends CardImpl {
this.getSpellAbility().addEffect(new AttacksIfAbleTargetEffect(Duration.EndOfTurn));
// Overload {3}{U}{R} (You may cast this spell for its overload cost. If you do, change its text by replacing all instances of "target" with "each.")
OverloadAbility ability = new OverloadAbility(this, new BoostAllEffect(-2, 0, Duration.EndOfTurn, StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL, false), new ManaCostsImpl("{3}{U}{R}"));
OverloadAbility ability = new OverloadAbility(this, new BoostAllEffect(-2, 0, Duration.EndOfTurn, StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL, false), new ManaCostsImpl<>("{3}{U}{R}"));
ability.addEffect(new ChemistersTrickEffect());
this.addAbility(ability);
}

View file

@ -31,8 +31,8 @@ public final class ChildOfGaea extends CardImpl {
this.toughness = new MageInt(7);
this.addAbility(TrampleAbility.getInstance());
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{G}{G}")), TargetController.YOU, false));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{1}{G}")));
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl<>("{G}{G}")), TargetController.YOU, false));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{G}")));
}
private ChildOfGaea(final ChildOfGaea card) {

View file

@ -23,7 +23,7 @@ public final class ChillOfForeboding extends CardImpl {
this.getSpellAbility().addEffect(new MillCardsEachPlayerEffect(5, TargetController.ANY));
// Flashback {7}{U}
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{7}{U}")));
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{7}{U}")));
}
private ChillOfForeboding(final ChillOfForeboding card) {

View file

@ -27,7 +27,7 @@ public final class ChillingApparition extends CardImpl {
this.toughness = new MageInt(1);
// {B}: Regenerate Chilling Apparition.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
// Whenever Chilling Apparition deals combat damage to a player, that player discards a card.
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new DiscardTargetEffect(1), false, true));
}

View file

@ -26,7 +26,7 @@ public final class ChillingGrasp extends CardImpl {
this.getSpellAbility().addEffect(new DontUntapInControllersNextUntapStepTargetEffect("Those creatures"));
// Madness {3}{U}
this.addAbility(new MadnessAbility(new ManaCostsImpl("{3}{U}")));
this.addAbility(new MadnessAbility(new ManaCostsImpl<>("{3}{U}")));
}
private ChillingGrasp(final ChillingGrasp card) {

View file

@ -31,7 +31,7 @@ public final class ChillingShade extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// {S}: Chilling Shade gets +1/+1 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{S}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{S}")));
}
private ChillingShade(final ChillingShade card) {

View file

@ -24,7 +24,7 @@ public final class ChimericCoils extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
// {X}{1}: Chimeric Coils becomes an X/X Construct artifact creature. Sacrifice it at the beginning of thhe next end step.
Ability ability = new SimpleActivatedAbility(new ChimericCoilsEffect(), new ManaCostsImpl("{X}{1}"));
Ability ability = new SimpleActivatedAbility(new ChimericCoilsEffect(), new ManaCostsImpl<>("{X}{1}"));
ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new AtTheBeginOfNextEndStepDelayedTriggeredAbility(new SacrificeSourceEffect())));
this.addAbility(ability);
}

View file

@ -26,7 +26,7 @@ public final class ChimericIdol extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
// {0}: Tap all lands you control. Chimeric Idol becomes a 3/3 Turtle artifact creature until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapAllEffect(new FilterControlledLandPermanent("lands you control")), new ManaCostsImpl("{0}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapAllEffect(new FilterControlledLandPermanent("lands you control")), new ManaCostsImpl<>("{0}"));
ability.addEffect(new BecomesCreatureSourceEffect(
new CreatureToken(3, 3, "3/3 Turtle artifact creature")
.withSubType(SubType.TURTLE)

View file

@ -29,14 +29,14 @@ public final class ChimericSphere extends CardImpl {
.withSubType(SubType.CONSTRUCT)
.withType(CardType.ARTIFACT)
.withAbility(FlyingAbility.getInstance()),
"", Duration.EndOfTurn), new ManaCostsImpl("{2}")));
"", Duration.EndOfTurn), new ManaCostsImpl<>("{2}")));
// {2}: Until end of turn, Chimeric Sphere becomes a 3/2 Construct artifact creature without flying.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(
new CreatureToken(3, 2, "3/2 Construct artifact creature without flying")
.withSubType(SubType.CONSTRUCT)
.withType(CardType.ARTIFACT),
"", Duration.EndOfTurn), new ManaCostsImpl("{2}")));
"", Duration.EndOfTurn), new ManaCostsImpl<>("{2}")));
}
private ChimericSphere(final ChimericSphere card) {

View file

@ -21,7 +21,7 @@ public final class ChimericStaff extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}");
// {X}: Chimeric Staff becomes an X/X Construct artifact creature until end of turn.
this.addAbility(new SimpleActivatedAbility(new ChimericStaffEffect(), new ManaCostsImpl("{X}")));
this.addAbility(new SimpleActivatedAbility(new ChimericStaffEffect(), new ManaCostsImpl<>("{X}")));
}
private ChimericStaff(final ChimericStaff card) {

View file

@ -43,7 +43,7 @@ public final class ChirrutImwe extends CardImpl {
// {1}{W}: Prevent all combat damage that would be dealt to Chirrut Imwe until end of turn.
Effect effect = new PreventCombatDamageToSourceEffect(Duration.EndOfTurn);
effect.setText("Prevent all combat damage that would be dealt to {this} until end of turn");
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{W}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{1}{W}")));
}
private ChirrutImwe(final ChirrutImwe card) {

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