Refactor: fix raw use of parameterized class ManaCostsImpl - 'W' cards (#9088)

This commit is contained in:
DeepCrimson 2022-06-12 09:58:06 -07:00 committed by GitHub
parent 6b160e3da2
commit 0f46da20e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
121 changed files with 140 additions and 140 deletions

View file

@ -32,7 +32,7 @@ public final class WakeOfVultures extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// {1}{B}, Sacrifice a creature: Regenerate Wake of Vultures.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{1}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{B}"));
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
this.addAbility(ability);
}

View file

@ -42,7 +42,7 @@ public final class WakerOfTheWilds extends CardImpl {
CounterType.P1P1.createInstance(0),
ManacostVariableValue.REGULAR
).setText("Put X +1/+1 counters on target land you control."),
new ManaCostsImpl("{X}{G}{G}")
new ManaCostsImpl<>("{X}{G}{G}")
);
Effect effect = new BecomesCreatureTargetEffect(new WallOfResurgenceToken(), false, true, Duration.Custom);
effect.setText("That land becomes a 0/0 Elemental creature with haste. It's still a land");

View file

@ -36,7 +36,7 @@ public final class WakerOfWaves extends CardImpl {
// {1}{U}, Discard Waker of Waves: Look at the top two cards of your library. Put one of them into your hand and the other into your graveyard.
Ability ability = new SimpleActivatedAbility(Zone.HAND,
new LookLibraryAndPickControllerEffect(2, 1, PutCards.HAND, PutCards.GRAVEYARD),
new ManaCostsImpl("{1}{U}"));
new ManaCostsImpl<>("{1}{U}"));
ability.addCost(new DiscardSourceCost());
this.addAbility(ability);
}

View file

@ -35,7 +35,7 @@ public final class WakerootElemental extends CardImpl {
// {G}{G}{G}{G}{G}: Untap target land you control. It becomes a 5/5 Elemental creature with haste. It's still a land.
Ability ability = new SimpleActivatedAbility(
new UntapTargetEffect(), new ManaCostsImpl("{G}{G}{G}{G}{G}")
new UntapTargetEffect(), new ManaCostsImpl<>("{G}{G}{G}{G}{G}")
);
ability.addEffect(new BecomesCreatureTargetEffect(
new WakerootElementalToken(), false, true, Duration.Custom

View file

@ -40,7 +40,7 @@ public final class WakestoneGargoyle extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// {1}{W}: Creatures you control with defender can attack this turn as though they didn't have defender.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CanAttackAsThoughItDidntHaveDefenderAllEffect(Duration.EndOfTurn, filter), new ManaCostsImpl("{1}{W}") ));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CanAttackAsThoughItDidntHaveDefenderAllEffect(Duration.EndOfTurn, filter), new ManaCostsImpl<>("{1}{W}") ));
}
private WakestoneGargoyle(final WakestoneGargoyle card) {

View file

@ -49,7 +49,7 @@ public final class WalkerOfSecretWays extends CardImpl {
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new WalkerOfSecretWaysEffect(), false, true));
// {1}{U}: Return target Ninja you control to its owner's hand. Activate this ability only during your turn.
Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl("{1}{U}"), MyTurnCondition.instance);
Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl<>("{1}{U}"), MyTurnCondition.instance);
ability.addTarget(new TargetControlledCreaturePermanent(1, 1, filterCreature, false));
ability.addHint(MyTurnHint.instance);
this.addAbility(ability);

View file

@ -42,7 +42,7 @@ public final class WalkingArchive extends CardImpl {
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new DrawCardTargetEffect(new CountersSourceCount(CounterType.P1P1)), TargetController.ANY, false));
// {2}{W}{U}: Put a +1/+1 counter on Walking Archive.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl("{2}{W}{U}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl<>("{2}{W}{U}")));
}
private WalkingArchive(final WalkingArchive card) {

View file

@ -25,7 +25,7 @@ public final class WalkingDead extends CardImpl {
this.toughness = new MageInt(1);
// {B}: Regenerate Walking Dead.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
}
private WalkingDead(final WalkingDead card) {

View file

@ -33,7 +33,7 @@ public final class WalkingDesecration extends CardImpl {
this.toughness = new MageInt(1);
// {B}, {tap}: Creatures of the creature type of your choice attack this turn if able.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WalkingDesecrationEffect(), new ManaCostsImpl("{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WalkingDesecrationEffect(), new ManaCostsImpl<>("{B}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

View file

@ -28,7 +28,7 @@ public final class WallOfBone extends CardImpl {
this.power = new MageInt(1);
this.toughness = new MageInt(4);
this.addAbility(DefenderAbility.getInstance());
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
}
private WallOfBone(final WallOfBone card) {

View file

@ -29,7 +29,7 @@ public final class WallOfBrambles extends CardImpl {
// Defender
this.addAbility(DefenderAbility.getInstance());
// {G}: Regenerate Wall of Brambles.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{G}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{G}")));
}
private WallOfBrambles(final WallOfBrambles card) {

View file

@ -34,10 +34,10 @@ public final class WallOfDeceit extends CardImpl {
this.addAbility(DefenderAbility.getInstance());
// {3}: Turn Wall of Deceit face down.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new WallOfDeceitEffect(), new ManaCostsImpl("{3}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new WallOfDeceitEffect(), new ManaCostsImpl<>("{3}")));
// Morph {U}
this.addAbility(new MorphAbility(new ManaCostsImpl("{U}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{U}")));
}
private WallOfDeceit(final WallOfDeceit card) {

View file

@ -33,7 +33,7 @@ public final class WallOfDistortion extends CardImpl {
this.addAbility(DefenderAbility.getInstance());
// {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

@ -29,7 +29,7 @@ public final class WallOfFaith extends CardImpl {
this.toughness = new MageInt(5);
this.addAbility(DefenderAbility.getInstance());
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 WallOfFaith(final WallOfFaith card) {

View file

@ -33,7 +33,7 @@ public final class WallOfKelp extends CardImpl {
this.addAbility(DefenderAbility.getInstance());
// {U}{U}, {tap}: Create a 0/1 blue Plant Wall creature token with defender named Kelp.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new KelpToken()), new ManaCostsImpl("{U}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new KelpToken()), new ManaCostsImpl<>("{U}{U}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

View file

@ -31,7 +31,7 @@ public final class WallOfLava extends CardImpl {
this.addAbility(DefenderAbility.getInstance());
// {R}: Wall of Lava 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 WallOfLava(final WallOfLava card) {

View file

@ -47,7 +47,7 @@ public final class WallOfLimbs extends CardImpl {
// {5}{B}{B}, Sacrifice Wall of Limbs: Target player loses X life, where X is Wall of Limbs's power.
Effect effect = new LoseLifeTargetEffect(new SourcePermanentPowerCount());
effect.setText("Target player loses X life, where X is {this}'s power.");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{5}{B}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{5}{B}{B}"));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(ability);

View file

@ -34,7 +34,7 @@ public final class WallOfOneThousandCuts extends CardImpl {
// {W}: Wall of One Thousand Cuts can attack this turn as though it didn't have defender.
this.addAbility(new SimpleActivatedAbility(
new CanAttackAsThoughItDidntHaveDefenderSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{W}")
new CanAttackAsThoughItDidntHaveDefenderSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{W}")
));
}

View file

@ -30,7 +30,7 @@ public final class WallOfPineNeedles extends CardImpl {
this.addAbility(DefenderAbility.getInstance());
// {G}: Regenerate Wall of Pine Needles.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{G}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{G}")));
}

View file

@ -30,7 +30,7 @@ public final class WallOfTanglecord extends CardImpl {
this.addAbility(DefenderAbility.getInstance());
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
new GainAbilitySourceEffect(ReachAbility.getInstance(), Duration.EndOfTurn),
new ManaCostsImpl("{G}")));
new ManaCostsImpl<>("{G}")));
}
public WallOfTanglecord (final WallOfTanglecord card) {

View file

@ -39,7 +39,7 @@ public final class WallOfVipers extends CardImpl {
this.addAbility(DefenderAbility.getInstance());
// {3}: Destroy Wall of Vipers and target creature it's blocking. Any player may activate this ability.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroySourceEffect(), new ManaCostsImpl("{3}"));
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroySourceEffect(), new ManaCostsImpl<>("{3}"));
ability.addEffect(new DestroyTargetEffect(" and target creature it's blocking"));
ability.addTarget(new TargetCreaturePermanent(new WallOfVipersFilter()));
ability.setMayActivate(TargetController.ANY);

View file

@ -31,7 +31,7 @@ public final class WallOfWater extends CardImpl {
// Defender
this.addAbility(DefenderAbility.getInstance());
// {U}: Wall of Water gets +1/+0 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{U}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{U}")));
}
private WallOfWater(final WallOfWater card) {

View file

@ -33,7 +33,7 @@ public final class WallOfWonder extends CardImpl {
this.addAbility(DefenderAbility.getInstance());
// {2}{U}{U}: Wall of Wonder gets +4/-4 until end of turn and can attack this turn as though it didn't have defender.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(4, -4, Duration.EndOfTurn),
new ManaCostsImpl("{2}{U}{U}"));
new ManaCostsImpl<>("{2}{U}{U}"));
ability.addEffect(new CanAttackAsThoughItDidntHaveDefenderSourceEffect(Duration.EndOfTurn, "and"));
this.addAbility(ability);
}

View file

@ -39,7 +39,7 @@ public final class WanderingFumarole extends CardImpl {
// "0: Switch this creature's power and toughness until end of turn." It's still a land.
Effect effect = new BecomesCreatureSourceEffect(new WanderingFumaroleToken(), "land", Duration.EndOfTurn);
effect.setText("{this} becomes a 1/4 blue and red Elemental creature with \"0: Switch this creature's power and toughness until end of turn.\" It's still a land");
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{2}{U}{R}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{2}{U}{R}")));
}
private WanderingFumarole(final WanderingFumarole card) {
@ -62,7 +62,7 @@ class WanderingFumaroleToken extends TokenImpl {
color.setBlue(true);
power = new MageInt(1);
toughness = new MageInt(4);
addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{0}")));
addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{0}")));
}
public WanderingFumaroleToken(final WanderingFumaroleToken token) {
super(token);

View file

@ -50,20 +50,20 @@ public final class WanderingMage extends CardImpl {
// {W}, Pay 1 life: Prevent the next 2 damage that would be dealt to target creature this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new PreventDamageToTargetEffect(Duration.EndOfTurn, 2), new ManaCostsImpl("{W}"));
new PreventDamageToTargetEffect(Duration.EndOfTurn, 2), new ManaCostsImpl<>("{W}"));
ability.addCost(new PayLifeCost(1));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
// {U}: Prevent the next 1 damage that would be dealt to target Cleric or Wizard creature this turn.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new PreventDamageToTargetEffect(Duration.EndOfTurn, 1), new ManaCostsImpl("{U}"));
new PreventDamageToTargetEffect(Duration.EndOfTurn, 1), new ManaCostsImpl<>("{U}"));
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);
// {B}, Put a -1/-1 counter on a creature you control: Prevent the next 2 damage that would be dealt to target player this turn.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new PreventDamageToTargetEffect(Duration.EndOfTurn, 2), new ManaCostsImpl("{B}"));
new PreventDamageToTargetEffect(Duration.EndOfTurn, 2), new ManaCostsImpl<>("{B}"));
ability.addCost(new WanderingMageCost());
ability.addTarget(new TargetPlayerOrPlaneswalker());
Target target = new TargetControlledCreaturePermanent();

View file

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

View file

@ -28,7 +28,7 @@ public final class WarCadence extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{R}");
// {X}{R}: This turn, creatures can't block unless their controller pays {X} for each blocking creature they control.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new WarCadenceReplacementEffect(), new ManaCostsImpl("{X}{R}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new WarCadenceReplacementEffect(), new ManaCostsImpl<>("{X}{R}")));
}
@ -62,7 +62,7 @@ class WarCadenceReplacementEffect extends ReplacementEffectImpl {
int amount = xCosts.calculate(game, source, this);
if (amount > 0) {
String mana = "{" + amount + '}';
ManaCostsImpl cost = new ManaCostsImpl(mana);
ManaCostsImpl cost = new ManaCostsImpl<>(mana);
if (cost.canPay(source, source, event.getPlayerId(), game)
&& player.chooseUse(Outcome.Benefit, "Pay " + mana + " to declare blocker?", source, game)) {
if (cost.payOrRollback(source, game, source, event.getPlayerId())) {

View file

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

View file

@ -33,7 +33,7 @@ public final class WarScreecher extends CardImpl {
// {5}{W}, {T}: Other creatures you control get +1/+1 until end of turn.
Ability ability = new SimpleActivatedAbility(new BoostControlledEffect(
1, 1, Duration.EndOfTurn, true
), new ManaCostsImpl("{5}{W}"));
), new ManaCostsImpl<>("{5}{W}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

View file

@ -30,7 +30,7 @@ public final class WarTax extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{U}");
// {X}{U}: This turn, creatures can't attack unless their controller pays {X} for each attacking creature they control.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new WarTaxCantAttackUnlessPaysEffect(), new ManaCostsImpl("{X}{U}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new WarTaxCantAttackUnlessPaysEffect(), new ManaCostsImpl<>("{X}{U}")));
}
private WarTax(final WarTax card) {

View file

@ -28,7 +28,7 @@ public final class WarbreakTrumpeter extends CardImpl {
this.toughness = new MageInt(1);
// Morph {X}{X}{R}
this.addAbility(new MorphAbility(new ManaCostsImpl("{X}{X}{R}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{X}{X}{R}")));
// When Warbreak Trumpeter is turned face up, create X 1/1 red Goblin creature tokens.
DynamicValue morphX = MorphManacostVariableValue.instance;

View file

@ -38,7 +38,7 @@ public final class WarcryPhoenix extends CardImpl {
// Whenever you attack with three or more creatures, you may pay {2}{R}. If you do, return Warcry Phoenix from your graveyard to the battlefield tapped and attacking.
this.addAbility(new AttacksWithCreaturesTriggeredAbility(Zone.GRAVEYARD,
new DoIfCostPaid(new ReturnToBattlefieldUnderOwnerControlSourceEffect(true, true, -1),
new ManaCostsImpl("{2}{R}"))
new ManaCostsImpl<>("{2}{R}"))
.setText("you may pay {2}{R}. If you do, return {this} from your graveyard to the battlefield tapped and attacking"),
3, StaticFilters.FILTER_PERMANENT_CREATURES));
}

View file

@ -41,7 +41,7 @@ public final class WardOfPiety extends CardImpl {
this.addAbility(ability);
// {1}{W}: The next 1 damage that would be dealt to enchanted creature this turn is dealt to any target instead.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WardOfPietyPreventDamageTargetEffect(), new ManaCostsImpl("{1}{W}"));
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WardOfPietyPreventDamageTargetEffect(), new ManaCostsImpl<>("{1}{W}"));
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
}

View file

@ -41,7 +41,7 @@ public final class WardenOfTheFirstTree extends CardImpl {
// {1}{W/B}: Warden of the First Tree becomes a Human Warrior with base power and toughness 3/3.
Ability ability = new SimpleActivatedAbility(new AddCardSubTypeSourceEffect(
Duration.Custom, SubType.HUMAN, SubType.WARRIOR
).setText("{this} becomes a Human Warrior"), new ManaCostsImpl("{1}{W/B}"));
).setText("{this} becomes a Human Warrior"), new ManaCostsImpl<>("{1}{W/B}"));
ability.addEffect(new SetPowerToughnessSourceEffect(
3, 3, Duration.Custom, SubLayer.SetPT_7b
).setText("with base power and toughness 3/3"));
@ -49,7 +49,7 @@ public final class WardenOfTheFirstTree extends CardImpl {
// {2}{W/B}{W/B}: If Warden of the First Tree is a Warrior, it becomes a Human Spirit Warrior with trample and lifelink.
this.addAbility(new SimpleActivatedAbility(
new WardenOfTheFirstTreeEffect(), new ManaCostsImpl("{2}{W/B}{W/B}")
new WardenOfTheFirstTreeEffect(), new ManaCostsImpl<>("{2}{W/B}{W/B}")
));
// {3}{W/B}{W/B}{W/B}: If Warden of the First Tree is a Spirit, put five +1/+1 counters on it.
@ -57,7 +57,7 @@ public final class WardenOfTheFirstTree extends CardImpl {
new ConditionalOneShotEffect(
new AddCountersSourceEffect(CounterType.P1P1.createInstance(5)),
condition, "If {this} is a Spirit, put five +1/+1 counters on it"
), new ManaCostsImpl("{3}{W/B}{W/B}{W/B}")
), new ManaCostsImpl<>("{3}{W/B}{W/B}{W/B}")
));
}

View file

@ -36,7 +36,7 @@ public final class WarmongerHellkite extends CardImpl {
this.addAbility(new SimpleStaticAbility(new AttacksIfAbleAllEffect(StaticFilters.FILTER_PERMANENT_ALL_CREATURES)));
// {1}{R}: Attacking creatures get +1/+0 until end of turn.
this.addAbility(new SimpleActivatedAbility(new BoostAllEffect(1, 0, Duration.EndOfTurn, StaticFilters.FILTER_ATTACKING_CREATURES, false), new ManaCostsImpl("{1}{R}")));
this.addAbility(new SimpleActivatedAbility(new BoostAllEffect(1, 0, Duration.EndOfTurn, StaticFilters.FILTER_ATTACKING_CREATURES, false), new ManaCostsImpl<>("{1}{R}")));
}

View file

@ -36,7 +36,7 @@ public final class WarpingWurm extends CardImpl {
this.addAbility(new BeginningOfUpkeepTriggeredAbility(
new DoUnlessControllerPaysEffect(
new PhaseOutSourceEffect(),
new ManaCostsImpl("{2}{G}{U}")
new ManaCostsImpl<>("{2}{G}{U}")
).setText("{this} phases out unless you pay {2}{G}{U}"),
TargetController.YOU, false
));

View file

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

View file

@ -26,7 +26,7 @@ public final class WatchfulAutomaton extends CardImpl {
this.toughness = new MageInt(2);
// {2}{U}: Scry 1.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ScryEffect(1), new ManaCostsImpl("{2}{U}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ScryEffect(1), new ManaCostsImpl<>("{2}{U}")));
}
private WatchfulAutomaton(final WatchfulAutomaton card) {

View file

@ -27,8 +27,8 @@ public final class WaterServant extends CardImpl {
this.power = new MageInt(3);
this.toughness = new MageInt(4);
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, -1, Duration.EndOfTurn), new ManaCostsImpl("{U}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(-1, 1, Duration.EndOfTurn), new ManaCostsImpl("{U}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, -1, Duration.EndOfTurn), new ManaCostsImpl<>("{U}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(-1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{U}")));
}
private WaterServant(final WaterServant card) {

View file

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

View file

@ -39,7 +39,7 @@ public final class WaveElemental extends CardImpl {
this.toughness = new MageInt(3);
// {U}, {tap}, Sacrifice Wave Elemental: Tap up to three target creatures without flying.
Ability ability = new SimpleActivatedAbility(new TapTargetEffect(), new ManaCostsImpl("{U}"));
Ability ability = new SimpleActivatedAbility(new TapTargetEffect(), new ManaCostsImpl<>("{U}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetPermanent(0, 4, filter, false));

View file

@ -30,7 +30,7 @@ public final class WaveOfTerror extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{B}");
// Cumulative upkeep {1}
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{1}")));
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{1}")));
// At the beginning of your draw step, destroy each creature with converted mana cost equal to the number of age counters on Wave of Terror. They can't be regenerated.
this.addAbility(new BeginningOfDrawTriggeredAbility(new WaveOfTerrorEffect(), TargetController.YOU, false));

View file

@ -29,7 +29,7 @@ public final class WaywardSoul extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// {U}: Put Wayward Soul on top of its owner's library.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutOnLibrarySourceEffect(true), new ManaCostsImpl("{U}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutOnLibrarySourceEffect(true), new ManaCostsImpl<>("{U}")));
}
private WaywardSoul(final WaywardSoul card) {

View file

@ -42,7 +42,7 @@ public final class WeaponSurge extends CardImpl {
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
// Overload {1}{R}
Ability ability = new OverloadAbility(this, new BoostAllEffect(1,0, Duration.EndOfTurn, filter, false), new ManaCostsImpl("{1}{R}"));
Ability ability = new OverloadAbility(this, new BoostAllEffect(1,0, Duration.EndOfTurn, filter, false), new ManaCostsImpl<>("{1}{R}"));
ability.addEffect(new GainAbilityAllEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn, filter, false));
this.addAbility(ability);
}

View file

@ -27,7 +27,7 @@ public final class WeaselbackRedcap extends CardImpl {
// {1}{R}: Weaselback Redcap gets +2/+0 until end of turn.
this.addAbility(new SimpleActivatedAbility(
new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl("{1}{R}")
new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{R}")
));
}

View file

@ -38,7 +38,7 @@ public final class WeatheredBodyguards extends CardImpl {
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new WeatheredBodyguardsEffect()));
// Morph {3}{W}
this.addAbility(new MorphAbility(new ManaCostsImpl("{3}{W}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{3}{W}")));
}

View file

@ -37,7 +37,7 @@ public final class WeatheredWayfarer extends CardImpl {
Ability ability = new ActivateIfConditionActivatedAbility(
Zone.BATTLEFIELD,
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(new FilterLandCard()), true, true),
new ManaCostsImpl("{W}"),
new ManaCostsImpl<>("{W}"),
new OpponentControlsMoreCondition(StaticFilters.FILTER_LANDS));
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -45,7 +45,7 @@ public final class WeaverOfLies extends CardImpl {
this.toughness = new MageInt(4);
// Morph {4}{U}
this.addAbility(new MorphAbility(new ManaCostsImpl("{4}{U}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{4}{U}")));
// When Weaver of Lies is turned face up, turn any number of target creatures with a morph ability other than Weaver of Lies face down.
Ability ability = new TurnedFaceUpSourceTriggeredAbility(new WeaverOfLiesEffect(), false, false);

View file

@ -24,7 +24,7 @@ public final class WeirdedVampire extends CardImpl {
this.toughness = new MageInt(3);
// Madness {2}{B}
this.addAbility(new MadnessAbility(new ManaCostsImpl("{2}{B}")));
this.addAbility(new MadnessAbility(new ManaCostsImpl<>("{2}{B}")));
}
private WeirdedVampire(final WeirdedVampire card) {

View file

@ -36,7 +36,7 @@ public final class WeirdingShaman extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(1);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new GoblinRogueToken(), 2), new ManaCostsImpl("{3}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new GoblinRogueToken(), 2), new ManaCostsImpl<>("{3}{B}"));
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter)));
this.addAbility(ability);
}

View file

@ -28,7 +28,7 @@ public final class WelcomeToTheFold extends CardImpl {
// Madness {X}{U}{U} <i>(If you discard this card
// discard it into exile. When you do
// cast it for its madness cost or put it into your graveyard.
Ability ability = new MadnessAbility(new ManaCostsImpl("{X}{U}{U}"));
Ability ability = new MadnessAbility(new ManaCostsImpl<>("{X}{U}{U}"));
ability.setRuleAtTheTop(true);
this.addAbility(ability);

View file

@ -27,7 +27,7 @@ public final class WelderAutomaton extends CardImpl {
this.toughness = new MageInt(1);
// {3}{R}: Welder Automaton deals 1 damage to each opponent.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamagePlayersEffect(1, TargetController.OPPONENT), new ManaCostsImpl("{3}{R}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamagePlayersEffect(1, TargetController.OPPONENT), new ManaCostsImpl<>("{3}{R}")));
}
private WelderAutomaton(final WelderAutomaton card) {

View file

@ -39,7 +39,7 @@ public final class WellgabberApothecary extends CardImpl {
this.toughness = new MageInt(3);
// {1}{W} : Prevent all damage that would be dealt to target tapped Merfolk or Kithkin creatuer this turn
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventDamageToTargetEffect(Duration.EndOfTurn, Integer.MAX_VALUE), new ManaCostsImpl("{1}{W}"));
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventDamageToTargetEffect(Duration.EndOfTurn, Integer.MAX_VALUE), new ManaCostsImpl<>("{1}{W}"));
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);

View file

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

View file

@ -22,7 +22,7 @@ public final class WheelOfFate extends CardImpl {
this.color.setRed(true);
// Suspend 4-{1}{R}
this.addAbility(new SuspendAbility(4, new ManaCostsImpl("{1}{R}"), this));
this.addAbility(new SuspendAbility(4, new ManaCostsImpl<>("{1}{R}"), this));
// Each player discards their hand, then draws seven cards.
this.getSpellAbility().addEffect(new DiscardHandAllEffect());
this.getSpellAbility().addEffect(new DrawCardAllEffect(7).setText(", then draws seven cards"));

View file

@ -26,12 +26,12 @@ public final class Whetwheel extends CardImpl {
// {X}{X}, {tap}: Target player puts the top X cards of their library into their graveyard.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutLibraryIntoGraveTargetEffect(
ManacostVariableValue.REGULAR), new ManaCostsImpl("{X}{X}"));
ManacostVariableValue.REGULAR), new ManaCostsImpl<>("{X}{X}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(ability);
// Morph {3}
this.addAbility(new MorphAbility(new ManaCostsImpl("{3}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{3}")));
}
private Whetwheel(final Whetwheel card) {

View file

@ -50,7 +50,7 @@ public final class WhipOfErebos extends CardImpl {
// If it would leave the battlefield, exile it instead of putting it anywhere else.
// Activate this ability only any time you could cast a sorcery.
Ability ability = new ActivateAsSorceryActivatedAbility(
Zone.BATTLEFIELD, new WhipOfErebosEffect(), new ManaCostsImpl("{2}{B}{B}")
Zone.BATTLEFIELD, new WhipOfErebosEffect(), new ManaCostsImpl<>("{2}{B}{B}")
);
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD));

View file

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

View file

@ -26,7 +26,7 @@ public final class WhipSpineDrake extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// Morph {2}{W}
this.addAbility(new MorphAbility(new ManaCostsImpl("{2}{W}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{2}{W}")));
}
private WhipSpineDrake(final WhipSpineDrake card) {

View file

@ -32,12 +32,12 @@ public final class Whipcorder extends CardImpl {
this.toughness = new MageInt(2);
// {W}, {tap}: Tap target creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{W}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl<>("{W}"));
ability.addTarget(new TargetCreaturePermanent());
ability.addCost(new TapSourceCost());
this.addAbility(ability);
// Morph {W}
this.addAbility(new MorphAbility(new ManaCostsImpl("{W}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{W}")));
}
private Whipcorder(final Whipcorder card) {

View file

@ -40,7 +40,7 @@ public final class WhipgrassEntangler extends CardImpl {
Ability abilityToGain = new SimpleStaticAbility(Zone.BATTLEFIELD, new WhipgrassEntanglerCantAttackUnlessYouPayEffect());
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new GainAbilityTargetEffect(abilityToGain, Duration.EndOfTurn).setText("Until end of turn, target creature gains \"This creature can't attack or block unless its controller pays {1} for each Cleric on the battlefield.\""),
new ManaCostsImpl("{1}{W}"));
new ManaCostsImpl<>("{1}{W}"));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
@ -65,7 +65,7 @@ class WhipgrassEntanglerCantAttackUnlessYouPayEffect extends CantAttackBlockUnle
}
WhipgrassEntanglerCantAttackUnlessYouPayEffect() {
super(new ManaCostsImpl("{0}"), RestrictType.ATTACK_AND_BLOCK);
super(new ManaCostsImpl<>("{0}"), RestrictType.ATTACK_AND_BLOCK);
staticText = "This creature can't attack or block unless its controller pays {1} for each Cleric on the battlefield";
}

View file

@ -28,7 +28,7 @@ public final class WhiplashTrap extends CardImpl {
this.subtype.add(SubType.TRAP);
// If an opponent had two or more creatures enter the battlefield under their control this turn, you may pay {U} rather than pay Whiplash Trap's mana cost.
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl("{U}"), WhiplashTrapCondition.instance), new PermanentsEnteredBattlefieldWatcher());
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl<>("{U}"), WhiplashTrapCondition.instance), new PermanentsEnteredBattlefieldWatcher());
// Return two target creatures to their owners' hands.
this.getSpellAbility().addEffect(new ReturnToHandTargetEffect().setText("return two target creatures to their owners' hands"));

View file

@ -25,7 +25,7 @@ public final class WhipstitchedZombie extends CardImpl {
this.toughness = new MageInt(2);
// At the beginning of your upkeep, sacrifice Whipstitched Zombie unless you pay {B}.
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{B}")), TargetController.YOU, false));
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl<>("{B}")), TargetController.YOU, false));
}
private WhipstitchedZombie(final WhipstitchedZombie card) {

View file

@ -27,7 +27,7 @@ public final class WhiptongueFrog extends CardImpl {
this.toughness = new MageInt(3);
// {U}: Whiptongue Frog gains flying until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{U}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{U}")));
}
private WhiptongueFrog(final WhiptongueFrog card) {

View file

@ -30,7 +30,7 @@ public final class WhirlingCatapult extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{4}");
// {2}, Exile the top two cards of your library: Whirling Catapult deals 1 damage to each creature with flying and each player.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageEverythingEffect(1, filter), new ManaCostsImpl("{2}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageEverythingEffect(1, filter), new ManaCostsImpl<>("{2}"));
ability.addCost(new ExileFromTopOfLibraryCost(2));
this.addAbility(ability);
}

View file

@ -40,7 +40,7 @@ public final class WhirlpoolWarrior extends CardImpl {
this.addAbility(new EntersBattlefieldTriggeredAbility(new ShuffleHandIntoLibraryDrawThatManySourceEffect()));
// {R}, Sacrifice Whirlpool Warrior: Each player shuffles the cards from their hand into their library, then draws that many cards.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WhirlpoolWarriorActivatedEffect(), new ManaCostsImpl("{R}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WhirlpoolWarriorActivatedEffect(), new ManaCostsImpl<>("{R}"));
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);
}

View file

@ -36,7 +36,7 @@ public final class WhisperSquad extends CardImpl {
// {1}{B}: Search your library for a card named Whisper Squad, put it onto the battlefield tapped, then shuffle your library.
this.addAbility(new SimpleActivatedAbility(new SearchLibraryPutInPlayEffect(
new TargetCardInLibrary(filter), true, true
), new ManaCostsImpl("{1}{B}")));
), new ManaCostsImpl<>("{1}{B}")));
}
private WhisperSquad(final WhisperSquad card) {

View file

@ -30,7 +30,7 @@ public final class WhisperingShade extends CardImpl {
// Swampwalk
this.addAbility(new SwampwalkAbility());
// {B}: Whispering Shade gets +1/+1 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1,1,Duration.EndOfTurn), new ManaCostsImpl("{B}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1,1,Duration.EndOfTurn), new ManaCostsImpl<>("{B}")));
}
private WhisperingShade(final WhisperingShade card) {

View file

@ -35,10 +35,10 @@ public final class WhiteShieldCrusader extends CardImpl {
this.addAbility(ProtectionAbility.from(ObjectColor.BLACK));
// {W}: White Shield Crusader gains flying until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{W}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{W}")));
// {W}{W}: White Shield Crusader gets +1/+0 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1,0, Duration.EndOfTurn), new ManaCostsImpl("{W}{W}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1,0, Duration.EndOfTurn), new ManaCostsImpl<>("{W}{W}")));
}
private WhiteShieldCrusader(final WhiteShieldCrusader card) {

View file

@ -33,7 +33,7 @@ public final class WildAesthir extends CardImpl {
this.addAbility(FirstStrikeAbility.getInstance());
// {W}{W}: Wild Aesthir gets +2/+0 until end of turn. Activate this ability only once each turn.
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD,
new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl("{W}{W}")));
new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{W}{W}")));
}
private WildAesthir(final WildAesthir card) {

View file

@ -38,7 +38,7 @@ public final class WildDogs extends CardImpl {
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new WildDogsEffect(), TargetController.YOU, false));
// Cycling {2}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
}
private WildDogs(final WildDogs card) {

View file

@ -29,7 +29,7 @@ public final class WildHunger extends CardImpl {
this.getSpellAbility().addEffect(new BoostTargetEffect(3, 1, Duration.EndOfTurn));
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(TrampleAbility.getInstance(), Duration.EndOfTurn));
// Flashback {3}{R}
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{3}{R}")));
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{3}{R}")));
}
private WildHunger(final WildHunger card) {

View file

@ -23,7 +23,7 @@ public final class WildMight extends CardImpl {
// Target creature gets +1/+1 until end of turn. That creature gets an additional +4/+4 until end of turn unless any player pays {2}.
this.getSpellAbility().addEffect(new BoostTargetEffect(1, 1, Duration.EndOfTurn));
Effect effect = new DoUnlessAnyPlayerPaysEffect(new BoostTargetEffect(4, 4, Duration.EndOfTurn), new ManaCostsImpl("{2}"));
Effect effect = new DoUnlessAnyPlayerPaysEffect(new BoostTargetEffect(4, 4, Duration.EndOfTurn), new ManaCostsImpl<>("{2}"));
effect.setText("That creature gets an additional +4/+4 until end of turn unless any player pays {2}");
this.getSpellAbility().addEffect(effect);
this.getSpellAbility().addTarget(new TargetCreaturePermanent());

View file

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

View file

@ -31,7 +31,7 @@ public final class WildfireEmissary extends CardImpl {
this.addAbility(ProtectionAbility.from(ObjectColor.WHITE));
// {1}{R}: Wildfire Emissary gets +1/+0 until end of turn.
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}")));
}
private WildfireEmissary(final WildfireEmissary card) {

View file

@ -30,7 +30,7 @@ public final class WildheartInvoker extends CardImpl {
SimpleActivatedAbility ability = new SimpleActivatedAbility(new BoostTargetEffect(
5, 5, Duration.EndOfTurn
).setText("target creature gets +5/+5"), new ManaCostsImpl("{8}"));
).setText("target creature gets +5/+5"), new ManaCostsImpl<>("{8}"));
ability.addEffect(new GainAbilityTargetEffect(
TrampleAbility.getInstance(), Duration.EndOfTurn
).setText("and gains trample until end of turn"));

View file

@ -29,7 +29,7 @@ public final class WillOTheWisp extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// {B}: Regenerate Will-o'-the-Wisp.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
}
private WillOTheWisp(final WillOTheWisp card) {

View file

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

View file

@ -37,7 +37,7 @@ public final class Willbender extends CardImpl {
this.toughness = new MageInt(2);
// Morph {1}{U}
this.addAbility(new MorphAbility(new ManaCostsImpl("{1}{U}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{1}{U}")));
// When Willbender is turned face up, change the target of target spell or ability with a single target.
Ability ability = new TurnedFaceUpSourceTriggeredAbility(new ChooseNewTargetsTargetEffect(true, true));
ability.addTarget(new TargetStackObject(FILTER));

View file

@ -51,7 +51,7 @@ public final class WillowPriestess extends CardImpl {
// {2}{G}: Target green creature gains protection from black until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new GainAbilityTargetEffect(ProtectionAbility.from(ObjectColor.BLACK), Duration.EndOfTurn), new ManaCostsImpl("{2}{G}"));
new GainAbilityTargetEffect(ProtectionAbility.from(ObjectColor.BLACK), Duration.EndOfTurn), new ManaCostsImpl<>("{2}{G}"));
Target target = new TargetPermanent(greenCreature);
ability.addTarget(target);
this.addAbility(ability);

View file

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

View file

@ -29,7 +29,7 @@ public final class WindbornMuse extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// 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}"))));
}

View file

@ -38,7 +38,7 @@ public final class WindbriskHeights extends CardImpl {
new HideawayPlayEffect(), WindbriskHeightsAttackersCondition.instance,
"you may play the exiled card without paying its mana cost " +
"if you attacked with three or more creatures this turn"
), new ManaCostsImpl("{W}"));
), new ManaCostsImpl<>("{W}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability, new PlayerAttackedWatcher());
}

View file

@ -33,7 +33,7 @@ public final class WindcallerAven extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// Cycling {U}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{U}")));
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{U}")));
// When you cycle Windcaller Aven, target creature gains flying until end of turn.
Ability ability = new CycleTriggeredAbility(

View file

@ -34,13 +34,13 @@ public final class Windreaver extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// {W}: Windreaver gains vigilance until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(VigilanceAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{W}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(VigilanceAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{W}")));
// {W}: Windreaver 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}")));
// {U}: Switch Windreaver's power and toughness until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{U}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{U}")));
// {U}: Return Windreaver to its owner's hand.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{U}")));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl<>("{U}")));
}
private Windreaver(final Windreaver card) {

View file

@ -37,7 +37,7 @@ public final class WindsOfAbandon extends CardImpl {
// Overload {4}{W}{W}
this.addAbility(new OverloadAbility(
this, new WindsOfAbandonOverloadEffect(), new ManaCostsImpl("{4}{W}{W}")
this, new WindsOfAbandonOverloadEffect(), new ManaCostsImpl<>("{4}{W}{W}")
));
}

View file

@ -34,7 +34,7 @@ public final class WingbeatWarrior extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// Morph {2}{W}
this.addAbility(new MorphAbility(new ManaCostsImpl("{2}{W}")));
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{2}{W}")));
// When Wingbeat Warrior is turned face up, target creature gains first strike until end of turn.
Ability ability = new TurnedFaceUpSourceTriggeredAbility(new GainAbilityTargetEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn));
ability.addTarget(new TargetCreaturePermanent());

View file

@ -32,7 +32,7 @@ public final class WingedShepherd extends CardImpl {
this.addAbility(VigilanceAbility.getInstance());
// Cycling {W}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{W}")));
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{W}")));
}

View file

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

View file

@ -23,7 +23,7 @@ public final class WipeClean extends CardImpl {
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
this.getSpellAbility().addEffect(new ExileTargetEffect());
// Cycling {3}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{3}")));
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{3}")));
}
private WipeClean(final WipeClean card) {

View file

@ -25,7 +25,7 @@ public final class WirewoodGuardian extends CardImpl {
this.toughness = new MageInt(6);
// Forestcycling {2}
this.addAbility(new ForestcyclingAbility(new ManaCostsImpl("{2}")));
this.addAbility(new ForestcyclingAbility(new ManaCostsImpl<>("{2}")));
}
private WirewoodGuardian(final WirewoodGuardian card) {

View file

@ -35,7 +35,7 @@ public final class WirewoodLodge extends CardImpl {
this.addAbility(new ColorlessManaAbility());
// {G}, {T}: Untap target Elf.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new ManaCostsImpl("{G}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new ManaCostsImpl<>("{G}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);

View file

@ -31,7 +31,7 @@ public final class WishfulMerfolk extends CardImpl {
this.addAbility(DefenderAbility.getInstance());
// {1}{U}: Wishful Merfolk loses defender and becomes a Human until end of turn.
this.addAbility(new SimpleActivatedAbility(new WishfulMerfolkEffect(), new ManaCostsImpl("{1}{U}")));
this.addAbility(new SimpleActivatedAbility(new WishfulMerfolkEffect(), new ManaCostsImpl<>("{1}{U}")));
}
private WishfulMerfolk(final WishfulMerfolk card) {

View file

@ -45,7 +45,7 @@ public final class Wishmonger extends CardImpl {
this.toughness = new MageInt(3);
// {2}: Target creature gains protection from the color of its controller's choice until end of turn. Any player may activate this ability.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WishmongerEffect(), new ManaCostsImpl("{2}"));
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WishmongerEffect(), new ManaCostsImpl<>("{2}"));
ability.addTarget(new TargetCreaturePermanent());
ability.setMayActivate(TargetController.ANY);
ability.addEffect(new InfoEffect("Any player may activate this ability"));

View file

@ -37,7 +37,7 @@ public final class WitchHunter extends CardImpl {
this.addAbility(damageAbility);
// {1}{W}{W}, {tap}: Return target creature an opponent controls to its owner's hand.
Ability returnAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl("{1}{W}{W}"));
Ability returnAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl<>("{1}{W}{W}"));
returnAbility.addCost(new TapSourceCost());
TargetCreaturePermanent target = new TargetCreaturePermanent(StaticFilters.FILTER_OPPONENTS_PERMANENT_CREATURE);
returnAbility.addTarget(target);

View file

@ -28,7 +28,7 @@ public final class WitchingWell extends CardImpl {
this.addAbility(new EntersBattlefieldTriggeredAbility(new ScryEffect(2)));
// {3}{U}, Sacrifice Witching Well: Draw two cards.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(2), new ManaCostsImpl("{3}{U}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(2), new ManaCostsImpl<>("{3}{U}"));
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);
}

View file

@ -24,7 +24,7 @@ public final class WitchsCauldron extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{B}");
// {1}{B}, {T}, Sacrifice a creature: You gain 1 life and draw a card.
Ability ability = new SimpleActivatedAbility(new GainLifeEffect(1), new ManaCostsImpl("{1}{B}"));
Ability ability = new SimpleActivatedAbility(new GainLifeEffect(1), new ManaCostsImpl<>("{1}{B}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(StaticFilters.FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
ability.addEffect(new DrawCardSourceControllerEffect(1).concatBy("and"));

View file

@ -32,7 +32,7 @@ public final class WitchsMist extends CardImpl {
// {2}{B}, {T}: Destroy target creature that was dealt damage this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(),new ManaCostsImpl("{2}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(),new ManaCostsImpl<>("{2}{B}"));
ability.addTarget(new TargetCreaturePermanent(filter));
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -66,7 +66,7 @@ class WitheringWispsActivatedAbility extends ActivatedAbilityImpl {
}
public WitheringWispsActivatedAbility() {
super(Zone.BATTLEFIELD, new DamageEverythingEffect(1), new ManaCostsImpl("{B}"));
super(Zone.BATTLEFIELD, new DamageEverythingEffect(1), new ManaCostsImpl<>("{B}"));
}

View file

@ -26,7 +26,7 @@ public final class WithoutWeakness extends CardImpl {
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
// Cycling {2}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
}

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