Refactor: Fix raw use of parameterized class 'ManaCostsImpl' - 'k' cards (#9060)

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

View file

@ -34,7 +34,7 @@ public final class KabiraVindicator extends LevelerCard {
this.power = new MageInt(2);
this.toughness = new MageInt(4);
this.addAbility(new LevelUpAbility(new ManaCostsImpl("{2}{W}")));
this.addAbility(new LevelUpAbility(new ManaCostsImpl<>("{2}{W}")));
Abilities<Ability> abilities1 = new AbilitiesImpl<>();
abilities1.add(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, StaticFilters.FILTER_PERMANENT_CREATURES, true)));

View file

@ -33,7 +33,7 @@ public final class KadenasSilencer extends CardImpl {
this.addAbility(new TurnedFaceUpSourceTriggeredAbility(new KadenasSilencerEffect()));
// Megamorph {1}{U}
this.addAbility(new MorphAbility(new ManaCostsImpl("{1}{U}"), true));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{1}{U}"), true));
}
private KadenasSilencer(final KadenasSilencer card) {

View file

@ -47,7 +47,7 @@ public final class KagemaroFirstToSuffer extends CardImpl {
Zone.BATTLEFIELD,
new BoostAllEffect(xMinusValue, xMinusValue, Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURE, false,
"All creatures get -X/-X until end of turn, where X is the number of cards in your hand"),
new ManaCostsImpl("{B}")
new ManaCostsImpl<>("{B}")
);
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);

View file

@ -43,7 +43,7 @@ public final class KahoMinamoHistorian extends CardImpl {
// {X}, {tap}: You may cast a card with converted mana cost X exiled with
// Kaho without paying its mana cost.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new KahoMinamoHistorianCastEffect(), new ManaCostsImpl("{X}"));
new KahoMinamoHistorianCastEffect(), new ManaCostsImpl<>("{X}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

View file

@ -40,7 +40,7 @@ public final class KalastriaHighborn extends CardImpl {
this.toughness = new MageInt(2);
// Whenever Kalastria Highborn or another Vampire you control dies, you may pay {B}. If you do, target player loses 2 life and you gain 2 life.
Ability ability = new DiesThisOrAnotherCreatureTriggeredAbility(new DoIfCostPaid(new LoseGainEffect(), new ManaCostsImpl("{B}")), false, filter);
Ability ability = new DiesThisOrAnotherCreatureTriggeredAbility(new DoIfCostPaid(new LoseGainEffect(), new ManaCostsImpl<>("{B}")), false, filter);
ability.addTarget(new TargetPlayer());
this.addAbility(ability);
}

View file

@ -35,7 +35,7 @@ public final class KalitasBloodchiefOfGhet extends CardImpl {
this.subtype.add(SubType.WARRIOR);
// {B}{B}{B}, {T}: Destroy target creature. If that creature dies this way, create a black Vampire creature token. Its power is equal to that creature's power and its toughness is equal to that creature's toughness.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new KalitasDestroyEffect(), new ManaCostsImpl("{B}{B}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new KalitasDestroyEffect(), new ManaCostsImpl<>("{B}{B}{B}"));
ability.addCost(new TapSourceCost());
this.power = new MageInt(5);
this.toughness = new MageInt(5);

View file

@ -56,7 +56,7 @@ public final class KalitasTraitorOfGhet extends CardImpl {
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new KalitasTraitorOfGhetEffect()));
// {2}{B}, Sacrifice another Vampire or Zombie: Put two +1/+1 counters on Kalitas, Traitor of Ghet.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance(2)), new ManaCostsImpl("{2}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance(2)), new ManaCostsImpl<>("{2}{B}"));
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(filter)));
this.addAbility(ability);
}

View file

@ -39,14 +39,14 @@ public final class KamahlFistOfKrosa extends CardImpl {
// {G}: Target land becomes a 1/1 creature until end of turn. It's still a land.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new BecomesCreatureTargetEffect(new CreatureToken(1, 1), false, true, Duration.EndOfTurn),
new ManaCostsImpl("{G}"));
new ManaCostsImpl<>("{G}"));
ability.addTarget(new TargetLandPermanent());
this.addAbility(ability);
// {2}{G}{G}{G}: Creatures you control get +3/+3 and gain trample until end of turn.
SimpleActivatedAbility boostAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new BoostControlledEffect(3, 3, Duration.EndOfTurn),
new ManaCostsImpl("{2}{G}{G}{G}"));
new ManaCostsImpl<>("{2}{G}{G}{G}"));
boostAbility.addEffect(new GainAbilityControlledEffect(TrampleAbility.getInstance(), Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURES));
this.addAbility(boostAbility);
}

View file

@ -50,7 +50,7 @@ public final class KamahlHeartOfKrosa extends CardImpl {
.withAbility(IndestructibleAbility.getInstance())
.withAbility(HasteAbility.getInstance()),
false, true, Duration.EndOfTurn
), new ManaCostsImpl("{1}{G}"));
), new ManaCostsImpl<>("{1}{G}"));
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_CONTROLLED_PERMANENT_LAND));
this.addAbility(ability);

View file

@ -40,7 +40,7 @@ public final class KaminoCloningFacility extends CardImpl {
this.addAbility(new ConditionalAnyColorManaAbility(new TapSourceCost(), 1, new ConditionalSpellManaBuilder(FILTER), true));
// {5}, {T}: Create a 1/1 white Trooper creature tokens.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new TrooperToken(), 1), new ManaCostsImpl("{5}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new TrooperToken(), 1), new ManaCostsImpl<>("{5}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

View file

@ -35,7 +35,7 @@ public final class KarganDragonlord extends LevelerCard {
this.power = new MageInt(2);
this.toughness = new MageInt(2);
this.addAbility(new LevelUpAbility(new ManaCostsImpl("{R}")));
this.addAbility(new LevelUpAbility(new ManaCostsImpl<>("{R}")));
Abilities<Ability> abilities1 = new AbilitiesImpl<>();
abilities1.add(FlyingAbility.getInstance());
@ -43,7 +43,7 @@ public final class KarganDragonlord extends LevelerCard {
Abilities<Ability> abilities2 = new AbilitiesImpl<>();
abilities2.add(FlyingAbility.getInstance());
abilities2.add(TrampleAbility.getInstance());
abilities2.add(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}")));
abilities2.add(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{R}")));
this.addAbilities(LevelerCardBuilder.construct(
new LevelerCardBuilder.LevelAbility(4, 7, abilities1, 4, 4),

View file

@ -37,7 +37,7 @@ public final class KarlovOfTheGhostCouncil extends CardImpl {
this.addAbility(new GainLifeControllerTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance(2)), false));
// {W}{B}, Remove six +1/+1 counters from Karlov of the Ghost Council: Exile target creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl("{W}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl<>("{W}{B}"));
ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance(6)));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -41,7 +41,7 @@ public final class KarnSilverGolem extends CardImpl {
this.addAbility(new BlocksOrBecomesBlockedSourceTriggeredAbility(new BoostSourceEffect(-4, +4, Duration.EndOfTurn), false));
// {1}: Target noncreature artifact becomes an artifact creature with power and toughness each equal to its converted mana cost until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new KarnSilverGolemEffect(), new ManaCostsImpl("{1}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new KarnSilverGolemEffect(), new ManaCostsImpl<>("{1}"));
ability.addTarget(new TargetPermanent(filterNonCreature));
this.addAbility(ability);
}

View file

@ -30,7 +30,7 @@ public final class KaronasZealot extends CardImpl {
this.toughness = new MageInt(5);
// Morph {3}{W}{W}
this.addAbility(new MorphAbility(new ManaCostsImpl("{3}{W}{W}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{3}{W}{W}")));
// When Karona's Zealot is turned face up, all damage that would be dealt to it this turn is dealt to target creature instead.
Ability ability = new TurnedFaceUpSourceTriggeredAbility(new RedirectDamageFromSourceToTargetEffect(Duration.EndOfTurn, Integer.MAX_VALUE, ACCORDING_DURATION)

View file

@ -36,7 +36,7 @@ public final class KashiTribeReaver extends CardImpl {
ability.addEffect(new DontUntapInControllersNextUntapStepTargetEffect("and it"));
this.addAbility(ability);
// {1}{G}: Regenerate Kashi-Tribe Reaver.
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 KashiTribeReaver(final KashiTribeReaver card) {

View file

@ -39,7 +39,7 @@ public final class KathariBomber extends CardImpl {
this.addAbility(ability);
// Unearth {3}{B}{R}
this.addAbility(new UnearthAbility(new ManaCostsImpl("{3}{B}{R}")));
this.addAbility(new UnearthAbility(new ManaCostsImpl<>("{3}{B}{R}")));
}
private KathariBomber(final KathariBomber card) {

View file

@ -30,7 +30,7 @@ public final class KathariRemnant extends CardImpl {
this.power = new MageInt(0);
this.toughness = new MageInt(1);
this.addAbility(FlyingAbility.getInstance());
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
this.addAbility(new CascadeAbility());
}

View file

@ -30,7 +30,7 @@ public final class KathariScreecher extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// Unearth {2}{U} ({2}{U}: Return this card from your graveyard to the battlefield. It gains haste. Exile it at the beginning of the next end step or if it would leave the battlefield. Unearth only as a sorcery.)
this.addAbility(new UnearthAbility(new ManaCostsImpl("{2}{U}")));
this.addAbility(new UnearthAbility(new ManaCostsImpl<>("{2}{U}")));
}
public KathariScreecher (final KathariScreecher card) {

View file

@ -31,7 +31,7 @@ public final class KavuChameleon extends CardImpl {
// Kavu Chameleon can't be countered.
this.addAbility(new SimpleStaticAbility(Zone.STACK, new CantBeCounteredSourceEffect()));
// {G}: Kavu Chameleon 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 KavuChameleon(final KavuChameleon card) {

View file

@ -33,7 +33,7 @@ public final class KazanduTuskcaller extends LevelerCard {
this.power = new MageInt(1);
this.toughness = new MageInt(1);
this.addAbility(new LevelUpAbility(new ManaCostsImpl("{1}{G}")));
this.addAbility(new LevelUpAbility(new ManaCostsImpl<>("{1}{G}")));
Abilities<Ability> abilities1 = new AbilitiesImpl<>();
abilities1.add(new SimpleActivatedAbility(Zone.BATTLEFIELD,

View file

@ -43,7 +43,7 @@ public final class KazarovSengirPureblood extends CardImpl {
this.addAbility(new KazarovSengirPurebloodTriggeredAbility());
// {3}{R}: Kazarov deals 2 damage to target creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl("{3}{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl<>("{3}{R}"));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

View file

@ -38,7 +38,7 @@ public final class KazuulsTollCollector extends CardImpl {
this.toughness = new MageInt(2);
// {0}: Attach target Equipment you control to Kazuul's Toll Collector. Activate this ability only any time you could cast a sorcery.
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new KazuulsTollCollectorEffect(), new ManaCostsImpl("{0}"));
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new KazuulsTollCollectorEffect(), new ManaCostsImpl<>("{0}"));
ability.addTarget(new TargetControlledPermanent(filter));
this.addAbility(ability);
}

View file

@ -35,7 +35,7 @@ public final class KederektLeviathan extends CardImpl {
// When Kederekt Leviathan enters the battlefield, return all other nonland permanents to their owners' hands.
this.addAbility(new EntersBattlefieldTriggeredAbility(new ReturnToHandFromBattlefieldAllEffect(filter)));
// Unearth {6}{U}
this.addAbility(new UnearthAbility(new ManaCostsImpl("{6}{U}")));
this.addAbility(new UnearthAbility(new ManaCostsImpl<>("{6}{U}")));
}
private KederektLeviathan(final KederektLeviathan card) {

View file

@ -31,7 +31,7 @@ public final class KeenGlidemaster extends CardImpl {
// {2}{U}: Target creature gains flying until end of turn.
Ability ability = new SimpleActivatedAbility(new GainAbilityTargetEffect(
FlyingAbility.getInstance(), Duration.EndOfTurn
), new ManaCostsImpl("{2}{U}"));
), new ManaCostsImpl<>("{2}{U}"));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

View file

@ -28,7 +28,7 @@ public final class KeeneyeAven extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// Cycling {2}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
}
private KeeneyeAven(final KeeneyeAven card) {

View file

@ -54,7 +54,7 @@ public final class KeensightMentor extends CardImpl {
// {1}{W}, {T}: Put a +1/+1 counter on each creature you control with vigilance.
ability = new SimpleActivatedAbility(
new AddCountersAllEffect(CounterType.P1P1.createInstance(), filter2), new ManaCostsImpl("{1}{W}")
new AddCountersAllEffect(CounterType.P1P1.createInstance(), filter2), new ManaCostsImpl<>("{1}{W}")
);
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -30,7 +30,7 @@ public final class KeeperOfKookus extends CardImpl {
this.toughness = new MageInt(1);
// {R}: Keeper of Kookus gains protection from red until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(ProtectionAbility.from(ObjectColor.RED), Duration.EndOfTurn), new ManaCostsImpl("{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(ProtectionAbility.from(ObjectColor.RED), Duration.EndOfTurn), new ManaCostsImpl<>("{R}"));
this.addAbility(ability);
}

View file

@ -37,7 +37,7 @@ public final class KeeperOfTheBeasts extends CardImpl {
// {G}, {tap}: Choose target opponent who controlled more creatures than you did as you activated this ability. Put a 2/2 green Beast creature token onto the battlefield.
Ability ability = new SimpleActivatedAbility(new CreateTokenEffect(new BeastToken4()).setText("Choose target opponent who controlled more creatures than you did as you activated this ability. Create a 2/2 green Beast creature token."),
new ManaCostsImpl("{G}"));
new ManaCostsImpl<>("{G}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new KeeperOfTheBeastsTarget());
this.addAbility(ability);

View file

@ -50,7 +50,7 @@ public final class KeeperOfTheDead extends CardImpl {
// {B}, {T}: Choose target opponent who had at least two fewer creature cards in their graveyard than you did as you activated this ability. Destroy target nonblack creature they control.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new KeeperOfTheDeadEffect(), new TapSourceCost());
ability.addCost(new ManaCostsImpl("{B}"));
ability.addCost(new ManaCostsImpl<>("{B}"));
ability.addTarget(new TargetPlayer(1, 1, false, filter));
ability.addTarget(new KeeperOfTheDeadCreatureTarget());
this.addAbility(ability);

View file

@ -41,7 +41,7 @@ public final class KeeperOfTheFlame extends CardImpl {
// {R}, {tap}: Choose target opponent who had more life than you did as you activated this ability. Keeper of the Flame deals 2 damage to that player.
Ability ability = new SimpleActivatedAbility(
new DamageTargetEffect(2).setText("Choose target opponent who had more life than you did as you activated this ability. {this} deals 2 damage to that player"),
new ManaCostsImpl("{R}"));
new ManaCostsImpl<>("{R}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPlayer(1, 1, false, filter));
this.addAbility(ability);

View file

@ -38,7 +38,7 @@ public final class KeeperOfTheLight extends CardImpl {
// {W}, {T}: Choose target opponent who had more life than you did as you activated this ability. You gain 3 life.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new GainLifeEffect(3).setText("Choose target opponent who had more life than you did as you activated this ability. You gain 3 life."),
new ManaCostsImpl("{W}"));
new ManaCostsImpl<>("{W}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new KeeperOfTheLightTarget());
this.addAbility(ability);

View file

@ -64,7 +64,7 @@ public class KeeperOfTheMind extends CardImpl {
// {U}, {tap}: Choose target opponent who had at least two more cards in hand than you did as you activated this ability. Draw a card.
Effect effect = new DrawCardSourceControllerEffect(1);
effect.setText("Choose target opponent who had at least two more cards in hand than you did as you activated this ability. Draw a card.");
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl("{U}"));
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl<>("{U}"));
ability.addCost(new TapSourceCost());
ability.setTargetAdjuster(KeeperOfTheMindAdjuster.instance);
this.addAbility(ability);

View file

@ -44,7 +44,7 @@ public final class KefnetTheMindful extends CardImpl {
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new KefnetTheMindfulRestrictionEffect()));
// {3}{U}: Draw a card, then you may return a land you control to its owner's hand.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new KefnetTheMindfulEffect(), new ManaCostsImpl("{3}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new KefnetTheMindfulEffect(), new ManaCostsImpl<>("{3}{U}"));
this.addAbility(ability);
}

View file

@ -27,7 +27,7 @@ public final class KeldonHalberdier extends CardImpl {
// First strike
this.addAbility(FirstStrikeAbility.getInstance());
// Suspend 4-{R}
this.addAbility(new SuspendAbility(4, new ManaCostsImpl("{R}"), this));
this.addAbility(new SuspendAbility(4, new ManaCostsImpl<>("{R}"), this));
}
private KeldonHalberdier(final KeldonHalberdier card) {

View file

@ -39,13 +39,13 @@ public final class KeldonMantle extends CardImpl {
Ability ability = new EnchantAbility(auraTarget.getTargetName());
this.addAbility(ability);
// {B}: Regenerate enchanted creature.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateAttachedEffect(AttachmentType.AURA), new ManaCostsImpl("{B}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateAttachedEffect(AttachmentType.AURA), new ManaCostsImpl<>("{B}")));
// {R}: Enchanted creature gets +1/+0 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(1, 0, Duration.EndOfTurn),
new ManaCostsImpl("{R}")));
new ManaCostsImpl<>("{R}")));
// {G}: Enchanted creature gains trample until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(TrampleAbility.getInstance(),
AttachmentType.AURA, Duration.EndOfTurn), new ManaCostsImpl("{G}")));
AttachmentType.AURA, Duration.EndOfTurn), new ManaCostsImpl<>("{G}")));
}
private KeldonMantle(final KeldonMantle card) {

View file

@ -31,7 +31,7 @@ public final class KeldonNecropolis extends CardImpl {
// {tap}: Add {C}.
this.addAbility(new ColorlessManaAbility());
// {4}{R}, {T}, Sacrifice a creature: Keldon Necropolis deals 2 damage to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl(new ManaCostsImpl("{4}{R}")));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl<>(new ManaCostsImpl<>("{4}{R}")));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
ability.addTarget(new TargetAnyTarget());

View file

@ -43,7 +43,7 @@ public final class KelsinkoRanger 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(filter));
this.addAbility(ability);

View file

@ -43,7 +43,7 @@ public final class KenrithTheReturnedKing extends CardImpl {
Ability ability = new SimpleActivatedAbility(new GainAbilityAllEffect(
TrampleAbility.getInstance(), Duration.EndOfTurn,
StaticFilters.FILTER_PERMANENT_CREATURE
).setText("all creatures gain trample"), new ManaCostsImpl("{R}"));
).setText("all creatures gain trample"), new ManaCostsImpl<>("{R}"));
ability.addEffect(new GainAbilityAllEffect(
HasteAbility.getInstance(), Duration.EndOfTurn,
StaticFilters.FILTER_PERMANENT_CREATURE
@ -52,23 +52,23 @@ public final class KenrithTheReturnedKing extends CardImpl {
// {1}{G}: Put a +1/+1 counter on target creature.
ability = new SimpleActivatedAbility(
new AddCountersTargetEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl("{1}{G}")
new AddCountersTargetEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl<>("{1}{G}")
);
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
// {2}{W}: Target player gains 5 life.
ability = new SimpleActivatedAbility(new GainLifeTargetEffect(5), new ManaCostsImpl("{2}{W}"));
ability = new SimpleActivatedAbility(new GainLifeTargetEffect(5), new ManaCostsImpl<>("{2}{W}"));
ability.addTarget(new TargetPlayer());
this.addAbility(ability);
// {3}{U}: Target player draws a card.
ability = new SimpleActivatedAbility(new DrawCardTargetEffect(1), new ManaCostsImpl("{3}{U}"));
ability = new SimpleActivatedAbility(new DrawCardTargetEffect(1), new ManaCostsImpl<>("{3}{U}"));
ability.addTarget(new TargetPlayer());
this.addAbility(ability);
// {4}{B}: Put target creature card from a graveyard onto the battlefield under its owner's control.
ability = new SimpleActivatedAbility(new KenrithTheReturnedKingEffect(), new ManaCostsImpl("{4}{B}"));
ability = new SimpleActivatedAbility(new KenrithTheReturnedKingEffect(), new ManaCostsImpl<>("{4}{B}"));
ability.addTarget(new TargetCardInGraveyard(StaticFilters.FILTER_CARD_CREATURE));
this.addAbility(ability);
}

View file

@ -30,7 +30,7 @@ public final class KessigProwler extends CardImpl {
// {4}{G}: Transform Kessig Prowler.
this.addAbility(new TransformAbility());
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new TransformSourceEffect(), new ManaCostsImpl("{4}{G}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new TransformSourceEffect(), new ManaCostsImpl<>("{4}{G}")));
}
private KessigProwler(final KessigProwler card) {

View file

@ -30,7 +30,7 @@ public final class KessigWolf extends CardImpl {
// {1}{R}: Kessig Wolf gains first strike until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn),
new ManaCostsImpl("{1}{R}")));
new ManaCostsImpl<>("{1}{R}")));
}
private KessigWolf(final KessigWolf card) {

View file

@ -32,7 +32,7 @@ public final class KessigWolfRun extends CardImpl {
// {X}{R}{G}, {T}: Target creature gets +X/+0 and gains trample until end of turn.
Ability ability = new SimpleActivatedAbility(new GainAbilityTargetEffect(
TrampleAbility.getInstance(), Duration.EndOfTurn
).setText("Target creature gets +X/+0"), new ManaCostsImpl("{X}{R}{G}"));
).setText("Target creature gets +X/+0"), new ManaCostsImpl<>("{X}{R}{G}"));
ability.addEffect(new BoostTargetEffect(
ManacostVariableValue.REGULAR, StaticValue.get(0), Duration.EndOfTurn
).setText("and gains trample until end of turn"));

View file

@ -25,7 +25,7 @@ public final class KetriaCrystal extends CardImpl {
this.addAbility(new RedManaAbility());
// Cycling {2}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
}
private KetriaCrystal(final KetriaCrystal card) {

View file

@ -28,7 +28,7 @@ public final class KherKeep extends CardImpl {
this.addAbility(new ColorlessManaAbility());
// {1}{R}, {T}: Create a 0/1 red Kobold creature token named Kobolds of Kher Keep.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new KherKeepKoboldToken()), new ManaCostsImpl("{1}{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new KherKeepKoboldToken()), new ManaCostsImpl<>("{1}{R}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

View file

@ -51,7 +51,7 @@ public final class KheruLichLord extends CardImpl {
// At the beginning of your upkeep, you may pay {2}{B}. If you do, return a creature card at random from your graveyard to the battlefield. It gains flying, trample, and haste. Exile that card at the beginning of the next end step. If that card would leave the battlefield, exile it instead of putting it anywhere else.
this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD,
new DoIfCostPaid(new KheruLichLordEffect(), new ManaCostsImpl("{2}{B}"), "Return creature card from your graveyard?"), TargetController.YOU, false));
new DoIfCostPaid(new KheruLichLordEffect(), new ManaCostsImpl<>("{2}{B}"), "Return creature card from your graveyard?"), TargetController.YOU, false));
}
private KheruLichLord(final KheruLichLord card) {

View file

@ -42,7 +42,7 @@ public final class KiAdiMundi extends CardImpl {
this.addAbility(new EntersBattlefieldTriggeredAbility(new AddCountersAllEffect(CounterType.P1P1.createInstance(), filter)));
// Meditate {1}{G}
this.addAbility(new MeditateAbility(new ManaCostsImpl("{1}{G}")));
this.addAbility(new MeditateAbility(new ManaCostsImpl<>("{1}{G}")));
}
private KiAdiMundi(final KiAdiMundi card) {

View file

@ -51,7 +51,7 @@ public final class KianneDeanOfSubstance extends ModalDoubleFacesCard {
this.getLeftHalfCard().addAbility(new SimpleActivatedAbility(FractalToken.getEffect(
KianneDeanOfSubstanceValue.instance, "Put a +1/+1 counter on it for each different mana value " +
"among nonland cards you own in exile with study counters on them"
), new ManaCostsImpl("{4}{G}")).addHint(KianneDeanOfSubstanceHint.instance));
), new ManaCostsImpl<>("{4}{G}")).addHint(KianneDeanOfSubstanceHint.instance));
// 2.
// Imbraham, Dean of Theory
@ -64,7 +64,7 @@ public final class KianneDeanOfSubstance extends ModalDoubleFacesCard {
// {X}{U}{U}, {T}: Exile the top X cards of your library and put a study counter on each of them. Then you may put a card you own in exile with a study counter on it into your hand.
Ability ability = new SimpleActivatedAbility(
new ImbrahamDeanOfTheoryEffect(), new ManaCostsImpl("{X}{U}{U}")
new ImbrahamDeanOfTheoryEffect(), new ManaCostsImpl<>("{X}{U}{U}")
);
ability.addCost(new TapSourceCost());
this.getRightHalfCard().addAbility(ability);

View file

@ -40,7 +40,7 @@ public final class KikuNightsFlower extends CardImpl {
ability = new SimpleActivatedAbility(
Zone.BATTLEFIELD,
new KikuNightsFlowerEffect(),
new ManaCostsImpl("{2}{B}{B}")
new ManaCostsImpl<>("{2}{B}{B}")
);
ability.addTarget(new TargetCreaturePermanent());
ability.addCost(new TapSourceCost());

View file

@ -38,7 +38,7 @@ public final class KillSuitCultist extends CardImpl {
// Kill-Suit Cultist attacks each turn if able.
this.addAbility(new AttacksEachCombatStaticAbility());
// {B}, Sacrifice Kill-Suit Cultist: The next time damage would be dealt to target creature this turn, destroy that creature instead.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new KillSuitCultistEffect(), new ManaCostsImpl("{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new KillSuitCultistEffect(), new ManaCostsImpl<>("{B}"));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -30,7 +30,7 @@ public final class KillerBees extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// {G}: Killer Bees gets +1/+1 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{G}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{G}")));
}

View file

@ -31,7 +31,7 @@ public final class KinTreeWarden extends CardImpl {
// {2}: Regenerate Kin-Tree Warden
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new GenericManaCost(2)));
// Morph {G}
this.addAbility(new MorphAbility(new ManaCostsImpl("{G}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{G}")));
}
private KinTreeWarden(final KinTreeWarden card) {

View file

@ -42,7 +42,7 @@ public final class KindredBoon extends CardImpl {
// {1}{W}: Put a divinity counter on target creature you control of the chosen type.
FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("creature you control of the chosen type");
filter.add(ChosenSubtypePredicate.TRUE);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.DIVINITY.createInstance()), new ManaCostsImpl("{1}{W}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.DIVINITY.createInstance()), new ManaCostsImpl<>("{1}{W}"));
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);

View file

@ -38,7 +38,7 @@ public final class KingCrab extends CardImpl {
this.toughness = new MageInt(5);
// {1}{U}, {tap}: Put target green creature on top of its owner's library.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutOnLibraryTargetEffect(true), new ManaCostsImpl("{1}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutOnLibraryTargetEffect(true), new ManaCostsImpl<>("{1}{U}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);

View file

@ -52,7 +52,7 @@ public final class KinnanBonderProdigy extends CardImpl {
// Put the rest on the bottom of your library in a random order.
this.addAbility(new SimpleActivatedAbility(
new LookLibraryAndPickControllerEffect(5, 1, filter2, PutCards.BATTLEFIELD, PutCards.BOTTOM_RANDOM),
new ManaCostsImpl("{5}{G}{U}")));
new ManaCostsImpl<>("{5}{G}{U}")));
}
private KinnanBonderProdigy(final KinnanBonderProdigy card) {

View file

@ -52,7 +52,7 @@ public final class KirdChieftain extends CardImpl {
// {4}{G}: Target creature gets +2/+2 and gains trample until end of turn.
Effect effect = new BoostTargetEffect(2, 2, Duration.EndOfTurn);
effect.setText("Target creature gets +2/+2");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{4}{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{4}{G}"));
effect = new GainAbilityTargetEffect(TrampleAbility.getInstance(), Duration.EndOfTurn);
effect.setText("and gains trample until end of turn");
ability.addEffect(effect);

View file

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

View file

@ -34,7 +34,7 @@ public final class KithkinSpellduster extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// {1}{W}, Sacrifice Kithkin Spellduster: Destroy target 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.addTarget(new TargetEnchantmentPermanent());
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);

View file

@ -32,7 +32,7 @@ public final class KitsuneLoreweaver extends CardImpl {
// {1}{W}: Kitsune Loreweaver gets +0/+X until end of turn, where X is the number of cards in your hand.
Effect effect = new BoostSourceEffect(StaticValue.get(0), CardsInControllerHandCount.instance, Duration.EndOfTurn, true);
effect.setText("{this} gets +0/+X until end of turn, where X is the number of cards in your hand");
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{W}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{1}{W}")));
}
private KitsuneLoreweaver(final KitsuneLoreweaver card) {

View file

@ -33,7 +33,7 @@ public final class KjeldoranDead extends CardImpl {
Ability ability = new EntersBattlefieldTriggeredAbility(new SacrificeControllerEffect(StaticFilters.FILTER_PERMANENT_CREATURE, 1, null));
this.addAbility(ability);
// {B}: Regenerate Kjeldoran Dead.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
}
private KjeldoranDead(final KjeldoranDead card) {

View file

@ -33,7 +33,7 @@ public final class KjeldoranJavelineer extends CardImpl {
this.toughness = new MageInt(2);
// Cumulative upkeep {1}
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{1}")));
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{1}")));
// {T}: Kjeldoran Javelineer deals damage equal to the number of age counters on it to target attacking or blocking creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,

View file

@ -32,10 +32,10 @@ public final class KjeldoranKnight extends CardImpl {
this.addAbility(BandingAbility.getInstance());
// {1}{W}: Kjeldoran 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}")));
// {W}{W}: Kjeldoran Knight gets +0/+2 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0, 2, Duration.EndOfTurn), new ManaCostsImpl("{W}{W}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0, 2, Duration.EndOfTurn), new ManaCostsImpl<>("{W}{W}")));
}
private KjeldoranKnight(final KjeldoranKnight card) {

View file

@ -40,7 +40,7 @@ public final class KjeldoranOutpost extends CardImpl {
// {tap}: Add {W}.
this.addAbility(new WhiteManaAbility());
// {1}{W}, {tap}: Create a 1/1 white Soldier creature token.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new SoldierToken()), new ManaCostsImpl("{1}{W}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new SoldierToken()), new ManaCostsImpl<>("{1}{W}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -27,7 +27,7 @@ public final class KjeldoranOutrider extends CardImpl {
this.toughness = new MageInt(2);
// {W}: Kjeldoran Outrider 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 KjeldoranOutrider(final KjeldoranOutrider card) {

View file

@ -44,7 +44,7 @@ public final class KnacksawClique extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// {1}{U}, {untap}: Target opponent exiles the top card of their library. Until end of turn, you may play that card.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new KnacksawCliqueEffect(), new ManaCostsImpl("{1}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new KnacksawCliqueEffect(), new ManaCostsImpl<>("{1}{U}"));
ability.addCost(new UntapSourceCost());
ability.addTarget(new TargetOpponent());
this.addAbility(ability);

View file

@ -40,7 +40,7 @@ public final class KnightCaptainOfEos extends CardImpl {
this.toughness = new MageInt(2);
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new SoldierToken(), 2), false));
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventAllDamageByAllPermanentsEffect(Duration.EndOfTurn, true), new ManaCostsImpl("{W}"));
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventAllDamageByAllPermanentsEffect(Duration.EndOfTurn, true), new ManaCostsImpl<>("{W}"));
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(1, 1, filter, true)));
this.addAbility(ability);
}

View file

@ -31,7 +31,7 @@ public final class KnightOfCliffhaven extends LevelerCard {
this.power = new MageInt(2);
this.toughness = new MageInt(2);
this.addAbility(new LevelUpAbility(new ManaCostsImpl("{3}")));
this.addAbility(new LevelUpAbility(new ManaCostsImpl<>("{3}")));
Abilities<Ability> abilities1 = new AbilitiesImpl<>();
abilities1.add(FlyingAbility.getInstance());

View file

@ -30,7 +30,7 @@ public final class KnightOfDawn extends CardImpl {
// First strike
this.addAbility(FirstStrikeAbility.getInstance());
// {W}{W}: Knight of Dawn gains protection from the color of your choice until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainProtectionFromColorSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{W}{W}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainProtectionFromColorSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{W}{W}")));
}
private KnightOfDawn(final KnightOfDawn card) {

View file

@ -27,7 +27,7 @@ public final class KnightOfOldBenalia extends CardImpl {
this.toughness = new MageInt(3);
// Suspend 5{W}
this.addAbility(new SuspendAbility(5, new ManaCostsImpl("{W}"), this));
this.addAbility(new SuspendAbility(5, new ManaCostsImpl<>("{W}"), this));
// When Knight of Old Benalia enters the battlefield, other creatures you control get +1/+1 until end of turn.
this.addAbility(new EntersBattlefieldTriggeredAbility(

View file

@ -35,10 +35,10 @@ public final class KnightOfStromgald extends CardImpl {
this.addAbility(ProtectionAbility.from(ObjectColor.WHITE));
// {B}: Knight of Stromgald gains first strike until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{B}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{B}")));
// {B}{B}: Knight of Stromgald gets +1/+0 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1,0, Duration.EndOfTurn), new ManaCostsImpl("{B}{B}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1,0, Duration.EndOfTurn), new ManaCostsImpl<>("{B}{B}")));
}
private KnightOfStromgald(final KnightOfStromgald card) {

View file

@ -30,7 +30,7 @@ public final class KnightOfSursi extends CardImpl {
// flanking
this.addAbility(new FlankingAbility());
// Suspend 3-{W}
this.addAbility(new SuspendAbility(3, new ManaCostsImpl("{W}"), this));
this.addAbility(new SuspendAbility(3, new ManaCostsImpl<>("{W}"), this));
}
private KnightOfSursi(final KnightOfSursi card) {

View file

@ -39,7 +39,7 @@ public final class KnightOfTheEbonLegion extends CardImpl {
// {2}{B}: Knight of the Ebon Legion gets +3/+3 and gains deathtouch until end of turn.
Ability ability = new SimpleActivatedAbility(new BoostSourceEffect(
3, 3, Duration.EndOfTurn
).setText("{this} gets +3/+3"), new ManaCostsImpl("{2}{B}"));
).setText("{this} gets +3/+3"), new ManaCostsImpl<>("{2}{B}"));
ability.addEffect(new GainAbilitySourceEffect(
DeathtouchAbility.getInstance(), Duration.EndOfTurn
).setText("and gains deathtouch until end of turn"));

View file

@ -37,7 +37,7 @@ public final class KnightOfTheHolyNimbus extends CardImpl {
this.addAbility(new SimpleStaticAbility(Zone.ALL, new KnightOfTheHolyNimbusReplacementEffect()));
// {2}: Knight of the Holy Nimbus can't be regenerated this turn. Only any opponent may activate this ability.
this.addAbility(new ActivateOnlyByOpponentActivatedAbility(Zone.BATTLEFIELD, new CantBeRegeneratedSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{2}")));
this.addAbility(new ActivateOnlyByOpponentActivatedAbility(Zone.BATTLEFIELD, new CantBeRegeneratedSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{2}")));
}

View file

@ -39,7 +39,7 @@ public final class KnightOfTheMists extends CardImpl {
// When Knight of the Mists enters the battlefield, you may pay {U}. If you don't, destroy target Knight and it can't be regenerated.
Ability ability = new EntersBattlefieldTriggeredAbility(new DoIfCostPaid(
new InfoEffect(""), new DestroyTargetEffect(true), new ManaCostsImpl("{U}")
new InfoEffect(""), new DestroyTargetEffect(true), new ManaCostsImpl<>("{U}")
).setText("you may pay {U}. If you don't, destroy target Knight and it can't be regenerated."));
ability.addTarget(new TargetPermanent(filter));
addAbility(ability);

View file

@ -28,7 +28,7 @@ public final class KnightOfTheSkywardEye extends CardImpl {
this.toughness = new MageInt(2);
// {3}{G}: Knight of the Skyward Eye gets +3/+3 until end of turn. Activate this ability only once each turn.
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(3, 3, Duration.EndOfTurn), new ManaCostsImpl("{3}{G}")));
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(3, 3, Duration.EndOfTurn), new ManaCostsImpl<>("{3}{G}")));
}

View file

@ -41,7 +41,7 @@ public final class KnightsCharge extends CardImpl {
this.addAbility(ability);
// {6}{W}{B}, Sacrifice Knights' Charge: Return all Knight creature cards from your graveyard to the battlefield.
ability = new SimpleActivatedAbility(new KnightsChargeEffect(), new ManaCostsImpl("{6}{W}{B}"));
ability = new SimpleActivatedAbility(new KnightsChargeEffect(), new ManaCostsImpl<>("{6}{W}{B}"));
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);
}

View file

@ -60,7 +60,7 @@ public final class KoglaTheTitanApe extends CardImpl {
this.addAbility(ability);
// {1}{G}: Return target Human you control to its owner's hand. Kogla gains indestructible until end of turn.
ability = new SimpleActivatedAbility(new ReturnToHandTargetEffect(), new ManaCostsImpl("{1}{G}"));
ability = new SimpleActivatedAbility(new ReturnToHandTargetEffect(), new ManaCostsImpl<>("{1}{G}"));
ability.addEffect(new GainAbilitySourceEffect(IndestructibleAbility.getInstance(), Duration.EndOfTurn));
ability.addTarget(new TargetPermanent(filter2));
this.addAbility(ability);

View file

@ -32,7 +32,7 @@ public final class KolaghanMonument extends CardImpl {
// {4}{B}{R}: Kolaghan Monument becomes a 4/4 black and red Dragon artifact creature with flying until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect
(new KolaghanMonumentToken(), "", Duration.EndOfTurn), new ManaCostsImpl("{4}{B}{R}")));
(new KolaghanMonumentToken(), "", Duration.EndOfTurn), new ManaCostsImpl<>("{4}{B}{R}")));
}
private KolaghanMonument(final KolaghanMonument card) {

View file

@ -32,7 +32,7 @@ public final class KolaghanStormsinger extends CardImpl {
// Haste
this.addAbility(HasteAbility.getInstance());
// Megamorph {R}
this.addAbility(new MorphAbility(new ManaCostsImpl("{R}"), true));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{R}"), true));
// When Kolaghan Stormsinger is turned face up, target creature gains haste until end of turn.
Ability ability = new TurnedFaceUpSourceTriggeredAbility(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn), false);

View file

@ -75,7 +75,7 @@ public final class KolvoriGodOfKinship extends ModalDoubleFacesCard {
// Put the rest on the bottom of your library in a random order.
ability = new SimpleActivatedAbility(
new LookLibraryAndPickControllerEffect(6, 1, filter2, PutCards.HAND, PutCards.BOTTOM_RANDOM),
new ManaCostsImpl("{1}{G}"));
new ManaCostsImpl<>("{1}{G}"));
ability.addCost(new TapSourceCost());
this.getLeftHalfCard().addAbility(ability);

View file

@ -29,7 +29,7 @@ public final class KorSkyClimber extends CardImpl {
this.toughness = new MageInt(2);
// {1}{W}: Kor Sky Climber gains flying until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{1}{W}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}{W}")));
}
private KorSkyClimber(final KorSkyClimber card) {

View file

@ -48,7 +48,7 @@ public final class KorlashHeirToBlackblade extends CardImpl {
// {1}{B}: Regenerate Korlash.
Effect effect = new RegenerateSourceEffect();
effect.setText("Regenerate Korlash.");
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{B}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{1}{B}")));
// Grandeur - Discard another card named Korlash, Heir to Blackblade: Search your library for up to two Swamp cards, put them onto the battlefield tapped, then shuffle your library.
effect = new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(0, 2, filterCard), true, true);

View file

@ -47,7 +47,7 @@ public final class KorozdaGuildmage extends CardImpl {
// {1}{B}{G}: Target creature gets +1/+1 and gains intimidate until end of turn.
Effect effect = new BoostTargetEffect(1, 1, Duration.EndOfTurn);
effect.setText("target creature gets +1/+1");
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl("{1}{B}{G}"));
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl<>("{1}{B}{G}"));
effect = new GainAbilityTargetEffect(IntimidateAbility.getInstance(), Duration.EndOfTurn);
effect.setText("and gains intimidate until end of turn. <i>(It can't be blocked except by artifact creatures and/or creatures that share a color with it.)</i>");
ability.addEffect(effect);
@ -55,7 +55,7 @@ public final class KorozdaGuildmage extends CardImpl {
this.addAbility(ability);
// {2}{B}{G}, Sacrifice a nontoken creature: create X 1/1 green Saproling creature tokens, where X is the sacrificed creature's toughness.
ability = new SimpleActivatedAbility(new CreateTokenEffect(new SaprolingToken(),SacrificeCostCreaturesToughness.instance),new ManaCostsImpl("{2}{B}{G}"));
ability = new SimpleActivatedAbility(new CreateTokenEffect(new SaprolingToken(),SacrificeCostCreaturesToughness.instance),new ManaCostsImpl<>("{2}{B}{G}"));
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(1,1,filter, true)));
this.addAbility(ability);

View file

@ -27,7 +27,7 @@ public final class KorozdaMonitor extends CardImpl {
// Trample
this.addAbility(TrampleAbility.getInstance());
// Scavenge {5}{G}{G} ({5}{G}{G}, Exile this card from your graveyard: Put a number of +1/+1 counters equal to this card's power on target creature. Scavenge only as a sorcery.)
this.addAbility(new ScavengeAbility(new ManaCostsImpl("{5}{G}{G}")));
this.addAbility(new ScavengeAbility(new ManaCostsImpl<>("{5}{G}{G}")));
}
private KorozdaMonitor(final KorozdaMonitor card) {

View file

@ -41,7 +41,7 @@ public final class KoskunFalls extends CardImpl {
this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, effect, TargetController.YOU, false));
// Creatures can't attack you unless their controller pays {2} for each creature they control that's attacking you.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantAttackYouUnlessPayManaAllEffect(new ManaCostsImpl("{2}"))));
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantAttackYouUnlessPayManaAllEffect(new ManaCostsImpl<>("{2}"))));
}
private KoskunFalls(final KoskunFalls card) {

View file

@ -29,7 +29,7 @@ public final class KozileksPathfinder extends CardImpl {
// {C}: Target creature can't block Kozilek's Pathfinder this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedByTargetSourceEffect(Duration.EndOfTurn),
new ManaCostsImpl("{C}"));
new ManaCostsImpl<>("{C}"));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

View file

@ -36,7 +36,7 @@ public final class KozileksShrieker extends CardImpl {
// {C}: Kozilek's Shrieker gets +1/+0 and gains menace until end of turn.
Effect effect = new BoostSourceEffect(1, 0, Duration.EndOfTurn);
effect.setText("{this} gets +1/+0");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{C}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{C}"));
effect = new GainAbilitySourceEffect(new MenaceAbility(), Duration.EndOfTurn);
effect.setText("and gains menace until end of turn. " +
"<i>(It can't be blocked except by two or more creatures. {C} represents colorless mana.)</i>");

View file

@ -31,7 +31,7 @@ public final class Krakilin extends CardImpl {
this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
// {1}{G}: Regenerate Krakilin.
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 Krakilin(final Krakilin card) {

View file

@ -30,7 +30,7 @@ public final class KrallenhordeKiller extends CardImpl {
this.nightCard = true;
// {3}{G}: Krallenhorde Killer gets +4/+4 until end of turn. Activate this ability only once each turn.
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(4, 4, Duration.EndOfTurn), new ManaCostsImpl("{3}{G}")));
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(4, 4, Duration.EndOfTurn), new ManaCostsImpl<>("{3}{G}")));
// At the beginning of each upkeep, if a player cast two or more spells last turn, transform Krallenhorde Killer.
this.addAbility(new WerewolfBackTriggeredAbility());

View file

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

View file

@ -32,7 +32,7 @@ public final class KrarkClanEngineers extends CardImpl {
this.toughness = new MageInt(2);
// {R}, Sacrifice two artifacts: Destroy target artifact.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{R}"));
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(2, 2, new FilterControlledArtifactPermanent("two artifacts"), true)));
ability.addTarget(new TargetArtifactPermanent());
this.addAbility(ability);

View file

@ -32,7 +32,7 @@ public final class KrarkClanOgre extends CardImpl {
this.toughness = new MageInt(3);
// {R}, Sacrifice an artifact: 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 SacrificeTargetCost(new TargetControlledPermanent(1, 1, new FilterControlledArtifactPermanent("an artifact"), true)));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -42,7 +42,7 @@ public final class KrasisIncubation extends CardImpl {
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBlockAttackActivateAttachedEffect()));
// {1}{G}{U}, Return Krasis Incubation to its owner's hand: Put two +1/+1 counters on enchanted creature.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddPlusOneCountersAttachedEffect(2), new ManaCostsImpl("{1}{G}{U}"));
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddPlusOneCountersAttachedEffect(2), new ManaCostsImpl<>("{1}{G}{U}"));
ability.addCost(new ReturnToHandFromBattlefieldSourceCost());
this.addAbility(ability);

View file

@ -37,7 +37,7 @@ public final class KraulSwarm extends CardImpl {
Ability ability = new SimpleActivatedAbility(
Zone.GRAVEYARD,
new ReturnSourceFromGraveyardToHandEffect(),
new ManaCostsImpl("{2}{B}")
new ManaCostsImpl<>("{2}{B}")
);
ability.addCost(new DiscardTargetCost(
new TargetCardInHand(StaticFilters.FILTER_CARD_CREATURE_A)

View file

@ -31,7 +31,7 @@ public final class KraulWarrior extends CardImpl {
this.toughness = new MageInt(2);
// {5}{G}: Kraul Warrior gets +3/+3 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(3,3,Duration.EndOfTurn), new ManaCostsImpl("{5}{G}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(3,3,Duration.EndOfTurn), new ManaCostsImpl<>("{5}{G}")));
}

View file

@ -42,7 +42,7 @@ public final class KravTheUnredeemed extends CardImpl {
this.addAbility(new PartnerWithAbility("Regna, the Redeemer", true));
// {B}, Sacrifice X creatures: Target player draws X cards and gains X life. Put X +1/+1 counters on Krav, the Unredeemed.
Ability ability = new SimpleActivatedAbility(new KravTheUnredeemedEffect(), new ManaCostsImpl("{B}"));
Ability ability = new SimpleActivatedAbility(new KravTheUnredeemedEffect(), new ManaCostsImpl<>("{B}"));
ability.addTarget(new TargetPlayer());
ability.addCost(new SacrificeXTargetCost(StaticFilters.FILTER_CONTROLLED_CREATURE));
this.addAbility(ability);

View file

@ -30,7 +30,7 @@ public final class KrisMage extends CardImpl {
this.toughness = new MageInt(1);
// {R}, {tap}, Discard a card: Kris Mage deals 1 damage to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl("{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl<>("{R}"));
ability.addCost(new TapSourceCost());
ability.addCost(new DiscardCardCost());
ability.addTarget(new TargetAnyTarget());

View file

@ -33,7 +33,7 @@ public final class KrosanArcher extends CardImpl {
// Reach
this.addAbility(ReachAbility.getInstance());
// {G}, Discard a card: Krosan Archer gets +0/+2 until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0,2, Duration.EndOfTurn), new ManaCostsImpl("{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0,2, Duration.EndOfTurn), new ManaCostsImpl<>("{G}"));
ability.addCost(new DiscardCardCost());
this.addAbility(ability);
}

View file

@ -35,7 +35,7 @@ public final class KrosanAvenger extends CardImpl {
// Threshold - {1}{G}: Regenerate Krosan Avenger. Activate this ability only if seven or more cards are in your graveyard.
Ability thresholdAbility = new ConditionalActivatedAbility(Zone.BATTLEFIELD,
new RegenerateSourceEffect(),
new ManaCostsImpl("{1}{G}"),
new ManaCostsImpl<>("{1}{G}"),
new CardsInControllerGraveyardCondition(7));
thresholdAbility.setAbilityWord(AbilityWord.THRESHOLD);
this.addAbility(thresholdAbility);

View file

@ -28,10 +28,10 @@ public final class KrosanCloudscraper extends CardImpl {
this.toughness = new MageInt(13);
// At the beginning of your upkeep, sacrifice Krosan Cloudscraper unless you pay {G}{G}.
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{G}{G}")), TargetController.YOU, false));
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl<>("{G}{G}")), TargetController.YOU, false));
// Morph {7}{G}{G}
this.addAbility(new MorphAbility(new ManaCostsImpl("{7}{G}{G}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{7}{G}{G}")));
}
private KrosanCloudscraper(final KrosanCloudscraper card) {

View file

@ -23,7 +23,7 @@ public final class KrosanColossus extends CardImpl {
this.toughness = new MageInt(9);
// Morph {6}{G}{G}
this.addAbility(new MorphAbility(new ManaCostsImpl("{6}{G}{G}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{6}{G}{G}")));
}
private KrosanColossus(final KrosanColossus card) {

View file

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

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