refactor: SimpleActivatedAbility default zone (cards L M)

This commit is contained in:
xenohedron 2024-11-16 22:28:52 -05:00
parent 1e4f68af05
commit c3e4b64ead
293 changed files with 325 additions and 326 deletions

View file

@ -30,7 +30,7 @@ public final class LadyCaleria extends CardImpl {
this.toughness = new MageInt(6);
// {T}: Lady Caleria deals 3 damage to target attacking or blocking creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(3), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(3), new TapSourceCost());
ability.addTarget(new TargetAttackingOrBlockingCreature());
this.addAbility(ability);
}

View file

@ -35,7 +35,7 @@ public final class LadyEvangela extends CardImpl {
// {W}{B}, {tap}: Prevent all combat damage that would be dealt by target creature this turn.
Effect effect = new PreventDamageByTargetEffect(Duration.EndOfTurn, true);
effect.setText("Prevent all combat damage that would be dealt by target creature this turn.");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{W}{B}"));
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl<>("{W}{B}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -55,7 +55,7 @@ public final class LairOfTheHydra extends CardImpl {
break;
}
}
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new LairOfTheHydraEffect(), manaCosts));
this.addAbility(new SimpleActivatedAbility(new LairOfTheHydraEffect(), manaCosts));
}
private LairOfTheHydra(final LairOfTheHydra card) {

View file

@ -34,7 +34,7 @@ public final class LancersEnKor extends CardImpl {
this.addAbility(TrampleAbility.getInstance());
// {0}: The next 1 damage that would be dealt to Lancers en-Kor this turn is dealt to target creature you control instead.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RedirectDamageFromSourceToTargetEffect(Duration.EndOfTurn, 1, RedirectionEffect.UsageType.ONE_USAGE_ABSOLUTE), new GenericManaCost(0));
Ability ability = new SimpleActivatedAbility(new RedirectDamageFromSourceToTargetEffect(Duration.EndOfTurn, 1, RedirectionEffect.UsageType.ONE_USAGE_ABSOLUTE), new GenericManaCost(0));
ability.addTarget(new TargetControlledCreaturePermanent());
this.addAbility(ability);
}

View file

@ -31,7 +31,7 @@ public final class LandsEdge extends CardImpl {
this.supertype.add(SuperType.WORLD);
// Discard a card: If the discarded card was a land card, Land's Edge deals 2 damage to target player. Any player may activate this ability.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LandsEdgeEffect(), new DiscardCardCost(false));
SimpleActivatedAbility ability = new SimpleActivatedAbility(new LandsEdgeEffect(), new DiscardCardCost(false));
ability.addTarget(new TargetPlayerOrPlaneswalker());
ability.setMayActivate(TargetController.ANY);
ability.addEffect(new InfoEffect("Any player may activate this ability"));

View file

@ -28,7 +28,7 @@ public final class LanternSpirit extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// {U}: Return Lantern Spirit 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 LanternSpirit(final LanternSpirit card) {

View file

@ -46,7 +46,7 @@ public final class LaquatussChampion extends CardImpl {
// When Laquatus's Champion leaves the battlefield, that player gains 6 life.
this.addAbility(new LaquatussChampionLeavesBattlefieldTriggeredAbility());
// {B}: Regenerate Laquatus's Champion.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
}
private LaquatussChampion(final LaquatussChampion card) {

View file

@ -35,7 +35,7 @@ public final class LatullaKeldonOverseer extends CardImpl {
this.toughness = new MageInt(3);
// {X}{R}, {tap}, Discard two cards: Latulla, Keldon Overseer deals X damage to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(GetXValue.instance), new ManaCostsImpl<>("{X}{R}"));
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(GetXValue.instance), new ManaCostsImpl<>("{X}{R}"));
ability.addCost(new TapSourceCost());
ability.addCost(new DiscardTargetCost(new TargetCardInHand(2, StaticFilters.FILTER_CARD_CARDS)));
ability.addTarget(new TargetAnyTarget());

View file

@ -41,7 +41,7 @@ public final class LavaZombie extends CardImpl {
// When Lava Zombie enters the battlefield, return a black or red creature you control to its owner's hand.
this.addAbility(new EntersBattlefieldTriggeredAbility(new ReturnToHandChosenControlledPermanentEffect(filter), false));
// {2}: Lava Zombie gets +1/+0 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1,0, Duration.EndOfTurn), new ManaCostsImpl<>("{2}")));
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(1,0, Duration.EndOfTurn), new ManaCostsImpl<>("{2}")));
}
private LavaZombie(final LavaZombie card) {

View file

@ -36,7 +36,7 @@ public final class LavaclawReaches extends CardImpl {
this.addAbility(new RedManaAbility());
// {1}{B}{R}: Until end of turn, Lavaclaw Reaches becomes a 2/2 black and red Elemental creature with ": This creature gets +X/+0 until end of turn." It's still a land.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(new LavaclawReachesToken(), CardType.LAND, Duration.EndOfTurn).withDurationRuleAtStart(true), new ManaCostsImpl<>("{1}{B}{R}")));
this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect(new LavaclawReachesToken(), CardType.LAND, Duration.EndOfTurn).withDurationRuleAtStart(true), new ManaCostsImpl<>("{1}{B}{R}")));
}
private LavaclawReaches(final LavaclawReaches card) {
@ -60,7 +60,7 @@ class LavaclawReachesToken extends TokenImpl {
color.setBlack(true);
power = new MageInt(2);
toughness = new MageInt(2);
addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(GetXValue.instance, StaticValue.get(0), Duration.EndOfTurn), new ManaCostsImpl<>("{X}")));
addAbility(new SimpleActivatedAbility(new BoostSourceEffect(GetXValue.instance, StaticValue.get(0), Duration.EndOfTurn), new ManaCostsImpl<>("{X}")));
}
private LavaclawReachesToken(final LavaclawReachesToken token) {
super(token);

View file

@ -38,13 +38,13 @@ public final class LavamancersSkill extends CardImpl {
this.addAbility(ability);
// Enchanted creature has "{tap}: This creature deals 1 damage to target creature."
Ability pingAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost());
Ability pingAbility = new SimpleActivatedAbility(new DamageTargetEffect(1), new TapSourceCost());
pingAbility.addTarget(new TargetCreaturePermanent());
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(pingAbility, AttachmentType.AURA, Duration.WhileOnBattlefield,
"Enchanted creature has \"{T}: This creature deals 1 damage to target creature.\"")));
// As long as enchanted creature is a Wizard, it has "{tap}: This creature deals 2 damage to target creature."
Ability pingTwoAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new TapSourceCost());
Ability pingTwoAbility = new SimpleActivatedAbility(new DamageTargetEffect(2), new TapSourceCost());
pingTwoAbility.addTarget(new TargetCreaturePermanent());
ContinuousEffect isWizardEffect = new GainAbilityAttachedEffect(pingTwoAbility, AttachmentType.AURA);
SimpleStaticAbility ifWizardAbility = new SimpleStaticAbility(new ConditionalContinuousEffect(isWizardEffect, new EnchantedCreatureSubtypeCondition(SubType.WIZARD),

View file

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

View file

@ -38,7 +38,7 @@ public final class Lawbringer extends CardImpl {
this.toughness = new MageInt(2);
// {tap}, Sacrifice Lawbringer: Exile target red creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new ExileTargetEffect(), new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);

View file

@ -42,7 +42,7 @@ public final class LeadBellyChimera extends CardImpl {
this.addAbility(TrampleAbility.getInstance());
// Sacrifice Lead-Belly Chimera: Put a +2/+2 counter on target Chimera creature. It gains trample.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.P2P2.createInstance()), new SacrificeSourceCost());
Ability ability = new SimpleActivatedAbility(new AddCountersTargetEffect(CounterType.P2P2.createInstance()), new SacrificeSourceCost());
ability.addEffect(new GainAbilityTargetEffect(TrampleAbility.getInstance(), Duration.WhileOnBattlefield)
.setText("It gains trample. <i>(This effect lasts indefinitely.)</i>"));
ability.addTarget(new TargetCreaturePermanent(filter));

View file

@ -41,7 +41,7 @@ public final class LeafdrakeRoost extends CardImpl {
this.addAbility(ability);
// Enchanted land has "{G}{U}, {tap}: Create a 2/2 green and blue Drake creature token with flying."
Ability abilityToGain = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new LeafdrakeRoostDrakeToken()), new ManaCostsImpl<>("{G}{U}"));
Ability abilityToGain = new SimpleActivatedAbility(new CreateTokenEffect(new LeafdrakeRoostDrakeToken()), new ManaCostsImpl<>("{G}{U}"));
abilityToGain.addCost(new TapSourceCost());
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(abilityToGain, AttachmentType.AURA, Duration.WhileOnBattlefield,
"Enchanted land has \"{G}{U}, {T}: Create a 2/2 green and blue Drake creature token with flying.\"")));

View file

@ -32,7 +32,7 @@ public final class LeapingLizard extends CardImpl {
// {1}{G}: Leaping Lizard gets -0/-1 and gains flying until end of turn.
Effect effect = new BoostSourceEffect(0, -1, Duration.EndOfTurn);
effect.setText("{this} gets -0/-1");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{1}{G}"));
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl<>("{1}{G}"));
effect = new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn);
effect.setText("and gains flying until end of turn");
ability.addEffect(effect);

View file

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

View file

@ -47,7 +47,7 @@ public final class LeechBonder extends CardImpl {
this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.M1M1.createInstance(2)), "with two -1/-1 counters on it"));
// {U}, {untap}: Move a counter from target creature onto another target creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LeechBonderEffect(), new ManaCostsImpl<>("{U}"));
Ability ability = new SimpleActivatedAbility(new LeechBonderEffect(), new ManaCostsImpl<>("{U}"));
ability.addCost(new UntapSourceCost());
// target 1
TargetCreaturePermanent target1 = new TargetCreaturePermanent(new FilterCreaturePermanent("creature to remove counter from"));

View file

@ -32,7 +32,7 @@ public final class LegacysAllure extends CardImpl {
new AddCountersSourceEffect(CounterType.TREASURE.createInstance(), true), true));
// Sacrifice Legacy's Allure: Gain control of target creature with power less than or equal to the number of treasure counters on Legacy's Allure.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainControlTargetEffect(Duration.EndOfGame, true), new SacrificeSourceCost());
Ability ability = new SimpleActivatedAbility(new GainControlTargetEffect(Duration.EndOfGame, true), new SacrificeSourceCost());
ability.addTarget(new TargetCreaturePermanent(filter));
ability.setTargetAdjuster(new PowerTargetAdjuster(new CountersSourceCount(CounterType.TREASURE), ComparisonType.OR_LESS));
this.addAbility(ability);

View file

@ -31,7 +31,7 @@ public final class LeoninBattlemage extends CardImpl {
this.toughness = new MageInt(3);
// {tap}: Target creature gets +1/+1 until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(1, 1, Duration.EndOfTurn), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new BoostTargetEffect(1, 1, Duration.EndOfTurn), new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
// Whenever you cast a spell, you may untap Leonin Battlemage.

View file

@ -36,7 +36,7 @@ public final class LeoninBladetrap extends CardImpl {
// Flash
this.addAbility(FlashAbility.getInstance());
// {2}, Sacrifice Leonin Bladetrap: Leonin Bladetrap deals 2 damage to each attacking creature without flying.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageAllEffect(2, "it", filter), new GenericManaCost(2));
Ability ability = new SimpleActivatedAbility(new DamageAllEffect(2, "it", filter), new GenericManaCost(2));
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);

View file

@ -20,7 +20,7 @@ public final class LeoninSunStandard extends CardImpl {
public LeoninSunStandard(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURES, false), new ManaCostsImpl<>("{1}{W}")));
this.addAbility(new SimpleActivatedAbility(new BoostControlledEffect(1, 1, Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURES, false), new ManaCostsImpl<>("{1}{W}")));
}
private LeoninSunStandard(final LeoninSunStandard card) {

View file

@ -34,7 +34,7 @@ public final class LethalVapors extends CardImpl {
false, SetTargetPointer.PERMANENT));
// {0}: Destroy Lethal Vapors. You skip your next turn. Any player may activate this ability.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroySourceEffect(), new ManaCostsImpl<>("{0}"));
SimpleActivatedAbility ability = new SimpleActivatedAbility(new DestroySourceEffect(), new ManaCostsImpl<>("{0}"));
ability.setMayActivate(TargetController.ANY);
ability.addEffect(new SkipNextTurnSourceEffect());
ability.addEffect(new InfoEffect("Any player may activate this ability"));

View file

@ -30,7 +30,7 @@ public final class LeyDruid extends CardImpl {
this.toughness = new MageInt(1);
// {tap}: Untap target land.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new UntapTargetEffect(), new TapSourceCost());
ability.addTarget(new TargetLandPermanent());
this.addAbility(ability);
}

View file

@ -28,7 +28,7 @@ public final class LiarsPendulum extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
// {2}, {T}: Choose a card name. Target opponent guesses whether a card with that name is in your hand. You may reveal your hand. If you do and your opponent guessed wrong, draw a card.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LiarsPendulumEffect(), new GenericManaCost(2));
Ability ability = new SimpleActivatedAbility(new LiarsPendulumEffect(), new GenericManaCost(2));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetOpponent());
this.addAbility(ability);

View file

@ -43,7 +43,7 @@ public final class LiberatedDwarf extends CardImpl {
// {R}, Sacrifice Liberated Dwarf: Target green creature gets +1/+0 and gains first strike until end of turn.
Effect effect = new BoostTargetEffect(1, 0, Duration.EndOfTurn);
effect.setText("Target green creature gets +1/+0");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{R}")); ability.addCost(new SacrificeSourceCost());
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl<>("{R}")); ability.addCost(new SacrificeSourceCost());
effect = new GainAbilityTargetEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn);
effect.setText("and gains first strike until end of turn");
ability.addEffect(effect);

View file

@ -35,7 +35,7 @@ public final class LieutenantKirtar extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// {1}{W}, Sacrifice Lieutenant Kirtar: Exile target attacking creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl<>("{1}{W}"));
Ability ability = new SimpleActivatedAbility(new ExileTargetEffect(), new ManaCostsImpl<>("{1}{W}"));
ability.addTarget(new TargetAttackingCreature());
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);

View file

@ -30,7 +30,7 @@ public final class Lifeforce extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{G}{G}");
// {G}{G}: Counter target black spell.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new ManaCostsImpl<>("{G}{G}"));
SimpleActivatedAbility ability = new SimpleActivatedAbility(new CounterTargetEffect(), new ManaCostsImpl<>("{G}{G}"));
ability.addTarget(new TargetSpell(filter));
this.addAbility(ability);
}

View file

@ -38,7 +38,7 @@ public final class LifesparkSpellbomb extends CardImpl {
this.addAbility(firstAbility);
// {1}, Sacrifice Lifespark Spellbomb: Draw a card.
Ability secondAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new GenericManaCost(1));
Ability secondAbility = new SimpleActivatedAbility(new DrawCardSourceControllerEffect(1), new GenericManaCost(1));
secondAbility.addCost(new SacrificeSourceCost());
this.addAbility(secondAbility);
}

View file

@ -38,7 +38,7 @@ public final class Lightbringer extends CardImpl {
this.toughness = new MageInt(2);
// {tap}, Sacrifice Lightbringer: Exile target black creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new ExileTargetEffect(), new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);

View file

@ -31,7 +31,7 @@ public final class LightningCrafter extends CardImpl {
this.addAbility(new ChampionAbility(this, SubType.GOBLIN, SubType.SHAMAN));
// {T}: Lightning Crafter deals 3 damage to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(3), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(3), new TapSourceCost());
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
}

View file

@ -32,7 +32,7 @@ public final class LightningDragon extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
this.addAbility(new EchoAbility("{2}{R}{R}"));
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 LightningDragon(final LightningDragon card) {

View file

@ -37,7 +37,7 @@ public final class LightningProwess extends CardImpl {
this.addAbility(ability);
// Enchanted creature has haste and "{tap}: This creature deals 1 damage to any target."
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(HasteAbility.getInstance(), AttachmentType.AURA)));
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost());
ability = new SimpleActivatedAbility(new DamageTargetEffect(1), new TapSourceCost());
ability.addTarget(new TargetAnyTarget());
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(ability, AttachmentType.AURA)));
}

View file

@ -38,7 +38,7 @@ public final class LightningRigCrew extends CardImpl {
this.toughness = new MageInt(5);
// {T}: Lightning-Rig Crew deals 1 damage to each opponent.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamagePlayersEffect(1, TargetController.OPPONENT), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new DamagePlayersEffect(1, TargetController.OPPONENT), new TapSourceCost());
this.addAbility(ability);
// Whenever you cast a Pirate spell, untap Lightning-Rig Crew.

View file

@ -27,7 +27,7 @@ public final class LightningVolley extends CardImpl {
// Until end of turn, creatures you control gain "{T}: This creature deals 1 damage to any target."
Ability grantedAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost());
Ability grantedAbility = new SimpleActivatedAbility(new DamageTargetEffect(1), new TapSourceCost());
grantedAbility.addTarget(new TargetAnyTarget());
Effect effect = new GainAbilityControlledEffect(grantedAbility, Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURES);
effect.setText("Until end of turn, creatures you control gain \"{T}: This creature deals 1 damage to any target.\"");

View file

@ -43,7 +43,7 @@ public final class LikenessLooter extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// {T}: Draw a card, then discard a card.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawDiscardControllerEffect(), new TapSourceCost()));
this.addAbility(new SimpleActivatedAbility(new DrawDiscardControllerEffect(), new TapSourceCost()));
// {X}: Likeness Looter becomes a copy of target creature card in your graveyard with mana value X, except it has flying and this ability. Activate only as a sorcery.
Ability ability = new ActivateAsSorceryActivatedAbility(

View file

@ -39,7 +39,7 @@ public final class LilianasShade extends CardImpl {
// When Liliana's Shade enters the battlefield, you may search your library for a Swamp card, reveal it, put it into your hand, then shuffle your library.
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true), true));
// {B}: Liliana's 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 LilianasShade(final LilianasShade card) {

View file

@ -29,7 +29,7 @@ public final class LiltingRefrain extends CardImpl {
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new AddCountersSourceEffect(CounterType.VERSE.createInstance()), true));
// Sacrifice Lilting Refrain: Counter target spell unless its controller pays {X}, where X is the number of verse counters on Lilting Refrain.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterUnlessPaysEffect(new CountersSourceCount(CounterType.VERSE)), new SacrificeSourceCost());
Ability ability = new SimpleActivatedAbility(new CounterUnlessPaysEffect(new CountersSourceCount(CounterType.VERSE)), new SacrificeSourceCost());
ability.addTarget(new TargetSpell());
this.addAbility(ability);
}

View file

@ -48,7 +48,7 @@ public final class LimDulTheNecromancer extends CardImpl {
this.addAbility(new DiesCreatureTriggeredAbility(new DoIfCostPaid(new LimDulTheNecromancerEffect(), new ManaCostsImpl<>("{1}{B}")), false, StaticFilters.FILTER_OPPONENTS_PERMANENT_A_CREATURE, true));
// {1}{B}: Regenerate target Zombie.
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl<>("{1}{B}"));
Ability ability2 = new SimpleActivatedAbility(new RegenerateTargetEffect(), new ManaCostsImpl<>("{1}{B}"));
ability2.addTarget(new TargetPermanent(filter2));
this.addAbility(ability2);

View file

@ -28,7 +28,7 @@ public final class LimDulsHighGuard extends CardImpl {
// First strike
this.addAbility(FirstStrikeAbility.getInstance());
// {1}{B}: Regenerate Lim-Dul's High Guard.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{B}")));
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{B}")));
}
private LimDulsHighGuard(final LimDulsHighGuard card) {

View file

@ -29,7 +29,7 @@ public final class LimestoneGolem extends CardImpl {
this.toughness = new MageInt(4);
// {2}, Sacrifice Limestone Golem: Target player draws a card.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(1), new ManaCostsImpl<>("{2}"));
Ability ability = new SimpleActivatedAbility(new DrawCardTargetEffect(1), new ManaCostsImpl<>("{2}"));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(ability);

View file

@ -55,7 +55,7 @@ public final class LinSivviDefiantHero extends CardImpl {
this.addAbility(ability);
// {3}: Put target Rebel card from your graveyard on the bottom of your library.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutOnLibraryTargetEffect(false, rule), new GenericManaCost(3));
ability = new SimpleActivatedAbility(new PutOnLibraryTargetEffect(false, rule), new GenericManaCost(3));
ability.addTarget(new TargetCardInYourGraveyard(1, filter));
this.addAbility(ability);
}

View file

@ -47,7 +47,7 @@ public final class LinessaZephyrMage extends CardImpl {
this.toughness = new MageInt(3);
// {X}{U}{U}, {tap}: Return target creature with converted mana cost X to its owner's hand.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl<>("{X}{U}{U}"));
Ability ability = new SimpleActivatedAbility(new ReturnToHandTargetEffect(), new ManaCostsImpl<>("{X}{U}{U}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPermanent(filter));
ability.setTargetAdjuster(new XManaValueTargetAdjuster());

View file

@ -28,7 +28,7 @@ public final class LionheartMaverick extends CardImpl {
this.power = new MageInt(1);
this.toughness = new MageInt(1);
this.addAbility(VigilanceAbility.getInstance());
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 2, Duration.EndOfTurn), new ManaCostsImpl<>("{4}{W}")));
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(1, 2, Duration.EndOfTurn), new ManaCostsImpl<>("{4}{W}")));
}
private LionheartMaverick(final LionheartMaverick card) {

View file

@ -24,7 +24,7 @@ public final class LiquimetalCoating extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{2}");
// {T}: Target permanent becomes an artifact in addition to its other types until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCardTypeTargetEffect(Duration.EndOfTurn, CardType.ARTIFACT), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new AddCardTypeTargetEffect(Duration.EndOfTurn, CardType.ARTIFACT), new TapSourceCost());
ability.addTarget(new TargetPermanent());
this.addAbility(ability);
}

View file

@ -25,7 +25,7 @@ public final class LivingAirship extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(3);
this.addAbility(FlyingAbility.getInstance());
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{2}{G}")));
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl<>("{2}{G}")));
}
private LivingAirship(final LivingAirship card) {

View file

@ -27,7 +27,7 @@ public final class LivingArmor extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}");
// {tap}, Sacrifice Living Armor: Put X +0/+1 counters on target creature, where X is that creature's converted mana cost.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LivingArmorEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new LivingArmorEffect(), new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -34,7 +34,7 @@ public final class LivingInferno extends CardImpl {
this.toughness = new MageInt(5);
// {T}: Living Inferno deals damage equal to its power divided as you choose among any number of target creatures. Each of those creatures deals damage equal to its power to Living Inferno.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LivingInfernoEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new LivingInfernoEffect(), new TapSourceCost());
ability.setTargetAdjuster(LivingInfernoAdjuster.instance);
this.addAbility(ability);
}

View file

@ -29,7 +29,7 @@ public final class LivingWall extends CardImpl {
this.addAbility(DefenderAbility.getInstance());
// {1}: Regenerate Living Wall.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}")));
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}")));
}

View file

@ -35,7 +35,7 @@ public final class LlanowarBehemoth extends CardImpl {
this.toughness = new MageInt(4);
// Tap an untapped creature you control: Llanowar Behemoth gets +1/+1 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new TapTargetCost(new TargetControlledCreaturePermanent(1, 1, filter, false))));
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(1, 1, Duration.EndOfTurn), new TapTargetCost(new TargetControlledCreaturePermanent(1, 1, filter, false))));
}
private LlanowarBehemoth(final LlanowarBehemoth card) {

View file

@ -28,7 +28,7 @@ public final class LlanowarCavalry extends CardImpl {
this.toughness = new MageInt(4);
// {W}: Llanowar Cavalry 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}")));
}
private LlanowarCavalry(final LlanowarCavalry card) {

View file

@ -29,7 +29,7 @@ public final class LlanowarMentor extends CardImpl {
this.toughness = new MageInt(1);
// {G}, {T}, Discard a card: Create a 1/1 green Elf Druid creature token named Llanowar Elves. It has "{T}: Add {G}."
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new LlanowarElvesToken()), new ManaCostsImpl<>("{G}"));
Ability ability = new SimpleActivatedAbility(new CreateTokenEffect(new LlanowarElvesToken()), new ManaCostsImpl<>("{G}"));
ability.addCost(new TapSourceCost());
ability.addCost(new DiscardCardCost());
this.addAbility(ability);

View file

@ -34,7 +34,7 @@ public final class LobberCrew extends CardImpl {
// Defender
this.addAbility(DefenderAbility.getInstance());
// {T}: Lobber Crew deals 1 damage to each opponent.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamagePlayersEffect(1, TargetController.OPPONENT), new TapSourceCost()));
this.addAbility(new SimpleActivatedAbility(new DamagePlayersEffect(1, TargetController.OPPONENT), new TapSourceCost()));
// Whenever you cast a multicolored spell, untap Lobber Crew.
this.addAbility(new SpellCastControllerTriggeredAbility(
new UntapSourceEffect(), StaticFilters.FILTER_SPELL_A_MULTICOLORED, false));

View file

@ -31,7 +31,7 @@ public final class LobeLobber extends CardImpl {
// Equipped creature has "T: This creature deals 1 damage to target player. Roll a six-sided die. On a 5 or higher, untap it."
Effect effect = new LobeLobberEffect();
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new TapSourceCost());
SimpleActivatedAbility ability = new SimpleActivatedAbility(effect, new TapSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(ability, AttachmentType.EQUIPMENT)));

View file

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

View file

@ -31,7 +31,7 @@ public final class LocustSwarm extends CardImpl {
this.addAbility(FlyingAbility.getInstance());
// {G}: Regenerate Locust Swarm.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{G}")));
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl<>("{G}")));
// {G}: Untap Locust Swarm. Activate this ability only once each turn.
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new UntapSourceEffect(), new ManaCostsImpl<>("{G}")));

View file

@ -39,7 +39,7 @@ public final class LodestoneBauble extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{0}");
// {1}, {T}, Sacrifice Lodestone Bauble: Put up to four target basic land cards from a player's graveyard on top of their library in any order. That player draws a card at the beginning of the next turn's upkeep.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LodestoneBaubleEffect(), new GenericManaCost(1));
Ability ability = new SimpleActivatedAbility(new LodestoneBaubleEffect(), new GenericManaCost(1));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addEffect(new LodestoneBaubleDrawEffect());

View file

@ -34,7 +34,7 @@ public final class LodestoneMyr extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(2);
this.addAbility(TrampleAbility.getInstance());
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new TapTargetCost(new TargetControlledPermanent(filter))));
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(1, 1, Duration.EndOfTurn), new TapTargetCost(new TargetControlledPermanent(filter))));
}
private LodestoneMyr(final LodestoneMyr card) {

View file

@ -31,7 +31,7 @@ public final class LongtuskCub extends CardImpl {
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new GetEnergyCountersControllerEffect(2), false));
// Pay {E}{E}: Put a +1/+1 counter on Longtusk Cub.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new PayEnergyCost(2)));
this.addAbility(new SimpleActivatedAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new PayEnergyCost(2)));
}
private LongtuskCub(final LongtuskCub card) {

View file

@ -26,7 +26,7 @@ public final class LoomingShade extends CardImpl {
this.power = new MageInt(1);
this.toughness = new MageInt(1);
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 LoomingShade(final LoomingShade card) {

View file

@ -45,7 +45,7 @@ public final class LootExuberantExplorer extends CardImpl {
new PlayAdditionalLandsControllerEffect(1, Duration.WhileOnBattlefield)));
// {4}{G}{G}, {T}: Look at the top six cards of your library. You may reveal a creature card with mana value less than or equal to the number of lands you control from among them and put it onto the battlefield. Put the rest on the bottom in a random order.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LookLibraryAndPickControllerEffect(
Ability ability = new SimpleActivatedAbility(new LookLibraryAndPickControllerEffect(
6, 1, filter,
PutCards.BATTLEFIELD, PutCards.BOTTOM_RANDOM
), new ManaCostsImpl<>("{4}{G}{G}"));

View file

@ -43,7 +43,7 @@ public final class LordOfLineage extends CardImpl {
this.addAbility(new SimpleStaticAbility(new BoostControlledEffect(2, 2, Duration.WhileOnBattlefield, filter, true)));
// {T}: Create a 2/2 black Vampire creature token with flying.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new VampireToken()), new TapSourceCost()));
this.addAbility(new SimpleActivatedAbility(new CreateTokenEffect(new VampireToken()), new TapSourceCost()));
}
private LordOfLineage(final LordOfLineage card) {

View file

@ -38,7 +38,7 @@ public final class LordOfTheAccursed extends CardImpl {
this.addAbility(new SimpleStaticAbility(new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter, true)));
//{2}{B}, Tap: All Zombies gain menace until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityAllEffect(
Ability ability = new SimpleActivatedAbility(new GainAbilityAllEffect(
new MenaceAbility(),
Duration.EndOfTurn,
filter, "All Zombies gain menace until end of turn."),

View file

@ -44,7 +44,7 @@ public final class LordOfTresserhorn extends CardImpl {
this.addAbility(ability);
// {B}: Regenerate Lord of Tresserhorn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
}
private LordOfTresserhorn(final LordOfTresserhorn card) {

View file

@ -29,7 +29,7 @@ public final class LoreBroker extends CardImpl {
this.toughness = new MageInt(2);
// {tap}: Each player draws a card, then discards a card.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardAllEffect(1), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new DrawCardAllEffect(1), new TapSourceCost());
ability.addEffect(new DiscardEachPlayerEffect().setText(", then discards a card"));
this.addAbility(ability);
}

View file

@ -47,7 +47,7 @@ public final class LowlandOaf extends CardImpl {
// {tap}: Target Goblin creature you control gets +1/+0 and gains flying until end of turn. Sacrifice that creature at the beginning of the next end step.
Effect effect = new BoostTargetEffect(1, 0, Duration.EndOfTurn);
effect.setText("Target Goblin creature you control gets +1/+0");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new TapSourceCost());
Ability ability = new SimpleActivatedAbility(effect, new TapSourceCost());
effect = new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn);
effect.setText("and gains flying until end of turn.");
ability.addEffect(effect);

View file

@ -30,7 +30,7 @@ public final class LoxodonAnchorite extends CardImpl {
this.toughness = new MageInt(3);
// {tap}: Prevent the next 2 damage that would be dealt to any target this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventDamageToTargetEffect(Duration.EndOfTurn, 2), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new PreventDamageToTargetEffect(Duration.EndOfTurn, 2), new TapSourceCost());
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
}

View file

@ -36,7 +36,7 @@ public final class LoxodonHierarch extends CardImpl {
Ability etbAbility = new EntersBattlefieldTriggeredAbility(new GainLifeEffect(4));
this.addAbility(etbAbility);
// {G}{W}, Sacrifice Loxodon Hierarch: Regenerate each creature you control.
Ability activated = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateAllEffect(StaticFilters.FILTER_PERMANENT_CREATURE_CONTROLLED), new ManaCostsImpl<>("{G}{W}"));
Ability activated = new SimpleActivatedAbility(new RegenerateAllEffect(StaticFilters.FILTER_PERMANENT_CREATURE_CONTROLLED), new ManaCostsImpl<>("{G}{W}"));
activated.addCost(new SacrificeSourceCost());
this.addAbility(activated);
}

View file

@ -35,7 +35,7 @@ public final class LoxodonMender extends CardImpl {
this.power = new MageInt(3);
this.toughness = new MageInt(3);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ColoredManaCost(ColoredManaSymbol.W));
Ability ability = new SimpleActivatedAbility(new RegenerateTargetEffect(), new ColoredManaCost(ColoredManaSymbol.W));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);

View file

@ -29,7 +29,7 @@ public final class LoxodonMystic extends CardImpl {
this.power = new MageInt(3);
this.toughness = new MageInt(3);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ColoredManaCost(ColoredManaSymbol.W));
Ability ability = new SimpleActivatedAbility(new TapTargetEffect(), new ColoredManaCost(ColoredManaSymbol.W));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -31,7 +31,7 @@ public final class LoxodonStalwart extends CardImpl {
// Vigilance
this.addAbility(VigilanceAbility.getInstance());
// {W}: Loxodon Stalwart 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}")));
}
private LoxodonStalwart(final LoxodonStalwart card) {

View file

@ -28,7 +28,7 @@ public final class LoyalTauntaun extends CardImpl {
this.toughness = new MageInt(3);
// {1}{G}, sacrifice Loyal Tauntaun: Regenerate target creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl<>("{1}{G}"));
Ability ability = new SimpleActivatedAbility(new RegenerateTargetEffect(), new ManaCostsImpl<>("{1}{G}"));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -39,7 +39,7 @@ public final class LudevicsTestSubject extends CardImpl {
this.addAbility(DefenderAbility.getInstance());
// {1}{U}: Put a hatchling counter on Ludevic's Test Subject. Then if there are five or more hatchling counters on it, remove all of them and transform it.
this.addAbility(new TransformAbility());
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.HATCHLING.createInstance()), new ManaCostsImpl<>("{1}{U}"));
Ability ability = new SimpleActivatedAbility(new AddCountersSourceEffect(CounterType.HATCHLING.createInstance()), new ManaCostsImpl<>("{1}{U}"));
ability.addEffect(new LudevicsTestSubjectEffect());
this.addAbility(ability);
}

View file

@ -46,7 +46,7 @@ public final class LukeSkywalker extends CardImpl {
StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE));
// Remove all +1/+1 counters from Luke Skywalker: Luke gains hexproof until end of turn. Activate this ability only if at least one +1/+1 counter is removed this way.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(HexproofAbility.getInstance(), Duration.EndOfTurn), new LukeSkywalkerCost()));
this.addAbility(new SimpleActivatedAbility(new GainAbilitySourceEffect(HexproofAbility.getInstance(), Duration.EndOfTurn), new LukeSkywalkerCost()));
}
private LukeSkywalker(final LukeSkywalker card) {

View file

@ -44,7 +44,7 @@ public final class LullmageMentor extends CardImpl {
this.addAbility(new SpellCounteredControllerTriggeredAbility(new CreateTokenEffect(new MerfolkToken()), true));
// Tap seven untapped Merfolk you control: Counter target spell.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new TapTargetCost(new TargetControlledPermanent(7, 7, filter, true)));
Ability ability = new SimpleActivatedAbility(new CounterTargetEffect(), new TapTargetCost(new TargetControlledPermanent(7, 7, filter, true)));
ability.addTarget(new TargetSpell());
this.addAbility(ability);

View file

@ -35,7 +35,7 @@ public final class LumberingFalls extends CardImpl {
this.addAbility(new GreenManaAbility());
// {2}{G}{U}: Lumbering Falls becomes a 3/3 green and blue Elemental creature with hexproof until end of turn. It's still a land.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(new LumberingFallsToken(), CardType.LAND, Duration.EndOfTurn), new ManaCostsImpl<>("{2}{G}{U}")));
this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect(new LumberingFallsToken(), CardType.LAND, Duration.EndOfTurn), new ManaCostsImpl<>("{2}{G}{U}")));
}
private LumberingFalls(final LumberingFalls card) {

View file

@ -34,7 +34,7 @@ public final class LumengridAugur extends CardImpl {
this.toughness = new MageInt(2);
// {1}, {T}: Target player draws a card, then discards a card. If that player discards an artifact card this way, untap Lumengrid Augur.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LumengridAugurEffect(), new GenericManaCost(1));
Ability ability = new SimpleActivatedAbility(new LumengridAugurEffect(), new GenericManaCost(1));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(ability);

View file

@ -29,9 +29,9 @@ public final class LuminousGuardian extends CardImpl {
this.toughness = new MageInt(4);
// {W}: Luminous Guardian 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}")));
// {2}: Luminous Guardian can block an additional creature this turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CanBlockAdditionalCreatureEffect(Duration.EndOfTurn, 1), new ManaCostsImpl<>("{2}")));
this.addAbility(new SimpleActivatedAbility(new CanBlockAdditionalCreatureEffect(Duration.EndOfTurn, 1), new ManaCostsImpl<>("{2}")));
}
private LuminousGuardian(final LuminousGuardian card) {

View file

@ -33,7 +33,7 @@ public final class LunarAvenger extends CardImpl {
// Sunburst
this.addAbility(new SunburstAbility(this));
// Remove a +1/+1 counter from Lunar Avenger: Lunar Avenger gains your choice of flying, first strike, or haste until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainsChoiceOfAbilitiesEffect(GainsChoiceOfAbilitiesEffect.TargetType.Source,
this.addAbility(new SimpleActivatedAbility(new GainsChoiceOfAbilitiesEffect(GainsChoiceOfAbilitiesEffect.TargetType.Source,
FlyingAbility.getInstance(), FirstStrikeAbility.getInstance(), HasteAbility.getInstance()),
new RemoveCountersSourceCost(CounterType.P1P1.createInstance(1))));
}

View file

@ -33,7 +33,7 @@ public final class LurkingEvil extends CardImpl {
// Pay half your life, rounded up: Lurking Evil becomes a 4/4 Horror creature with flying.
Effect effect = new BecomesCreatureSourceEffect(new LurkingEvilToken(), null, Duration.EndOfGame);
effect.setText("{this} becomes a 4/4 Phyrexian Horror creature with flying");
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new LurkingEvilCost()));
this.addAbility(new SimpleActivatedAbility(effect, new LurkingEvilCost()));
}
private LurkingEvil(final LurkingEvil card) {

View file

@ -30,7 +30,7 @@ public final class LurkingInformant extends CardImpl {
// <i>({UB} can be paid with either {U} or {B}.)</i>
// {2}, {tap}: Look at the top card of target player's library. You may put that card into that player's graveyard.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LookLibraryTopCardTargetPlayerEffect(1, true), new GenericManaCost(2));
Ability ability = new SimpleActivatedAbility(new LookLibraryTopCardTargetPlayerEffect(1, true), new GenericManaCost(2));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(ability);

View file

@ -24,8 +24,8 @@ public final class LuxCannon extends CardImpl {
public LuxCannon (UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{4}");
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.CHARGE.createInstance()), new TapSourceCost()));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new TapSourceCost());
this.addAbility(new SimpleActivatedAbility(new AddCountersSourceEffect(CounterType.CHARGE.createInstance()), new TapSourceCost()));
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new TapSourceCost());
ability.addCost(new RemoveCountersSourceCost(CounterType.CHARGE.createInstance(3)));
ability.addTarget(new TargetPermanent());
this.addAbility(ability);

View file

@ -29,7 +29,7 @@ public final class LuxaRiverShrine extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
// {1}, {T}: You gain 1 life. Put a brick counter on Luxa River Shrine.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(1), new ManaCostsImpl<>("{1}"));
Ability ability = new SimpleActivatedAbility(new GainLifeEffect(1), new ManaCostsImpl<>("{1}"));
ability.addCost(new TapSourceCost());
ability.addEffect(new AddCountersSourceEffect(CounterType.BRICK.createInstance()));
this.addAbility(ability);

View file

@ -56,7 +56,7 @@ public final class LyzoldaTheBloodWitch extends CardImpl {
new DamageTargetEffect(2),
new SacrificedWasCondition(redFilter),
"{this} deals 2 damage to any target if the sacrificed creature was red");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{2}"));
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl<>("{2}"));
effect = new ConditionalOneShotEffect(
new DrawCardSourceControllerEffect(1),
new SacrificedWasCondition(blackFilter),

View file

@ -45,7 +45,7 @@ public final class MadAuntie extends CardImpl {
this.addAbility(new SimpleStaticAbility(new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, StaticFilters.FILTER_PERMANENT_CREATURE_GOBLINS, true)));
// {T}: Regenerate another target Goblin.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new RegenerateTargetEffect(), new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent(filter1));
this.addAbility(ability);
}

View file

@ -32,7 +32,7 @@ public final class MadProphet extends CardImpl {
this.addAbility(HasteAbility.getInstance());
// {tap}, Discard a card: Draw a card.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new DrawCardSourceControllerEffect(1), new TapSourceCost());
ability.addCost(new DiscardTargetCost(new TargetCardInHand()));
this.addAbility(ability);
}

View file

@ -29,7 +29,7 @@ public final class MageIlVec extends CardImpl {
this.toughness = new MageInt(2);
// {tap}, Discard a card at random: Mage il-Vec deals 1 damage to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(1), new TapSourceCost());
ability.addCost(new DiscardCardCost(true));
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);

View file

@ -32,7 +32,7 @@ public final class MageRingNetwork extends CardImpl {
// {T}: Add {C}.
this.addAbility(new ColorlessManaAbility());
// {1}, {T}: Put a storage counter on Mage-Ring Network.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.STORAGE.createInstance()),
Ability ability = new SimpleActivatedAbility(new AddCountersSourceEffect(CounterType.STORAGE.createInstance()),
new ManaCostsImpl<>("{1}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);

View file

@ -38,7 +38,7 @@ public final class MageRingResponder extends CardImpl {
this.addAbility(new SimpleStaticAbility(new DontUntapInControllersUntapStepSourceEffect()));
// {7}: Untap Mage-Ring Responder.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapSourceEffect(), new ManaCostsImpl<>("{7}")));
this.addAbility(new SimpleActivatedAbility(new UntapSourceEffect(), new ManaCostsImpl<>("{7}")));
// Whenever Mage-Ring Responder attacks, it deals 7 damage to target creature defending player controls.
this.addAbility(new MageRingResponderAbility());

View file

@ -43,7 +43,7 @@ public final class MagetaTheLion extends CardImpl {
this.toughness = new MageInt(3);
// {2}{W}{W}, {tap}, Discard two cards: Destroy all creatures except for Mageta the Lion. Those creatures can't be regenerated.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyAllEffect(filter, true), new ManaCostsImpl<>("{2}{W}{W}"));
Ability ability = new SimpleActivatedAbility(new DestroyAllEffect(filter, true), new ManaCostsImpl<>("{2}{W}{W}"));
ability.addCost(new TapSourceCost());
ability.addCost(new DiscardTargetCost(new TargetCardInHand(2, StaticFilters.FILTER_CARD_CARDS)));
this.addAbility(ability);

View file

@ -35,7 +35,7 @@ public final class MagewrightsStone extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
// {1}, {T}: Untap target creature that has an activated ability with {T} in its cost.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new ManaCostsImpl<>("{1}"));
Ability ability = new SimpleActivatedAbility(new UntapTargetEffect(), new ManaCostsImpl<>("{1}"));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);

View file

@ -25,12 +25,12 @@ public final class MagistratesScepter extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{3}");
// {4}, {tap}: Put a charge counter on Magistrate's Scepter.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.CHARGE.createInstance()), new GenericManaCost(4));
Ability ability = new SimpleActivatedAbility(new AddCountersSourceEffect(CounterType.CHARGE.createInstance()), new GenericManaCost(4));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
// {tap}, Remove three charge counters from Magistrate's Scepter: Take an extra turn after this one.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddExtraTurnControllerEffect(), new TapSourceCost());
ability = new SimpleActivatedAbility(new AddExtraTurnControllerEffect(), new TapSourceCost());
ability.addCost(new RemoveCountersSourceCost(CounterType.CHARGE.createInstance(3)));
this.addAbility(ability);
}

View file

@ -27,12 +27,12 @@ public final class MagmaMine extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{1}");
// {4}: Put a pressure counter on Magma Mine.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
this.addAbility(new SimpleActivatedAbility(
new AddCountersSourceEffect(CounterType.PRESSURE.createInstance(), true),
new GenericManaCost(4)));
// {tap}, Sacrifice Magma Mine: Magma Mine deals damage equal to the number of pressure counters on it to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(new CountersSourceCount(CounterType.PRESSURE)), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(new CountersSourceCount(CounterType.PRESSURE)), new TapSourceCost());
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);

View file

@ -37,7 +37,7 @@ public final class MagmaVein extends CardImpl {
// {R}, Sacrifice a land: Magma Vein deals 1 damage to each creature without flying.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageAllEffect(1, filter1), new ManaCostsImpl<>("{R}"));
Ability ability = new SimpleActivatedAbility(new DamageAllEffect(1, filter1), new ManaCostsImpl<>("{R}"));
ability.addCost(new SacrificeTargetCost(filter2));
this.addAbility(ability);

View file

@ -36,7 +36,7 @@ public final class Magmaw extends CardImpl {
this.power = new MageInt(4);
this.toughness = new MageInt(4);
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new GenericManaCost(1));
SimpleActivatedAbility ability = new SimpleActivatedAbility(new DamageTargetEffect(1), new GenericManaCost(1));
ability.addCost(new SacrificeTargetCost(filter));
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);

View file

@ -26,7 +26,7 @@ public final class MagnifyingGlass extends CardImpl {
this.addAbility(new ColorlessManaAbility());
// {4}, {T}: Investigate.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new InvestigateEffect(), new GenericManaCost(4));
Ability ability = new SimpleActivatedAbility(new InvestigateEffect(), new GenericManaCost(4));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

View file

@ -35,7 +35,7 @@ public final class MagusOfTheArena extends CardImpl {
this.toughness = new MageInt(5);
// {3}, {tap}: Tap target creature you control and target creature of an opponent's choice they control. Those creatures fight each other.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MagusOfTheArenaEffect(), new GenericManaCost(3));
Ability ability = new SimpleActivatedAbility(new MagusOfTheArenaEffect(), new GenericManaCost(3));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetControlledCreaturePermanent());
ability.addTarget(new TargetOpponentsChoicePermanent(1, 1, StaticFilters.FILTER_CONTROLLED_CREATURE, false));

View file

@ -26,7 +26,7 @@ public final class MagusOfTheBazaar extends CardImpl {
this.toughness = new MageInt(1);
// {tap}: Draw two cards, then discard three cards.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawDiscardControllerEffect(2, 3), new TapSourceCost())); }
this.addAbility(new SimpleActivatedAbility(new DrawDiscardControllerEffect(2, 3), new TapSourceCost())); }
private MagusOfTheBazaar(final MagusOfTheBazaar card) {
super(card);

View file

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

View file

@ -43,7 +43,7 @@ public final class MagusOfTheDisk extends CardImpl {
this.addAbility(new EntersBattlefieldTappedAbility());
// {1}, {tap}: Destroy all artifacts, creatures, and enchantments.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyAllEffect(filter, false), new ManaCostsImpl<>("{1}"));
Ability ability = new SimpleActivatedAbility(new DestroyAllEffect(filter, false), new ManaCostsImpl<>("{1}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}

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