refactor: SimpleActivatedAbility default zone (cards W)

This commit is contained in:
xenohedron 2024-11-16 22:31:09 -05:00
parent 374c2c65d1
commit 299e785dd7
104 changed files with 116 additions and 116 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(new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{B}"));
ability.addCost(new SacrificeTargetCost(StaticFilters.FILTER_PERMANENT_CREATURE));
this.addAbility(ability);
}

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(new CanAttackAsThoughItDidntHaveDefenderAllEffect(Duration.EndOfTurn, filter), new ManaCostsImpl<>("{1}{W}") ));
}
private WakestoneGargoyle(final WakestoneGargoyle card) {

View file

@ -42,7 +42,7 @@ public final class WalkingArchive extends CardImpl {
this.addAbility(new BeginningOfUpkeepTriggeredAbility(TargetController.EACH_PLAYER, new DrawCardTargetEffect(new CountersSourceCount(CounterType.P1P1)), 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(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl<>("{2}{W}{U}")));
}
private WalkingArchive(final WalkingArchive card) {

View file

@ -36,10 +36,10 @@ public final class WalkingBallista extends CardImpl {
this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
// {4}: Put a +1/+1 counter on Walking Ballista.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance(1)), new GenericManaCost(4)));
this.addAbility(new SimpleActivatedAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance(1)), new GenericManaCost(4)));
// Remove a +1/+1 counter from Walking Ballista: It deals 1 damage to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1, "It"), new RemoveCountersSourceCost(CounterType.P1P1.createInstance(1)));
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(1, "It"), new RemoveCountersSourceCost(CounterType.P1P1.createInstance(1)));
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
}

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(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(new WalkingDesecrationEffect(), new ManaCostsImpl<>("{B}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

View file

@ -40,7 +40,7 @@ public final class WalkingSponge extends CardImpl {
this.toughness = new MageInt(1);
// {T}: Target creature loses your choice of flying, first strike, or trample until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WalkingSpongeEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new WalkingSpongeEffect(), new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

View file

@ -27,7 +27,7 @@ public final class WallOfBlood extends CardImpl {
this.power = new MageInt(0);
this.toughness = new MageInt(2);
this.addAbility(DefenderAbility.getInstance());
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new PayLifeCost(1)));
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(1, 1, Duration.EndOfTurn), new PayLifeCost(1)));
// Pay 1 life: Wall of Blood gets +1/+1 until end of turn.
}

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(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(new RegenerateSourceEffect(), new ManaCostsImpl<>("{G}")));
}
private WallOfBrambles(final WallOfBrambles card) {

View file

@ -34,7 +34,7 @@ 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(new WallOfDeceitEffect(), new ManaCostsImpl<>("{3}")));
// Morph {U}
this.addAbility(new MorphAbility(this, new ManaCostsImpl<>("{U}")));

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(new BoostSourceEffect(0, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{W}")));
}
private WallOfFaith(final WallOfFaith card) {

View file

@ -24,7 +24,7 @@ public final class WallOfFire extends CardImpl {
this.power = new MageInt(0);
this.toughness = new MageInt(5);
this.addAbility(DefenderAbility.getInstance());
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.R)));
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.R)));
}
private WallOfFire(final WallOfFire 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(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(new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{R}")));
}
private WallOfLava(final WallOfLava card) {

View file

@ -46,7 +46,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(SourcePermanentPowerValue.NOT_NEGATIVE);
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(effect, new ManaCostsImpl<>("{5}{B}{B}"));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(ability);

View file

@ -41,7 +41,7 @@ public final class WallOfMulch extends CardImpl {
// Defender
this.addAbility(DefenderAbility.getInstance());
// {G}, Sacrifice a Wall: Draw a card.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{G}"));
Ability ability = new SimpleActivatedAbility(new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{G}"));
ability.addCost(new SacrificeTargetCost(filter));
this.addAbility(ability);

View file

@ -31,7 +31,7 @@ public final class WallOfOpposition extends CardImpl {
this.addAbility(DefenderAbility.getInstance());
// {1}: Wall of Opposition gets +1/+0 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new GenericManaCost(1)));
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(1, 0, Duration.EndOfTurn), new GenericManaCost(1)));
}
private WallOfOpposition(final WallOfOpposition card) {

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(new RegenerateSourceEffect(), new ManaCostsImpl<>("{G}")));
}

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(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(new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{U}")));
}
private WallOfWater(final WallOfWater card) {

View file

@ -32,7 +32,7 @@ public final class WallOfWonder extends CardImpl {
// Defender
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),
Ability ability = new SimpleActivatedAbility(new BoostSourceEffect(4, -4, Duration.EndOfTurn),
new ManaCostsImpl<>("{2}{U}{U}"));
ability.addEffect(new CanAttackAsThoughItDidntHaveDefenderSourceEffect(Duration.EndOfTurn, "and"));
this.addAbility(ability);

View file

@ -28,7 +28,7 @@ public final class WandOfDenial extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{2}");
// {tap}: Look at the top card of target player's library. If it's a nonland card, you may pay 2 life. If you do, put it into that player's graveyard.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WandOfDenialEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new WandOfDenialEffect(), new TapSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(ability);
}

View file

@ -34,12 +34,12 @@ public final class WandOfTheElements extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}");
// {T}, Sacrifice an Island: Create a 2/2 blue Elemental creature token with flying.
Ability firstAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new WandOfTheElementsFirstToken()), new TapSourceCost());
Ability firstAbility = new SimpleActivatedAbility(new CreateTokenEffect(new WandOfTheElementsFirstToken()), new TapSourceCost());
firstAbility.addCost(new SacrificeTargetCost(islandFilter));
this.addAbility(firstAbility);
// {T}, Sacrifice a Mountain: Create a 3/3 red Elemental creature token.
Ability secondAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new WandOfTheElementsSecondToken()), new TapSourceCost());
Ability secondAbility = new SimpleActivatedAbility(new CreateTokenEffect(new WandOfTheElementsSecondToken()), new TapSourceCost());
secondAbility.addCost(new SacrificeTargetCost(mountainFilter));
this.addAbility(secondAbility);

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(), CardType.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(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(new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{0}")));
}
private WanderingFumaroleToken(final WanderingFumaroleToken token) {
super(token);

View file

@ -32,7 +32,7 @@ public final class WarBarge extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{4}");
// {3}: Target creature gains islandwalk until end of turn. When War Barge leaves the battlefield this turn, destroy that creature. A creature destroyed this way can't be regenerated.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(new IslandwalkAbility(false), Duration.EndOfTurn), new GenericManaCost(3));
Ability ability = new SimpleActivatedAbility(new GainAbilityTargetEffect(new IslandwalkAbility(false), Duration.EndOfTurn), new GenericManaCost(3));
ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new WarBargeDelayedTriggeredAbility()));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

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(new WarCadenceReplacementEffect(), new ManaCostsImpl<>("{X}{R}")));
}

View file

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

View file

@ -25,7 +25,7 @@ public final class WarSpikeChangeling extends CardImpl {
this.power = new MageInt(3);
this.toughness = new MageInt(3);
this.addAbility(new ChangelingAbility());
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.R)));
this.addAbility(new SimpleActivatedAbility(new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.R)));
}
private WarSpikeChangeling(final WarSpikeChangeling card) {

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(new WarTaxCantAttackUnlessPaysEffect(), new ManaCostsImpl<>("{X}{U}")));
}
private WarTax(final WarTax card) {

View file

@ -32,7 +32,7 @@ public final class WarTorchGoblin extends CardImpl {
this.toughness = new MageInt(1);
// {R}, Sacrifice War-Torch Goblin: War-Torch Goblin deals 2 damage to target blocking creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2, "it"), new ColoredManaCost(ColoredManaSymbol.R));
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(2, "it"), new ColoredManaCost(ColoredManaSymbol.R));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetCreaturePermanent(new FilterBlockingCreature()));
this.addAbility(ability);

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(new WardOfPietyPreventDamageTargetEffect(), new ManaCostsImpl<>("{1}{W}"));
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
}

View file

@ -37,7 +37,7 @@ public final class Warmonger extends CardImpl {
this.toughness = new MageInt(3);
// {2}: Warmonger deals 1 damage to each creature without flying and each player. Any player may activate this ability.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageEverythingEffect(1, filter) , new GenericManaCost(2));
SimpleActivatedAbility ability = new SimpleActivatedAbility(new DamageEverythingEffect(1, filter) , new GenericManaCost(2));
ability.setMayActivate(TargetController.ANY);
ability.addEffect(new InfoEffect("Any player may activate this ability"));
this.addAbility(ability);

View file

@ -26,7 +26,7 @@ public final class Wasteland extends CardImpl {
// {tap}: Add {C}.
this.addAbility(new ColorlessManaAbility());
// {tap}, Sacrifice Wasteland: Destroy target nonbasic land.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetNonBasicLandPermanent());
this.addAbility(ability);

View file

@ -33,7 +33,7 @@ public final class WatchersOfTheDead extends CardImpl {
this.toughness = new MageInt(2);
// Exile Watchers of the Dead: Each opponent chooses 2 cards in their graveyard and exiles the rest.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new WatchersOfTheDeadEffect(), new ExileSourceCost()));
this.addAbility(new SimpleActivatedAbility(new WatchersOfTheDeadEffect(), new ExileSourceCost()));
}

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(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(new BoostSourceEffect(1, -1, Duration.EndOfTurn), new ManaCostsImpl<>("{U}")));
this.addAbility(new SimpleActivatedAbility(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(new BoostSourceEffect(1, -1, Duration.EndOfTurn), new ManaCostsImpl<>("{U}")));
}
private Watercourser(final Watercourser card) {

View file

@ -33,7 +33,7 @@ public final class WaterfrontBouncer extends CardImpl {
this.toughness = new MageInt(1);
// {U}, {tap}, Discard a card: Return target creature to its owner's hand.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ColoredManaCost(ColoredManaSymbol.U));
Ability ability = new SimpleActivatedAbility(new ReturnToHandTargetEffect(), new ColoredManaCost(ColoredManaSymbol.U));
ability.addCost(new TapSourceCost());
ability.addCost(new DiscardTargetCost(new TargetCardInHand()));
ability.addTarget(new TargetCreaturePermanent());

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(new PutOnLibrarySourceEffect(true), new ManaCostsImpl<>("{U}")));
}
private WaywardSoul(final WaywardSoul card) {

View file

@ -46,7 +46,7 @@ public final class WeightOfConscience extends CardImpl {
this.addAbility(new SimpleStaticAbility(new CantAttackAttachedEffect(AttachmentType.AURA)));
// Tap two untapped creatures you control that share a creature type: Exile enchanted creature.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileAttachedEffect(), new TapTargetCost(new WeightOfConscienceTarget())));
this.addAbility(new SimpleActivatedAbility(new ExileAttachedEffect(), new TapTargetCost(new WeightOfConscienceTarget())));
}
private WeightOfConscience(final WeightOfConscience 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(new CreateTokenEffect(new GoblinRogueToken(), 2), new ManaCostsImpl<>("{3}{B}"));
ability.addCost(new SacrificeTargetCost(filter));
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(new DamagePlayersEffect(1, TargetController.OPPONENT), new ManaCostsImpl<>("{3}{R}")));
}
private WelderAutomaton(final WelderAutomaton card) {

View file

@ -21,7 +21,7 @@ public final class WeldingJar extends CardImpl {
public WeldingJar (UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{0}");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new SacrificeSourceCost());
Ability ability = new SimpleActivatedAbility(new RegenerateTargetEffect(), new SacrificeSourceCost());
ability.addTarget(new TargetArtifactPermanent());
this.addAbility(ability);
}

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(new PreventDamageToTargetEffect(Duration.EndOfTurn, Integer.MAX_VALUE), new ManaCostsImpl<>("{1}{W}"));
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);

View file

@ -35,7 +35,7 @@ public final class Wellwisher extends CardImpl {
this.toughness = new MageInt(1);
// {T}: You gain 1 life for each Elf on the battlefield.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(new PermanentsOnBattlefieldCount(filter))
this.addAbility(new SimpleActivatedAbility(new GainLifeEffect(new PermanentsOnBattlefieldCount(filter))
.setText("you gain 1 life for each Elf on the battlefield"), new TapSourceCost())
.addHint(new ValueHint("Elves on the battlefield", new PermanentsOnBattlefieldCount(filter))));
}

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(new DestroyTargetEffect(), new ManaCostsImpl<>("{B}{B}"));
ability.addTarget(new TargetCreaturePermanent(filter));
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -37,14 +37,14 @@ public final class WestvaleAbbey extends CardImpl {
this.addAbility(new ColorlessManaAbility());
// {5}, {T}, Pay 1 life: Create a 1/1 white and black Human Cleric creature token.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new HumanClericToken()), new GenericManaCost(5));
Ability ability = new SimpleActivatedAbility(new CreateTokenEffect(new HumanClericToken()), new GenericManaCost(5));
ability.addCost(new TapSourceCost());
ability.addCost(new PayLifeCost(1));
this.addAbility(ability);
// {5}, {T}, Sacrifice five creatures: Transform Westvale Abbey and untap it.
this.addAbility(new TransformAbility());
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TransformSourceEffect(), new GenericManaCost(5));
ability = new SimpleActivatedAbility(new TransformSourceEffect(), new GenericManaCost(5));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeTargetCost(5, StaticFilters.FILTER_PERMANENT_CREATURES));
ability.addEffect(new UntapSourceEffect().setText("untap it").concatBy(", then"));

View file

@ -25,7 +25,7 @@ public final class Whetwheel extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{4}");
// {X}{X}, {tap}: Target player puts the top X cards of their library into their graveyard.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MillCardsTargetEffect(
Ability ability = new SimpleActivatedAbility(new MillCardsTargetEffect(
GetXValue.instance), new ManaCostsImpl<>("{X}{X}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPlayer());

View file

@ -41,7 +41,7 @@ public final class WhipSilk extends CardImpl {
// Enchanted creature has reach.
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(ReachAbility.getInstance(), AttachmentType.AURA)));
// {G}: Return Whip Silk to its owner's hand.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ColoredManaCost(ColoredManaSymbol.G)));
this.addAbility(new SimpleActivatedAbility(new ReturnToHandSourceEffect(true), new ColoredManaCost(ColoredManaSymbol.G)));
}
private WhipSilk(final WhipSilk card) {

View file

@ -32,7 +32,7 @@ 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(new TapTargetEffect(), new ManaCostsImpl<>("{W}"));
ability.addTarget(new TargetCreaturePermanent());
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -31,7 +31,7 @@ public final class Whipkeeper extends CardImpl {
this.toughness = new MageInt(1);
// {T}: Whipkeeper deals damage to target creature equal to the damage already dealt to it this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WhipkeeperEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new WhipkeeperEffect(), new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

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(new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{U}")));
}
private WhiptongueFrog(final WhiptongueFrog card) {

View file

@ -48,7 +48,7 @@ public final class WhirlerRogue extends CardImpl {
this.addAbility(new EntersBattlefieldTriggeredAbility(effect));
// Tap two untapped artifacts you control: Target creature can't be blocked this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(), new TapTargetCost(new TargetControlledPermanent(2, 2, filter, true)));
Ability ability = new SimpleActivatedAbility(new CantBeBlockedTargetEffect(), new TapTargetCost(new TargetControlledPermanent(2, 2, filter, true)));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

View file

@ -32,7 +32,7 @@ public final class WhirlerVirtuoso extends CardImpl {
this.addAbility(new EntersBattlefieldTriggeredAbility(new GetEnergyCountersControllerEffect(3)));
// Pay {E}{E}{E}: Create a 1/1 colorless Thopter artifact creature token with flying.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new ThopterColorlessToken()), new PayEnergyCost(3)));
this.addAbility(new SimpleActivatedAbility(new CreateTokenEffect(new ThopterColorlessToken()), new PayEnergyCost(3)));
}
private WhirlerVirtuoso(final WhirlerVirtuoso card) {

View file

@ -23,7 +23,7 @@ public final class Whirlermaker extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{3}");
// {4}, {T}: Create a 1/1 colorless Thopter artifact creature token with flying.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new ThopterColorlessToken()), new GenericManaCost(4));
Ability ability = new SimpleActivatedAbility(new CreateTokenEffect(new ThopterColorlessToken()), new GenericManaCost(4));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

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(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(new WhirlpoolWarriorActivatedEffect(), new ManaCostsImpl<>("{R}"));
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);
}

View file

@ -35,7 +35,7 @@ public final class WhisperBloodLiturgist extends CardImpl {
this.toughness = new MageInt(2);
// {T}, Sacrifice two creatures: Return target creature card from your graveyard to the battlefield.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnFromGraveyardToBattlefieldTargetEffect()
Ability ability = new SimpleActivatedAbility(new ReturnFromGraveyardToBattlefieldTargetEffect()
.setText("Return target creature card from your graveyard to the battlefield"),
new TapSourceCost());
ability.addCost(new SacrificeTargetCost(2, StaticFilters.FILTER_PERMANENT_CREATURES));

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(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(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(new BoostSourceEffect(1,0, Duration.EndOfTurn), new ManaCostsImpl<>("{W}{W}")));
}
private WhiteShieldCrusader(final WhiteShieldCrusader card) {

View file

@ -45,7 +45,7 @@ public final class WickTheWhorledMind extends CardImpl {
));
// {U}{B}{R}, Sacrifice a Snail: Wick deals damage equal to the sacrificed creature's power to each opponent. Then draw cards equal to the sacrificed creature's power.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamagePlayersEffect(SacrificeCostCreaturesPower.instance, TargetController.OPPONENT)
Ability ability = new SimpleActivatedAbility(new DamagePlayersEffect(SacrificeCostCreaturesPower.instance, TargetController.OPPONENT)
.setText("{this} deals damage equal to the sacrificed creature's power to each opponent"), new ManaCostsImpl<>("{U}{B}{R}")
);
ability.addEffect(new DrawCardSourceControllerEffect(SacrificeCostCreaturesPower.instance)

View file

@ -41,7 +41,7 @@ public final class WickedAkuba extends CardImpl {
this.toughness = new MageInt(2);
// {B}: Target player dealt damage by Wicked Akuba this turn loses 1 life.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeTargetEffect(1), new ColoredManaCost(ColoredManaSymbol.B));
Ability ability = new SimpleActivatedAbility(new LoseLifeTargetEffect(1), new ColoredManaCost(ColoredManaSymbol.B));
ability.addTarget(new TargetPlayer(1, 1, false, filter));
this.addAbility(ability);
}

View file

@ -37,7 +37,7 @@ public final class WickerboughElder extends CardImpl {
this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.M1M1.createInstance(1)), "with a -1/-1 counter on it"));
// {G}, Remove a -1/-1 counter from Wickerbough Elder: Destroy target artifact or enchantment.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ColoredManaCost(ColoredManaSymbol.G));
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new ColoredManaCost(ColoredManaSymbol.G));
ability.addCost(new RemoveCountersSourceCost(CounterType.M1M1.createInstance(1)));
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));
this.addAbility(ability);

View file

@ -29,7 +29,7 @@ public final class WildHolocron extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
// {T}: Put a charge counter on Wild Holocron.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.CHARGE.createInstance(1)), new TapSourceCost()));
this.addAbility(new SimpleActivatedAbility(new AddCountersSourceEffect(CounterType.CHARGE.createInstance(1)), new TapSourceCost()));
// {T}, Remove a charge counter from Wild Holocron: Add {R}, {G} or {W}.
Cost cost = new RemoveCountersSourceCost(CounterType.CHARGE.createInstance(1));

View file

@ -32,7 +32,7 @@ public final class WildMongrel extends CardImpl {
// Discard a card: Wild Mongrel gets +1/+1 and becomes the color of your choice until end of turn.
Effect effect = new BoostSourceEffect(1, 1, Duration.EndOfTurn);
effect.setText("{this} gets +1/+1");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new DiscardTargetCost(new TargetCardInHand()));
Ability ability = new SimpleActivatedAbility(effect, new DiscardTargetCost(new TargetCardInHand()));
effect = new BecomesColorSourceEffect(Duration.EndOfTurn);
effect.setText("and becomes the color of your choice until end of turn.");
ability.addEffect(effect);

View file

@ -39,7 +39,7 @@ public final class WildernessHypnotist extends CardImpl {
this.power = new MageInt(1);
this.toughness = new MageInt(3);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-2, 0, Duration.EndOfTurn), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new BoostTargetEffect(-2, 0, Duration.EndOfTurn), new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);
}

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(new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{R}")));
}
private WildfireEmissary(final WildfireEmissary card) {

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(new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
}
private WillOTheWisp(final WillOTheWisp card) {

View file

@ -42,7 +42,7 @@ public final class WillingTestSubject extends CardImpl {
this.addAbility(new WillingTestSubjectTriggeredAbility());
// 6: Roll a six-sided die.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RollDiceEffect(6), new GenericManaCost(6));
Ability ability = new SimpleActivatedAbility(new RollDiceEffect(6), new GenericManaCost(6));
this.addAbility(ability);
}

View file

@ -28,7 +28,7 @@ public final class WilyBandar extends CardImpl {
this.toughness = new MageInt(1);
// {2}{G}: Wily Bandar gains indestructible until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(IndestructibleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{2}{G}")));
this.addAbility(new SimpleActivatedAbility(new GainAbilitySourceEffect(IndestructibleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{2}{G}")));
}
private WilyBandar(final WilyBandar card) {

View file

@ -29,7 +29,7 @@ public final class WindDancer extends CardImpl {
this.power = new MageInt(1);
this.toughness = new MageInt(1);
this.addAbility(FlyingAbility.getInstance());
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

View file

@ -31,7 +31,7 @@ public final class WindingCanyons extends CardImpl {
// {2}, {tap}: Until end of turn, you may cast creature spells as though they had flash.
Effect effect = new AddContinuousEffectToGame(new CastAsThoughItHadFlashAllEffect(Duration.EndOfTurn, StaticFilters.FILTER_CARD_CREATURE));
effect.setText("you may cast creature spells this turn as though they had flash");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new GenericManaCost(2));
Ability ability = new SimpleActivatedAbility(effect, new GenericManaCost(2));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

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(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(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(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(new ReturnToHandSourceEffect(true), new ManaCostsImpl<>("{U}")));
}
private Windreaver(final Windreaver card) {

View file

@ -39,7 +39,7 @@ public final class WingedTempleOfOrazca extends CardImpl {
this.addAbility(new AnyColorManaAbility());
// {1}{G}{U}, {T}: Target creature you control gains flying and gets +X/+X until end of turn, where X is its power.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WingedTempleOfOrazcaEffect(), new ManaCostsImpl<>("{1}{G}{U}"));
Ability ability = new SimpleActivatedAbility(new WingedTempleOfOrazcaEffect(), new ManaCostsImpl<>("{1}{G}{U}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetControlledCreaturePermanent());
this.addAbility(ability);

View file

@ -30,7 +30,7 @@ public final class WintermoonMesa extends CardImpl {
// {tap}: Add {C}.
this.addAbility(new ColorlessManaAbility());
// {2}, {tap}, Sacrifice Wintermoon Mesa: Tap two target lands.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl<>("{2}"));
Ability ability = new SimpleActivatedAbility(new TapTargetEffect(), new ManaCostsImpl<>("{2}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetLandPermanent(2));

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(new UntapTargetEffect(), new ManaCostsImpl<>("{G}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);

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(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

@ -33,7 +33,7 @@ public final class WitchEngine extends CardImpl {
this.addAbility(new SwampwalkAbility());
// {T}: Add {B}{B}{B}{B}. Target opponent gains control of Witch Engine. (Activate this ability only any time you could cast an instant.)
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BasicManaEffect(Mana.BlackMana(4)), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new BasicManaEffect(Mana.BlackMana(4)), new TapSourceCost());
ability.addEffect(new TargetPlayerGainControlSourceEffect());
ability.addTarget(new TargetOpponent());
this.addAbility(ability);

View file

@ -32,12 +32,12 @@ public final class WitchHunter extends CardImpl {
this.toughness = new MageInt(1);
// {tap}: Witch Hunter deals 1 damage to target player.
Ability damageAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost());
Ability damageAbility = new SimpleActivatedAbility(new DamageTargetEffect(1), new TapSourceCost());
damageAbility.addTarget(new TargetPlayerOrPlaneswalker());
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(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

@ -30,7 +30,7 @@ public final class WitchesEye extends CardImpl {
this.subtype.add(SubType.EQUIPMENT);
// Equipped creature has "{1}, {T}: Scry 1."</i>
Ability gainedAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ScryEffect(1, false), new GenericManaCost(1));
Ability gainedAbility = new SimpleActivatedAbility(new ScryEffect(1, false), new GenericManaCost(1));
gainedAbility.addCost(new TapSourceCost());
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(gainedAbility, AttachmentType.EQUIPMENT, Duration.WhileOnBattlefield)));

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(new DrawCardSourceControllerEffect(2), new ManaCostsImpl<>("{3}{U}"));
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);
}

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(new DestroyTargetEffect(),new ManaCostsImpl<>("{2}{B}"));
ability.addTarget(new TargetCreaturePermanent(filter));
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -29,7 +29,7 @@ public final class WitheredWretch extends CardImpl {
this.toughness = new MageInt(2);
// {1}: Exile target card from a graveyard.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new GenericManaCost(1));
Ability ability = new SimpleActivatedAbility(new ExileTargetEffect(), new GenericManaCost(1));
ability.addTarget(new TargetCardInGraveyard());
this.addAbility(ability);
}

View file

@ -30,7 +30,7 @@ public final class WizardReplica extends CardImpl {
this.power = new MageInt(1);
this.toughness = new MageInt(3);
this.addAbility(FlyingAbility.getInstance());
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterUnlessPaysEffect(new GenericManaCost(2)), new ColoredManaCost(ColoredManaSymbol.U));
Ability ability = new SimpleActivatedAbility(new CounterUnlessPaysEffect(new GenericManaCost(2)), new ColoredManaCost(ColoredManaSymbol.U));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetSpell());
this.addAbility(ability);

View file

@ -34,7 +34,7 @@ public final class Woeleecher extends CardImpl {
this.toughness = new MageInt(5);
// {W}, {tap}: Remove a -1/-1 counter from target creature. If you do, you gain 2 life.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WoeleecherEffect(), new ManaCostsImpl<>("{W}"));
Ability ability = new SimpleActivatedAbility(new WoeleecherEffect(), new ManaCostsImpl<>("{W}"));
ability.addTarget(new TargetCreaturePermanent());
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -40,7 +40,7 @@ public final class WojekApothecary extends CardImpl {
this.toughness = new MageInt(1);
// Radiance - {T}: Prevent the next 1 damage that would be dealt to target creature and each other creature that shares a color with it this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WojekApothecaryEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new WojekApothecaryEffect(), new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
ability.setAbilityWord(AbilityWord.RADIANCE);
this.addAbility(ability);

View file

@ -33,7 +33,7 @@ public final class WojekEmbermage extends CardImpl {
this.toughness = new MageInt(2);
// Radiance - {tap}: Wojek Embermage deals 1 damage to target creature and each other creature that shares a color with it.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WojekEmbermageEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new WojekEmbermageEffect(), new TapSourceCost());
ability.setAbilityWord(AbilityWord.RADIANCE);
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -34,14 +34,14 @@ public final class WolfhuntersQuiver extends CardImpl {
this.subtype.add(SubType.EQUIPMENT);
// Equipped creature has "{T}: This creature deals 1 damage to any target"
Ability abilityToGain = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost());
Ability abilityToGain = new SimpleActivatedAbility(new DamageTargetEffect(1), new TapSourceCost());
abilityToGain.addTarget(new TargetAnyTarget());
Effect effect = new GainAbilityAttachedEffect(abilityToGain, AttachmentType.EQUIPMENT);
effect.setText("Equipped creature has \"{T}: This creature deals 1 damage to any target\"");
SimpleStaticAbility ability = new SimpleStaticAbility(effect);
// and "{T}: This creature deals 3 damage to target Werewolf creature."
abilityToGain = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(3), new TapSourceCost());
abilityToGain = new SimpleActivatedAbility(new DamageTargetEffect(3), new TapSourceCost());
abilityToGain.addTarget(new TargetCreaturePermanent(filter));
effect = new GainAbilityAttachedEffect(abilityToGain, AttachmentType.EQUIPMENT);
effect.setText("and \"{T}: This creature deals 3 damage to target Werewolf creature.\"");

View file

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

View file

@ -36,7 +36,7 @@ public final class WonderscapeSage extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// {T}, Return a land you control to its owner's hand: Draw a card. Then discard a card unless that land had a nonbasic land type.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WonderscapeSageEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new WonderscapeSageEffect(), new TapSourceCost());
ability.addCost(new WonderscapeSageReturnCost());
this.addAbility(ability);
}

View file

@ -32,7 +32,7 @@ public final class Woodripper extends CardImpl {
// Fading 3
this.addAbility(new FadingAbility(3, this));
// {1}, Remove a fade counter from Woodripper: Destroy target artifact.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{1}"));
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new ManaCostsImpl<>("{1}"));
ability.addCost(new RemoveCountersSourceCost(CounterType.FADE.createInstance()));
ability.addTarget(new TargetArtifactPermanent());
this.addAbility(ability);

View file

@ -32,7 +32,7 @@ public final class WoodweaversPuzzleknot extends CardImpl {
this.addAbility(ability);
// {2}{G}, Sacrifice Woodweaver's Puzzleknot: You gain 3 life and get {E}{E}{E}.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(3), new ManaCostsImpl<>("{2}{G}"));
ability = new SimpleActivatedAbility(new GainLifeEffect(3), new ManaCostsImpl<>("{2}{G}"));
ability.addCost(new SacrificeSourceCost());
ability.addEffect(effect);
this.addAbility(ability);

View file

@ -41,7 +41,7 @@ public final class WoodwraithCorrupter extends CardImpl {
// {1}{B}{G}, {T}: Target Forest becomes a 4/4 black and green Elemental Horror creature. It's still a land.
Effect effect = new BecomesCreatureTargetEffect(new WoodwraithCorrupterToken(), false, true, Duration.Custom);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{1}{B}{G}"));
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl<>("{1}{B}{G}"));
ability.addTarget(new TargetPermanent(filter));
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -28,7 +28,7 @@ public final class WoodwraithStrangler extends CardImpl {
this.toughness = new MageInt(2);
// Exile a creature card from your graveyard: Regenerate Woodwraith Strangler.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(),
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(),
new ExileFromGraveCost(new TargetCardInYourGraveyard(new FilterCreatureCard("a creature card from your graveyard")))));
}

View file

@ -28,7 +28,7 @@ public final class WordsOfWar extends CardImpl {
// {1}: The next time you would draw a card this turn, Words of War deals 2 damage to any target instead.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WordsOfWarEffect(), new GenericManaCost(1));
Ability ability = new SimpleActivatedAbility(new WordsOfWarEffect(), new GenericManaCost(1));
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
}

View file

@ -28,7 +28,7 @@ public final class WordsOfWaste extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{B}");
// {1}: The next time you would draw a card this turn, each opponent discards a card instead.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new WordsOfWasteEffect(), new ManaCostsImpl<>("{1}")));
this.addAbility(new SimpleActivatedAbility(new WordsOfWasteEffect(), new ManaCostsImpl<>("{1}")));
}
private WordsOfWaste(final WordsOfWaste card) {

View file

@ -28,7 +28,7 @@ public final class WordsOfWilding extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{G}");
// {1}: The next time you would draw a card this turn, create a 2/2 green Bear creature token instead.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new WordsOfWildingEffect(), new ManaCostsImpl<>("{1}")));
this.addAbility(new SimpleActivatedAbility(new WordsOfWildingEffect(), new ManaCostsImpl<>("{1}")));
}
private WordsOfWilding(final WordsOfWilding card) {

View file

@ -30,7 +30,7 @@ public final class WordsOfWind extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{U}");
// {1}: The next time you would draw a card this turn, each player returns a permanent they control to its owner's hand instead.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new WordsOfWindEffect(), new ManaCostsImpl<>("{1}")));
this.addAbility(new SimpleActivatedAbility(new WordsOfWindEffect(), new ManaCostsImpl<>("{1}")));
}
private WordsOfWind(final WordsOfWind card) {

View file

@ -26,7 +26,7 @@ public final class WordsOfWorship extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{W}");
// {1}: The next time you would draw a card this turn, you gain 5 life instead.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new WordsOfWorshipEffect(), new GenericManaCost(1));
Ability ability = new SimpleActivatedAbility(new WordsOfWorshipEffect(), new GenericManaCost(1));
this.addAbility(ability);
}

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