mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
refactor: SimpleActivatedAbility default zone (cards D)
This commit is contained in:
parent
8628de0c1f
commit
07be392c35
182 changed files with 194 additions and 194 deletions
|
|
@ -30,7 +30,7 @@ public final class DAvenantArcher extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {tap}: D'Avenant Archer deals 1 damage to target attacking or blocking creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(1), new TapSourceCost());
|
||||
ability.addTarget(new TargetAttackingOrBlockingCreature());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public final class DaghatarTheAdamant extends CardImpl {
|
|||
"with four +1/+1 counters on it"));
|
||||
|
||||
// {1}{B/G}{B/G}: Move a +1/+1 counter from target creature onto a second target creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MoveCounterFromTargetToTargetEffect(),new ManaCostsImpl<>("{1}{B/G}{B/G}"));
|
||||
Ability ability = new SimpleActivatedAbility(new MoveCounterFromTargetToTargetEffect(),new ManaCostsImpl<>("{1}{B/G}{B/G}"));
|
||||
ability.addTarget(new TargetCreaturePermanent(new FilterCreaturePermanent("creature the +1/+1 counter is moved from")));
|
||||
ability.addTarget(new TargetCreaturePermanent(new FilterCreaturePermanent("creature the +1/+1 counter is moved to")));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class DakraMystic extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {U},{T}:Each player reveals the top card of their library. You may put the revealed cards into their owners graveyard. If you don't, each player draws a card.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DakraMysticEffect(), new ManaCostsImpl<>("{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(new DakraMysticEffect(), new ManaCostsImpl<>("{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class DarajaGriffin extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// Sacrifice Daraja Griffin: Destroy target black creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new SacrificeSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class DaringApprentice extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {tap}, Sacrifice Daring Apprentice: Counter target spell.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(new CounterTargetEffect(), new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetSpell());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class DaringSaboteur extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {2}{U}: Daring Saboteur can't be blocked this turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{2}{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new CantBeBlockedSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{2}{U}")));
|
||||
|
||||
// Whenever Daring Saboteur deals combat damage to a player, you may draw a card. If you do, discard a card.
|
||||
Effect effect = new DrawDiscardControllerEffect(1, 1);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class DarkDepths extends CardImpl {
|
|||
// Dark Depths enters the battlefield with ten ice counters on it.
|
||||
this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.ICE.createInstance(10)), "with ten ice counters on it"));
|
||||
// {3}: Remove an ice counter from Dark Depths.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RemoveCounterSourceEffect(CounterType.ICE.createInstance(1)), new ManaCostsImpl<>("{3}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new RemoveCounterSourceEffect(CounterType.ICE.createInstance(1)), new ManaCostsImpl<>("{3}")));
|
||||
// When Dark Depths has no ice counters on it, sacrifice it. If you do, create a legendary 20/20 black Avatar creature token with flying and "This creature is indestructible" named Marit Lage.
|
||||
this.addAbility(new DarkDepthsAbility());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class DarkHeartOfTheWood extends CardImpl {
|
|||
|
||||
|
||||
// Sacrifice a Forest: You gain 3 life.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(3), new SacrificeTargetCost(filter)));
|
||||
this.addAbility(new SimpleActivatedAbility(new GainLifeEffect(3), new SacrificeTargetCost(filter)));
|
||||
}
|
||||
|
||||
private DarkHeartOfTheWood(final DarkHeartOfTheWood card) {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public final class DarkPrivilege extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(new BoostEnchantedEffect(1, 1, Duration.WhileOnBattlefield)));
|
||||
|
||||
// Sacrifice a creature: Regenerate enchanted creature.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateAttachedEffect(AttachmentType.AURA),
|
||||
this.addAbility(new SimpleActivatedAbility(new RegenerateAttachedEffect(AttachmentType.AURA),
|
||||
new SacrificeTargetCost(StaticFilters.FILTER_PERMANENT_CREATURE)));
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class DarkSphere extends CardImpl {
|
|||
|
||||
|
||||
// {tap}, Sacrifice Dark Sphere: The next time a source of your choice would deal damage to you this turn, prevent half that damage, rounded down.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DarkSpherePreventionEffect(), new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(new DarkSpherePreventionEffect(), new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class DarkSupplicant extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {T}, Sacrifice three Clerics: Search your graveyard, hand, and/or library for a card named Scion of Darkness and put it onto the battlefield. If you search your library this way, shuffle it.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DarkSupplicantEffect(), new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(new DarkSupplicantEffect(), new TapSourceCost());
|
||||
ability.addCost(new SacrificeTargetCost(3, filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class DarkheartSliver extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// All Slivers have "Sacrifice this permanent: You gain 3 life."
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(3), new SacrificeSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(new GainLifeEffect(3), new SacrificeSourceCost());
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
new GainAbilityAllEffect(ability,
|
||||
Duration.WhileOnBattlefield, StaticFilters.FILTER_PERMANENT_ALL_SLIVERS,
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ public final class DarklingStalker extends CardImpl {
|
|||
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ColoredManaCost(ColoredManaSymbol.B)));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.B)));
|
||||
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ColoredManaCost(ColoredManaSymbol.B)));
|
||||
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.B)));
|
||||
}
|
||||
|
||||
private DarklingStalker(final DarklingStalker card) {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class DarklitGargoyle extends CardImpl {
|
|||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(2);
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, -1, Duration.EndOfTurn), new ManaCostsImpl<>(("{B}"))));
|
||||
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(2, -1, Duration.EndOfTurn), new ManaCostsImpl<>(("{B}"))));
|
||||
}
|
||||
|
||||
private DarklitGargoyle(final DarklitGargoyle card) {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class DarksteelBrute extends CardImpl {
|
|||
this.addAbility(IndestructibleAbility.getInstance());
|
||||
|
||||
// {3}: Darksteel Brute becomes a 2/2 Beast artifact creature until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(
|
||||
this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect(
|
||||
new CreatureToken(2, 2, "2/2 Beast artifact creature")
|
||||
.withSubType(SubType.BEAST)
|
||||
.withType(CardType.ARTIFACT),
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class DarksteelPendant extends CardImpl {
|
|||
// Darksteel Pendant is indestructible.
|
||||
this.addAbility(IndestructibleAbility.getInstance());
|
||||
// {1}, {tap}: Scry 1.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ScryEffect(1), new GenericManaCost(1));
|
||||
Ability ability = new SimpleActivatedAbility(new ScryEffect(1), new GenericManaCost(1));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class DartingMerfolk extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {U}: Return Darting Merfolk 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 DartingMerfolk(final DartingMerfolk card) {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class DaruHealer extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {tap}: Prevent the next 1 damage that would be dealt to any target this turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventDamageToTargetEffect(Duration.EndOfTurn, 1), new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(new PreventDamageToTargetEffect(Duration.EndOfTurn, 1), new TapSourceCost());
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class DaruStinger extends CardImpl {
|
|||
// Amplify 1
|
||||
this.addAbility(new AmplifyAbility(AmplifyEffect.AmplifyFactor.Amplify1));
|
||||
// {tap}: Daru Stinger deals damage equal to the number of +1/+1 counters on it to target attacking or blocking creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(new CountersSourceCount(CounterType.P1P1))
|
||||
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(new CountersSourceCount(CounterType.P1P1))
|
||||
.setText("{this} deals damage equal to the number of +1/+1 counters on it to target attacking or blocking creature"), new TapSourceCost());
|
||||
ability.addTarget(new TargetAttackingOrBlockingCreature());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public final class DaughterOfAutumn extends CardImpl {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
// {W}: The next 1 damage that would be dealt to target white creature this turn is dealt to Daughter of Autumn instead.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DaughterOfAutumnPreventDamageTargetEffect(Duration.EndOfTurn, 1), new ManaCostsImpl<>("{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(new DaughterOfAutumnPreventDamageTargetEffect(Duration.EndOfTurn, 1), new ManaCostsImpl<>("{W}"));
|
||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class DauntlessBodyguard extends CardImpl {
|
|||
this.addAbility(new AsEntersBattlefieldAbility(new ChooseCreatureEffect()));
|
||||
|
||||
// Sacrifice Dauntless Bodyguard: The chosen creature gains indestructible until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DauntlessBodyguardGainAbilityEffect(), new SacrificeSourceCost()));
|
||||
this.addAbility(new SimpleActivatedAbility(new DauntlessBodyguardGainAbilityEffect(), new SacrificeSourceCost()));
|
||||
}
|
||||
|
||||
private DauntlessBodyguard(final DauntlessBodyguard card) {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class DauntlessRiverMarshal extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(new BoostSourceWhileControlsEffect(filter, 1, 1)));
|
||||
|
||||
// {3}{U}: Tap target creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl<>("{3}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(new TapTargetEffect(), new ManaCostsImpl<>("{3}{U}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class DauthiCutthroat extends CardImpl {
|
|||
// Shadow
|
||||
this.addAbility(ShadowAbility.getInstance());
|
||||
// {1}{B}, {tap}: Destroy target creature with shadow.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{1}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new ManaCostsImpl<>("{1}{B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class DauthiEmbrace extends CardImpl {
|
|||
|
||||
|
||||
// {B}{B}: Target creature gains shadow until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(ShadowAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{B}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(new GainAbilityTargetEffect(ShadowAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{B}{B}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class DauthiJackal extends CardImpl {
|
|||
this.addAbility(ShadowAbility.getInstance());
|
||||
|
||||
// {B}{B}, Sacrifice Dauthi Jackal: Destroy target blocking creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{B}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new ManaCostsImpl<>("{B}{B}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent(new FilterBlockingCreature()));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class DauthiMercenary extends CardImpl {
|
|||
// Shadow
|
||||
this.addAbility(ShadowAbility.getInstance());
|
||||
// {1}{B}: Dauthi Mercenary gets +1/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{B}")));
|
||||
}
|
||||
|
||||
private DauthiMercenary(final DauthiMercenary card) {
|
||||
|
|
@ -43,4 +43,4 @@ public final class DauthiMercenary extends CardImpl {
|
|||
public DauthiMercenary copy() {
|
||||
return new DauthiMercenary(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class DauthiTrapper extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {tap}: Target creature gains shadow until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(ShadowAbility.getInstance(), Duration.EndOfTurn), new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(new GainAbilityTargetEffect(ShadowAbility.getInstance(), Duration.EndOfTurn), new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class DawnrayArcher extends CardImpl {
|
|||
// Exalted
|
||||
this.addAbility(new ExaltedAbility());
|
||||
// {W}, {tap}: Dawnray Archer deals 1 damage to target attacking or blocking creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl<>("{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(1), new ManaCostsImpl<>("{W}"));
|
||||
ability.addTarget(new TargetAttackingOrBlockingCreature());
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class Dawnstrider extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {G}, {tap}, Discard a card: Prevent all combat damage that would be dealt this turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventAllDamageByAllPermanentsEffect(Duration.EndOfTurn, true), new ManaCostsImpl<>("{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(new PreventAllDamageByAllPermanentsEffect(Duration.EndOfTurn, true), new ManaCostsImpl<>("{G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new DiscardTargetCost(new TargetCardInHand()));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class DaxosTheReturned extends CardImpl {
|
|||
|
||||
// {1}{W}{B}: Create a white and black Spirit enchantment creature token. It has
|
||||
// "This creature's power and toughness are each equal to the number of experience counters you have."
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new DaxosSpiritToken(), 1), new ManaCostsImpl<>("{1}{W}{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new CreateTokenEffect(new DaxosSpiritToken(), 1), new ManaCostsImpl<>("{1}{W}{B}")));
|
||||
}
|
||||
|
||||
private DaxosTheReturned(final DaxosTheReturned card) {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public final class DaybreakRanger extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {tap}: Daybreak Ranger deals 2 damage to target creature with flying.
|
||||
Ability activatedAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new TapSourceCost());
|
||||
Ability activatedAbility = new SimpleActivatedAbility(new DamageTargetEffect(2), new TapSourceCost());
|
||||
activatedAbility.addTarget(new TargetCreaturePermanent(filter));
|
||||
this.addAbility(activatedAbility);
|
||||
// At the beginning of each upkeep, if no spells were cast last turn, transform Daybreak Ranger.
|
||||
|
|
@ -59,4 +59,4 @@ public final class DaybreakRanger extends CardImpl {
|
|||
public DaybreakRanger copy() {
|
||||
return new DaybreakRanger(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class DazzlingRamparts extends CardImpl {
|
|||
this.addAbility(DefenderAbility.getInstance());
|
||||
|
||||
// {1}{W}, {T}: Tap target creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl<>("{1}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(new TapTargetEffect(), new ManaCostsImpl<>("{1}{W}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class Deadapult extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{R}");
|
||||
|
||||
// {R}, Sacrifice a Zombie: Deadapult deals 2 damage to any target.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl<>("{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(2), new ManaCostsImpl<>("{R}"));
|
||||
ability.addCost(new SacrificeTargetCost(filter));
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class DeadeyeNavigator extends CardImpl {
|
|||
this.addAbility(new SoulbondAbility());
|
||||
|
||||
// As long as Deadeye Navigator is paired with another creature, each of those creatures has "{1}{U}: Exile this creature, then return it to the battlefield under your control."
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileSourceEffect(true), new ManaCostsImpl<>("{1}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(new ExileSourceEffect(true), new ManaCostsImpl<>("{1}{U}"));
|
||||
ability.addEffect(new ReturnToBattlefieldUnderYourControlSourceEffect());
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityPairedEffect(ability, ruleText)));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class DeadeyePlunderers extends CardImpl {
|
|||
).addHint(ArtifactYouControlHint.instance));
|
||||
|
||||
// {2}{U}{B}: Create a colorless artifact token named Treasure with "{T}, Sacrifice this artifact: Add one mana of any color."
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new TreasureToken()), new ManaCostsImpl<>("{2}{U}{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new CreateTokenEffect(new TreasureToken()), new ManaCostsImpl<>("{2}{U}{B}")));
|
||||
}
|
||||
|
||||
private DeadeyePlunderers(final DeadeyePlunderers card) {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class DeadeyeTracker extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {1}{B}, {T}: Exile two target cards from an opponent's graveyard. Deadeye Tracker explores.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(new ExileTargetEffect(), new TapSourceCost());
|
||||
ability.addCost(new ManaCostsImpl<>("{1}{B}"));
|
||||
Effect effect = new ExploreSourceEffect(true, "{this}");
|
||||
ability.addEffect(effect);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class DeadlockTrap extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldTriggeredAbility(new GetEnergyCountersControllerEffect(2)));
|
||||
|
||||
// {t}, Pay {E}: Tap target creature or planeswalker. Its activated abilities can't be activated this turn.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new TapSourceCost());
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(new TapTargetEffect(), new TapSourceCost());
|
||||
ability.addCost(new PayEnergyCost(1));
|
||||
ability.addTarget(new TargetCreatureOrPlaneswalker());
|
||||
ability.addEffect(new DeadlockTrapCantActivateEffect());
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class DeadlyDesigns extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{B}");
|
||||
|
||||
// {2}: Put a plot counter on Deadly Designs. Any player may activate this ability.
|
||||
SimpleActivatedAbility activatedAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.PLOT.createInstance()), new GenericManaCost(2));
|
||||
SimpleActivatedAbility activatedAbility = new SimpleActivatedAbility(new AddCountersSourceEffect(CounterType.PLOT.createInstance()), new GenericManaCost(2));
|
||||
activatedAbility.setMayActivate(TargetController.ANY);
|
||||
activatedAbility.addEffect(new InfoEffect("Any player may activate this ability"));
|
||||
this.addAbility(activatedAbility);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class DealBroker extends CardImpl {
|
|||
+ "Each other player may offer you one card in their card pool in exchange. You may accept any one offer - not implemented.")));
|
||||
|
||||
// {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()));
|
||||
}
|
||||
|
||||
private DealBroker(final DealBroker card) {
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ public final class DeathHoodCobra extends CardImpl {
|
|||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(ReachAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}{G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}{G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new GainAbilitySourceEffect(ReachAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}{G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new GainAbilitySourceEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}{G}")));
|
||||
}
|
||||
|
||||
private DeathHoodCobra(final DeathHoodCobra card) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class DeathbellowRaider extends CardImpl {
|
|||
this.addAbility(new AttacksEachCombatStaticAbility());
|
||||
|
||||
// {2}{B}: Regenerate Deathbellow Raider.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{2}{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl<>("{2}{B}")));
|
||||
}
|
||||
|
||||
private DeathbellowRaider(final DeathbellowRaider card) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class Deathgrip extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{B}{B}");
|
||||
|
||||
// {B}{B}: Counter target green spell.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new ManaCostsImpl<>("{B}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(new CounterTargetEffect(), new ManaCostsImpl<>("{B}{B}"));
|
||||
ability.addTarget(new TargetSpell(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class DeathknellKami extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// {2}: Deathknell Kami gets +1/+1 until end of turn. Sacrifice it at the beginning of the next end step.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1,1,Duration.EndOfTurn), new GenericManaCost(2));
|
||||
Ability ability = new SimpleActivatedAbility(new BoostSourceEffect(1,1,Duration.EndOfTurn), new GenericManaCost(2));
|
||||
ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new AtTheBeginOfNextEndStepDelayedTriggeredAbility(new SacrificeSourceEffect(), TargetController.ANY)));
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public final class DeathriteShaman extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {T}: Exile target land card from a graveyard. Add one mana of any color.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(new ExileTargetEffect(), new TapSourceCost());
|
||||
// Because this is no mana ability, this mana will not be calculated during available mana calculation
|
||||
ability.addEffect(new AddManaOfAnyColorEffect(1, new LimitedDynamicValue(1,
|
||||
new CardsInControllerGraveyardCount(StaticFilters.FILTER_CARD_LAND)), false));
|
||||
|
|
@ -55,14 +55,14 @@ public final class DeathriteShaman extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// {B}, {T}: Exile target instant or sorcery card from a graveyard. Each opponent loses 2 life.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl<>("{B}"));
|
||||
ability = new SimpleActivatedAbility(new ExileTargetEffect(), new ManaCostsImpl<>("{B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addEffect(new LoseLifeOpponentsEffect(2));
|
||||
ability.addTarget(new TargetCardInGraveyard(filter));
|
||||
this.addAbility(ability);
|
||||
|
||||
// {G}, {T}: Exile target creature card from a graveyard. You gain 2 life.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl<>("{G}"));
|
||||
ability = new SimpleActivatedAbility(new ExileTargetEffect(), new ManaCostsImpl<>("{G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addEffect(new GainLifeEffect(2));
|
||||
ability.addTarget(new TargetCardInGraveyard(StaticFilters.FILTER_CARD_CREATURE_A_GRAVEYARD));
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class DeathsporeThallid extends CardImpl {
|
|||
new CreateTokenEffect(new SaprolingToken()),
|
||||
new RemoveCountersSourceCost(CounterType.SPORE.createInstance(3))));
|
||||
// Sacrifice a Saproling: Target creature gets -1/-1 until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new BoostTargetEffect(-1,-1, Duration.EndOfTurn),
|
||||
new SacrificeTargetCost(filter));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class DebtorsPulpit extends CardImpl {
|
|||
|
||||
|
||||
// Enchanted land has "{T}: Tap target creature."
|
||||
Ability gainAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new TapSourceCost());
|
||||
Ability gainAbility = new SimpleActivatedAbility(new TapTargetEffect(), new TapSourceCost());
|
||||
gainAbility.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(gainAbility, AttachmentType.AURA,
|
||||
Duration.WhileOnBattlefield, "Enchanted land has \"{T}: Tap target creature.\"")));
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class DecimatorWeb extends CardImpl {
|
|||
|
||||
public DecimatorWeb (UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{4}");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeTargetEffect(2), new ManaCostsImpl<>("{4}"));
|
||||
Ability ability = new SimpleActivatedAbility(new LoseLifeTargetEffect(2), new ManaCostsImpl<>("{4}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addEffect(new AddCountersTargetEffect(CounterType.POISON.createInstance())
|
||||
.setText(", gets a poison counter"));
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class DeclarationOfNaught extends CardImpl {
|
|||
this.addAbility(new AsEntersBattlefieldAbility(new ChooseACardNameEffect(ChooseACardNameEffect.TypeOfName.ALL)));
|
||||
|
||||
// {U}: Counter target spell with the chosen name.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new ManaCostsImpl<>("{U}"));
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(new CounterTargetEffect(), new ManaCostsImpl<>("{U}"));
|
||||
ability.setTargetAdjuster(DeclarationOfNaughtAdjuster.instance);
|
||||
ability.addTarget(new TargetSpell(filter));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class DecoctionModule extends CardImpl {
|
|||
);
|
||||
|
||||
// {4}, {T}: Return target creature you control to its owner's hand.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new GenericManaCost(4));
|
||||
Ability ability = new SimpleActivatedAbility(new ReturnToHandTargetEffect(), new GenericManaCost(4));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetControlledCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class DecoratedGriffin extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {1}{W}: Prevent the next 1 combat damage that would be dealt to you this turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventDamageToControllerEffect(Duration.EndOfTurn, true, true, 1), new ManaCostsImpl<>("{1}{W}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new PreventDamageToControllerEffect(Duration.EndOfTurn, true, true, 1), new ManaCostsImpl<>("{1}{W}")));
|
||||
}
|
||||
|
||||
private DecoratedGriffin(final DecoratedGriffin card) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class DedicatedMartyr extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {W}, Sacrifice Dedicated Martyr: You gain 3 life.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(3), new ColoredManaCost(ColoredManaSymbol.W));
|
||||
Ability ability = new SimpleActivatedAbility(new GainLifeEffect(3), new ColoredManaCost(ColoredManaSymbol.W));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class DeepSpawn extends CardImpl {
|
|||
effect.setText("sacrifice {this} unless you mill two cards");
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(effect));
|
||||
// {U}: Deep Spawn gains shroud until end of turn and doesn't untap during your next untap step. Tap Deep Spawn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(
|
||||
Ability ability = new SimpleActivatedAbility(new GainAbilitySourceEffect(
|
||||
ShroudAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{U}"));
|
||||
effect = new DontUntapInControllersNextUntapStepSourceEffect();
|
||||
effect.setText("and doesn't untap during your next untap step");
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class DeepfathomSkulker extends CardImpl {
|
|||
this.addAbility(new DeepfathomSkulkerTriggeredAbility());
|
||||
|
||||
// {3}{C}: Target creature can't be blocked this turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(), new ManaCostsImpl<>("{3}{C}"));
|
||||
Ability ability = new SimpleActivatedAbility(new CantBeBlockedTargetEffect(), new ManaCostsImpl<>("{3}{C}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class DeepfireElemental extends CardImpl {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
// {X}{X}{1}: Destroy target artifact or creature with converted mana cost X.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{X}{X}{1}"));
|
||||
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new ManaCostsImpl<>("{X}{X}{1}"));
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
ability.setTargetAdjuster(new XManaValueTargetAdjuster());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class DeeptreadMerrow extends CardImpl {
|
|||
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(1);
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(
|
||||
this.addAbility(new SimpleActivatedAbility(new GainAbilitySourceEffect(
|
||||
new IslandwalkAbility(), Duration.EndOfTurn)
|
||||
.setText("{this} gains islandwalk until end of turn"),
|
||||
new ColoredManaCost(ColoredManaSymbol.U)));
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class DeepwoodDrummer extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {G}, {tap}, Discard a card: Target creature gets +2/+2 until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl<>("{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl<>("{G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new DiscardCardCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class DeepwoodGhoul extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// Pay 2 life: Regenerate Deepwood Ghoul.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new PayLifeCost(2)));
|
||||
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new PayLifeCost(2)));
|
||||
}
|
||||
|
||||
private DeepwoodGhoul(final DeepwoodGhoul card) {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public final class DeepwoodLegate extends CardImpl {
|
|||
this.addAbility(new AlternativeCostSourceAbility(null, condition));
|
||||
|
||||
// {B}: Deepwood Legate 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 DeepwoodLegate(final DeepwoodLegate card) {
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class DefenderEnVec extends CardImpl {
|
|||
this.addAbility(new FadingAbility(4, this));
|
||||
|
||||
// Remove a fade counter from Defender en-Vec: Prevent the next 2 damage that would be dealt to any target this turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new PreventDamageToTargetEffect(Duration.EndOfTurn, 2), new RemoveCountersSourceCost(CounterType.FADE.createInstance()));
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class DefilingTears extends CardImpl {
|
|||
effect.setText(", gets +1/-1");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
|
||||
effect = new GainAbilityTargetEffect(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")), Duration.EndOfTurn);
|
||||
effect = new GainAbilityTargetEffect(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")), Duration.EndOfTurn);
|
||||
effect.setText(", and gains \"{B}: Regenerate this creature.\"");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class DeftbladeElite extends CardImpl {
|
|||
// {1}{W}: Prevent all combat damage that would be dealt to and dealt by Deftblade Elite this turn.
|
||||
Effect effect = new PreventCombatDamageToSourceEffect(Duration.EndOfTurn);
|
||||
effect.setText("Prevent all combat damage that would be dealt to");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{1}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl<>("{1}{W}"));
|
||||
effect = new PreventCombatDamageBySourceEffect(Duration.EndOfTurn);
|
||||
effect.setText("and dealt by {this} this turn");
|
||||
ability.addEffect(effect);
|
||||
|
|
|
|||
|
|
@ -30,11 +30,11 @@ public final class DegaDisciple extends CardImpl {
|
|||
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
Ability firstAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-2, 0, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.B));
|
||||
Ability firstAbility = new SimpleActivatedAbility(new BoostTargetEffect(-2, 0, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.B));
|
||||
firstAbility.addCost(new TapSourceCost());
|
||||
firstAbility.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(firstAbility);
|
||||
Ability secondAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2, 0, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.R));
|
||||
Ability secondAbility = new SimpleActivatedAbility(new BoostTargetEffect(2, 0, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.R));
|
||||
secondAbility.addCost(new TapSourceCost());
|
||||
secondAbility.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(secondAbility);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public final class Degavolver extends CardImpl {
|
|||
new AddCountersSourceEffect(CounterType.P1P1.createInstance(2),false),
|
||||
new KickedCostCondition("{1}{B}"), "If Degavolver was kicked with its {1}{B} kicker, it enters with two +1/+1 counters on it and with \"Pay 3 life: Regenerate Degavolver.\"",
|
||||
"{this} enters with two +1/+1 counters on it and with \"Pay 3 life: Regenerate Degavolver.\"");
|
||||
((EntersBattlefieldEffect)ability1.getEffects().get(0)).addEffect(new GainAbilitySourceEffect(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new PayLifeCost(3)), Duration.WhileOnBattlefield));
|
||||
((EntersBattlefieldEffect)ability1.getEffects().get(0)).addEffect(new GainAbilitySourceEffect(new SimpleActivatedAbility(new RegenerateSourceEffect(), new PayLifeCost(3)), Duration.WhileOnBattlefield));
|
||||
this.addAbility(ability1);
|
||||
|
||||
// If Degavolver was kicked with its {R} kicker, it enters with a +1/+1 counter on it and with first strike.
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public final class DeityOfScars extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.M1M1.createInstance(2)), "with two -1/-1 counters on it"));
|
||||
|
||||
// {B/G}, Remove a -1/-1 counter from Deity of Scars: Regenerate Deity of Scars.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B/G}"));
|
||||
Ability ability = new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl<>("{B/G}"));
|
||||
ability.addCost(new RemoveCountersSourceCost(CounterType.M1M1.createInstance()));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class DementiaBat extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(2), new ManaCostsImpl<>("{4}{B}"));
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(new DiscardTargetEffect(2), new ManaCostsImpl<>("{4}{B}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetPlayer());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ public final class DemonOfDarkSchemes extends CardImpl {
|
|||
// {2}{B}, Pay {E}{E}{E}{E}: Put target creature card from a graveyard onto the battlefield under your control tapped.
|
||||
effect = new ReturnFromGraveyardToBattlefieldTargetEffect(true);
|
||||
effect.setText("Put target creature card from a graveyard onto the battlefield under your control tapped");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{2}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl<>("{2}{B}"));
|
||||
ability.addCost(new PayEnergyCost(4));
|
||||
ability.addTarget(new TargetCardInGraveyard(StaticFilters.FILTER_CARD_CREATURE_A_GRAVEYARD));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class DemonicHordes extends CardImpl {
|
|||
this.toughness = new MageInt(5);
|
||||
|
||||
// {tap}: Destroy target land.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new TapSourceCost());
|
||||
ability.addTarget(new TargetPermanent(new FilterLandPermanent()));
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class DemonspineWhip extends CardImpl {
|
|||
this.subtype.add(SubType.EQUIPMENT);
|
||||
|
||||
// {X}: Equipped creature gets +X/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(new XPaid(), StaticValue.get(0), Duration.EndOfTurn), new ManaCostsImpl<>("{X}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new BoostEquippedEffect(new XPaid(), StaticValue.get(0), Duration.EndOfTurn), new ManaCostsImpl<>("{X}")));
|
||||
|
||||
// Equip {1}
|
||||
this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(1), false));
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public final class DenOfTheBugbear extends CardImpl {
|
|||
new CreateTokenEffect(new GoblinToken(), 1, true, true), false,
|
||||
"Whenever this creature attacks, create a 1/1 red Goblin creature token that's tapped and attacking."
|
||||
);
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(
|
||||
this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect(
|
||||
new CreatureToken(3, 2, "3/2 red Goblin creature with \"Whenever this creature attacks, create a 1/1 red Goblin creature token that's tapped and attacking.\"")
|
||||
.withColor("R")
|
||||
.withSubType(SubType.GOBLIN)
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class DesertedTemple extends CardImpl {
|
|||
// {tap}: Add {C}.
|
||||
this.addAbility(new ColorlessManaAbility());
|
||||
// {1}, {tap}: Untap target land.
|
||||
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 TargetLandPermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class DesertersQuarters extends CardImpl {
|
|||
this.addAbility(new SkipUntapOptionalAbility());
|
||||
|
||||
// {6}, T: Tap target creature. It doesn't untap during its controller's untap step for as long as Deserter's Quarters remains tapped.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new GenericManaCost(6));
|
||||
Ability ability = new SimpleActivatedAbility(new TapTargetEffect(), new GenericManaCost(6));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
ability.addEffect(new DontUntapAsLongAsSourceTappedEffect());
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class DespoticScepter extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{1}");
|
||||
|
||||
// {tap}: Destroy target permanent you own. It can't be regenerated.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(true), new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(true), new TapSourceCost());
|
||||
ability.addTarget(new TargetPermanent(FILTER));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class DeviantGlee extends CardImpl {
|
|||
|
||||
// Enchanted creature gets +2/+1 and has "{R}: This creature gains trample until end of turn."
|
||||
SimpleStaticAbility ability2 = new SimpleStaticAbility(new BoostEnchantedEffect(2, 1, Duration.WhileOnBattlefield));
|
||||
Ability gainedAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(TrampleAbility.getInstance(),Duration.EndOfTurn),new ManaCostsImpl<>("{R}"));
|
||||
Ability gainedAbility = new SimpleActivatedAbility(new GainAbilitySourceEffect(TrampleAbility.getInstance(),Duration.EndOfTurn),new ManaCostsImpl<>("{R}"));
|
||||
ability2.addEffect(new GainAbilityAttachedEffect(gainedAbility, AttachmentType.AURA, Duration.WhileOnBattlefield, rule));
|
||||
this.addAbility(ability2);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class DevotedCaretaker extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {W}, {tap}: Target permanent you control gains protection from instant spells and from sorcery spells until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(new ProtectionAbility(filter), Duration.EndOfTurn), new ManaCostsImpl<>("{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(new GainAbilityTargetEffect(new ProtectionAbility(filter), Duration.EndOfTurn), new ManaCostsImpl<>("{W}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
Target target = new TargetControlledPermanent();
|
||||
ability.addTarget(target);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class DevotedDruid extends CardImpl {
|
|||
// {tap}: Add {G}.
|
||||
this.addAbility(new GreenManaAbility());
|
||||
// Put a -1/-1 counter on Devoted Druid: Untap Devoted Druid.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapSourceEffect(), new PutCountersSourceCost(CounterType.M1M1.createInstance())));
|
||||
this.addAbility(new SimpleActivatedAbility(new UntapSourceEffect(), new PutCountersSourceCost(CounterType.M1M1.createInstance())));
|
||||
}
|
||||
|
||||
private DevotedDruid(final DevotedDruid card) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class DevoteeOfStrength extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {4}{G}: Target creature gets +2/+2 until end of turn.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2,2,Duration.EndOfTurn), new ManaCostsImpl<>("{4}{G}"));
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(new BoostTargetEffect(2,2,Duration.EndOfTurn), new ManaCostsImpl<>("{4}{G}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class DevouringStrossus extends CardImpl {
|
|||
);
|
||||
this.addAbility(ability);
|
||||
// Sacrifice a creature: Regenerate Devouring Strossus.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(),
|
||||
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(),
|
||||
new SacrificeTargetCost(StaticFilters.FILTER_PERMANENT_CREATURE)));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class DevouringSwarm extends CardImpl {
|
|||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(1);
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn),
|
||||
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(1, 1, Duration.EndOfTurn),
|
||||
new SacrificeTargetCost(StaticFilters.FILTER_PERMANENT_CREATURE)));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class DevoutChaplain extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {T}, Tap two untapped Humans you control: Exile target artifact or enchantment.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(new ExileTargetEffect(), new TapSourceCost());
|
||||
ability.addCost(new TapTargetCost(new TargetControlledPermanent(2, 2, humanFilter, false)));
|
||||
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class DevoutHarpist extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {tap}: Destroy target Aura attached to a creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new TapSourceCost());
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class DevoutWitness extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {1}{W}, {tap}, Discard a card: Destroy target artifact or enchantment.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{1}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new ManaCostsImpl<>("{1}{W}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new DiscardCardCost());
|
||||
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class DiabolicMachine extends CardImpl {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
// {3}: Regenerate Diabolic Machine.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new GenericManaCost(3)));
|
||||
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new GenericManaCost(3)));
|
||||
}
|
||||
|
||||
private DiabolicMachine(final DiabolicMachine card) {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public final class DiamondFaerie extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {1}{S}: Snow creatures you control get +1/+1 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1,
|
||||
this.addAbility(new SimpleActivatedAbility(new BoostControlledEffect(1, 1,
|
||||
Duration.EndOfTurn, filter), new ManaCostsImpl<>("{1}{S}")));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class DiamondKaleidoscope extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}");
|
||||
|
||||
// {3}, {tap}: Create a 0/1 colorless Prism artifact creature token.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new PrismToken(), 1), new GenericManaCost(3));
|
||||
Ability ability = new SimpleActivatedAbility(new CreateTokenEffect(new PrismToken(), 1), new GenericManaCost(3));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class DiamondValley extends CardImpl {
|
|||
|
||||
Effect effect = new GainLifeEffect(SacrificeCostCreaturesToughness.instance);
|
||||
effect.setText("You gain life equal to the sacrificed creature's toughness");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(effect, new TapSourceCost());
|
||||
ability.addCost(new SacrificeTargetCost(StaticFilters.FILTER_PERMANENT_CREATURE));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class Didgeridoo extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{1}");
|
||||
|
||||
// {3}: You may put a Minotaur permanent card from your hand onto the battlefield.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutCardFromHandOntoBattlefieldEffect(filter), new ManaCostsImpl<>("{3}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new PutCardFromHandOntoBattlefieldEffect(filter), new ManaCostsImpl<>("{3}")));
|
||||
}
|
||||
|
||||
private Didgeridoo(final Didgeridoo card) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class DiligentFarmhand extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {1}{G}, Sacrifice Diligent Farmhand: Search your library for a basic land card and put that card onto the battlefield tapped. Then shuffle your library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true), new ManaCostsImpl<>("{1}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true), new ManaCostsImpl<>("{1}{G}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
// If Diligent Farmhand is in a graveyard, effects from spells named Muscle Burst count it as a card named Muscle Burst.
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class DimirCluestone extends CardImpl {
|
|||
this.addAbility(new BlackManaAbility());
|
||||
|
||||
// {U}{B}, {T}, Sacrifice Dimir Cluestone: Draw a card.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{U}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{U}{B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class DimirDoppelganger extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {1}{U}{B}: Exile target creature card from a graveyard. Dimir Doppelganger becomes a copy of that card, except it has this ability.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DimirDoppelgangerEffect(), new ManaCostsImpl<>("{1}{U}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(new DimirDoppelgangerEffect(), new ManaCostsImpl<>("{1}{U}{B}"));
|
||||
ability.addTarget(new TargetCardInGraveyard(new FilterCreatureCard("creature card in a graveyard")));
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
@ -101,7 +101,7 @@ class DimirDoppelgangerCopyApplier extends CopyApplier {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, MageObject blueprint, Ability source, UUID copyToObjectId) {
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DimirDoppelgangerEffect(), new ManaCostsImpl<>("{1}{U}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(new DimirDoppelgangerEffect(), new ManaCostsImpl<>("{1}{U}{B}"));
|
||||
ability.addTarget(new TargetCardInGraveyard(new FilterCreatureCard("creature card in a graveyard")));
|
||||
blueprint.getAbilities().add(ability);
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class DimirHouseGuard extends CardImpl {
|
|||
|
||||
this.addAbility(FearAbility.getInstance());
|
||||
// Sacrifice a creature: Regenerate Dimir House Guard.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(),
|
||||
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(),
|
||||
new SacrificeTargetCost(StaticFilters.FILTER_PERMANENT_CREATURE)));
|
||||
// Transmute {1}{B}{B}
|
||||
this.addAbility(new TransmuteAbility("{1}{B}{B}"));
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class DimirKeyrune extends CardImpl {
|
|||
this.addAbility(new BlackManaAbility());
|
||||
|
||||
// {U}{B}: Dimir Keyrune becomes a 2/2 blue and black Horror and can't be blocked this turn
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(
|
||||
this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect(
|
||||
new CreatureToken(2, 2, "2/2 blue and black Horror creature that can't be blocked")
|
||||
.withColor("UB")
|
||||
.withSubType(SubType.HORROR)
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class DiplomaticEscort extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {U}, {tap}, Discard a card: Counter target spell or ability that targets a creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new ManaCostsImpl<>("{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(new CounterTargetEffect(), new ManaCostsImpl<>("{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new DiscardCardCost());
|
||||
ability.addTarget(new TargetStackObject(filter));
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class DirtwaterWraith extends CardImpl {
|
|||
this.addAbility(new SwampwalkAbility());
|
||||
|
||||
// {B}: Dirtwater Wraith gets +1/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{B}")));
|
||||
}
|
||||
|
||||
private DirtwaterWraith(final DirtwaterWraith card) {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public final class Disappear extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// {U}: Return enchanted creature and Disappear to their owners' hands.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DisappearEffect(), new ManaCostsImpl<>("{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new DisappearEffect(), new ManaCostsImpl<>("{U}")));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class DiscipleOfGriselbrand extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {1}, Sacrifice a creature: You gain life equal to the sacrificed creature's toughness.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DiscipleOfGriselbrandEffect(), new GenericManaCost(1));
|
||||
Ability ability = new SimpleActivatedAbility(new DiscipleOfGriselbrandEffect(), new GenericManaCost(1));
|
||||
ability.addCost(new SacrificeTargetCost(StaticFilters.FILTER_PERMANENT_CREATURE));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class DiscipleOfKangee extends CardImpl {
|
|||
// {U}, {T}: Target creature gains flying and becomes blue until end of turn.
|
||||
Effect effect = new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn);
|
||||
effect.setText("Target creature gains flying");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl<>("{U}"));
|
||||
effect = new BecomesColorTargetEffect(ObjectColor.BLUE, Duration.EndOfTurn);
|
||||
effect.setText("and becomes blue until end of turn.");
|
||||
ability.addEffect(effect);
|
||||
|
|
|
|||
|
|
@ -31,11 +31,11 @@ public final class DiscipleOfTeveshSzat extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {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);
|
||||
// {4}{B}{B}, {tap}, Sacrifice Disciple of Tevesh Szat: Target creature gets -6/-6 until end of turn.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-6, -6, Duration.EndOfTurn), new ManaCostsImpl<>("{4}{B}{B}"));
|
||||
ability = new SimpleActivatedAbility(new BoostTargetEffect(-6, -6, Duration.EndOfTurn), new ManaCostsImpl<>("{4}{B}{B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class DiscipleOfTheOldWays extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {R}: Disciple of the Old Ways gains first strike until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{R}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{R}")));
|
||||
}
|
||||
|
||||
private DiscipleOfTheOldWays(final DiscipleOfTheOldWays card) {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class DiscipleOfTheRing extends CardImpl {
|
|||
|
||||
// {1}, Exile an instant or sorcery card from your graveyard:
|
||||
// Choose one - Counter target noncreature spell unless its controller pay {2};
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterUnlessPaysEffect(new GenericManaCost(2)), new GenericManaCost(1));
|
||||
Ability ability = new SimpleActivatedAbility(new CounterUnlessPaysEffect(new GenericManaCost(2)), new GenericManaCost(1));
|
||||
ability.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(1, new FilterInstantOrSorceryCard("an instant or sorcery card from your graveyard"))));
|
||||
ability.addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_NON_CREATURE));
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class DispellersCapsule extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{W}");
|
||||
|
||||
// {2}{W}, {T}, Sacrifice Dispeller's Capsule: Destroy target artifact or enchantment.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{2}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new ManaCostsImpl<>("{2}{W}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue