refactor: SimpleActivatedAbility default zone (cards K)

This commit is contained in:
xenohedron 2024-11-16 22:28:28 -05:00
parent 2682342990
commit 1e4f68af05
95 changed files with 105 additions and 105 deletions

View file

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

View file

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

View file

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

View file

@ -31,7 +31,7 @@ public final class KamahlPitFighter extends CardImpl {
this.power = new MageInt(6);
this.toughness = new MageInt(1);
this.addAbility(HasteAbility.getInstance());
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

@ -27,7 +27,7 @@ public final class KamiOfAncientLaw extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(2);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new SacrificeSourceCost());
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new SacrificeSourceCost());
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

@ -28,7 +28,7 @@ public final class KamiOfFalseHope extends CardImpl {
this.toughness = new MageInt(1);
// Sacrifice Kami of False Hope: Prevent all combat damage that would be dealt this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventAllDamageByAllPermanentsEffect(Duration.EndOfTurn, true), new SacrificeSourceCost());
Ability ability = new SimpleActivatedAbility(new PreventAllDamageByAllPermanentsEffect(Duration.EndOfTurn, true), new SacrificeSourceCost());
this.addAbility(ability);
}

View file

@ -26,7 +26,7 @@ public final class KamiOfTwistedReflection extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(2);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new SacrificeSourceCost());
Ability ability = new SimpleActivatedAbility(new ReturnToHandTargetEffect(), new SacrificeSourceCost());
ability.addTarget(new TargetControlledCreaturePermanent());
this.addAbility(ability);
}

View file

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

View file

@ -33,7 +33,7 @@ public final class Karakas extends CardImpl {
// {T}: Add {W}.
this.addAbility(new WhiteManaAbility());
// {T}: Return target legendary creature to its owner's hand.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new ReturnToHandTargetEffect(), new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);
}

View file

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

View file

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

View file

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

View file

@ -27,7 +27,7 @@ public final class KarplusanYeti extends CardImpl {
this.toughness = new MageInt(3);
// {T}: Karplusan Yeti deals damage equal to its power to target creature. That creature deals damage equal to its power to Karplusan Yeti.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageEachOtherEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new DamageEachOtherEffect(), new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

View file

@ -31,7 +31,7 @@ public final class KasetoOrochiArchmage extends CardImpl {
this.toughness = new MageInt(2);
// {G}{U}: Target creature can't be blocked this turn. If that creature is a Snake, it gets +2/+2 until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new KasetoEffect(), new ManaCostsImpl<>("{G}{U}"));
Ability ability = new SimpleActivatedAbility(new KasetoEffect(), new ManaCostsImpl<>("{G}{U}"));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

View file

@ -36,7 +36,7 @@ public final class KashiTribeReaver extends CardImpl {
ability.addEffect(new DontUntapInControllersNextUntapStepTargetEffect("and it"));
this.addAbility(ability);
// {1}{G}: Regenerate Kashi-Tribe Reaver.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{G}")));
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{G}")));
}
private KashiTribeReaver(final KashiTribeReaver card) {
@ -47,4 +47,4 @@ public final class KashiTribeReaver extends CardImpl {
public KashiTribeReaver copy() {
return new KashiTribeReaver(this);
}
}
}

View file

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

View file

@ -31,7 +31,7 @@ public final class KavuChameleon extends CardImpl {
// Kavu Chameleon can't be countered.
this.addAbility(new SimpleStaticAbility(Zone.STACK, new CantBeCounteredSourceEffect()));
// {G}: Kavu Chameleon becomes the color of your choice until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesColorSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{G}")));
this.addAbility(new SimpleActivatedAbility(new BecomesColorSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{G}")));
}
private KavuChameleon(final KavuChameleon card) {

View file

@ -24,8 +24,8 @@ public final class KavuGlider extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(1);
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0, 1, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.W)));
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.U)));
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(0, 1, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.W)));
this.addAbility(new SimpleActivatedAbility(new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.U)));
}
private KavuGlider(final KavuGlider card) {

View file

@ -29,7 +29,7 @@ public final class KavuRecluse extends CardImpl {
this.toughness = new MageInt(2);
// {T}: Target land becomes a Forest until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesBasicLandTargetEffect(Duration.EndOfTurn, SubType.FOREST), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new BecomesBasicLandTargetEffect(Duration.EndOfTurn, SubType.FOREST), new TapSourceCost());
ability.addTarget(new TargetLandPermanent());
this.addAbility(ability);
}

View file

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

View file

@ -27,7 +27,7 @@ public final class KeeningApparition extends CardImpl {
this.toughness = new MageInt(2);
// Sacrifice Keening Apparition: Destroy target enchantment.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(),new SacrificeSourceCost());
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(),new SacrificeSourceCost());
ability.addTarget(new TargetEnchantmentPermanent());
this.addAbility(ability);
}

View file

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

View file

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

View file

@ -42,7 +42,7 @@ public final class KeeperOfTheNineGales extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// {tap}, Tap two untapped Birds you control: Return target permanent to its owner's hand.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new ReturnToHandTargetEffect(), new TapSourceCost());
ability.addCost(new TapTargetCost(new TargetControlledPermanent(2, 2, filter, false)));
ability.addTarget(new TargetPermanent());
this.addAbility(ability);

View file

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

View file

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

View file

@ -31,7 +31,7 @@ public final class KeldonArsonist extends CardImpl {
this.toughness = new MageInt(1);
// {1}, Sacrifice two lands: Destroy target land.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new GenericManaCost(1));
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new GenericManaCost(1));
ability.addCost(new SacrificeTargetCost(2, StaticFilters.FILTER_LANDS));
ability.addTarget(new TargetLandPermanent().withChooseHint("to destroy"));
this.addAbility(ability);

View file

@ -58,7 +58,7 @@ public final class KeldonBattlewagon extends CardImpl {
.setText("sacrifice it at end of combat"), false).setTriggerPhrase("When {this} attacks, "));
// Tap an untapped creature you control: Keldon Battlewagon gets +X/+0 until end of turn, where X is the power of the creature tapped this way.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new KeldonBattlewagonBoostEffect(), new KeldonBattlewagonCost(new TargetControlledPermanent(filter))));
this.addAbility(new SimpleActivatedAbility(new KeldonBattlewagonBoostEffect(), new KeldonBattlewagonCost(new TargetControlledPermanent(filter))));
}

View file

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

View file

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

View file

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

View file

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

View file

@ -53,7 +53,7 @@ public final class KheruBloodsucker extends CardImpl {
this.addAbility(ability);
// {2}{B}, Sacrifice another creature: Put a +1/+1 counter on Kheru Bloodsucker.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl<>("{2}{B}"));
ability = new SimpleActivatedAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl<>("{2}{B}"));
ability.addCost(new SacrificeTargetCost(StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE));
this.addAbility(ability);
}

View file

@ -39,7 +39,7 @@ public final class KheruDreadmaw extends CardImpl {
// {1}{G}, Sacrifice another creature: You gain life equal to the sacrificed creature's toughness.
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 ManaCostsImpl<>("{1}{G}"));
Ability ability = new SimpleActivatedAbility(effect, new ManaCostsImpl<>("{1}{G}"));
ability.addCost(new SacrificeTargetCost(StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE));
this.addAbility(ability);
}

View file

@ -49,7 +49,7 @@ public final class KikiJikiMirrorBreaker extends CardImpl {
// Haste
this.addAbility(HasteAbility.getInstance());
// {T}: Create a token that's a copy of target nonlegendary creature you control, except it has haste. Sacrifice it at the beginning of the next end step.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new KikiJikiMirrorBreakerEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new KikiJikiMirrorBreakerEffect(), new TapSourceCost());
ability.addTarget(new TargetControlledCreaturePermanent(1, 1, filter, false));
this.addAbility(ability);

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -38,7 +38,7 @@ public final class KingSuleiman extends CardImpl {
this.toughness = new MageInt(1);
// {tap}: Destroy target Djinn or Efreet.
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);
}

View file

@ -35,7 +35,7 @@ public final class KiorasFollower extends CardImpl {
this.toughness = new MageInt(2);
// {T}: Untap another target permanent.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new UntapTargetEffect(), new TapSourceCost());
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);
}

View file

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

View file

@ -26,7 +26,7 @@ public final class KithkinDaggerdare extends CardImpl {
this.power = new MageInt(1);
this.toughness = new MageInt(1);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.G));
Ability ability = new SimpleActivatedAbility(new BoostTargetEffect(2, 2, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.G));
ability.addCost(new TapSourceCost());
ability.addTarget(new TargetAttackingCreature());
this.addAbility(ability);

View file

@ -28,7 +28,7 @@ public final class KithkinHealer extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(2);
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);
}

View file

@ -34,7 +34,7 @@ public final class KithkinSpellduster extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// {1}{W}, Sacrifice Kithkin Spellduster: Destroy target enchantment.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{1}{W}"));
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new ManaCostsImpl<>("{1}{W}"));
ability.addTarget(new TargetEnchantmentPermanent());
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);

View file

@ -36,7 +36,7 @@ public final class KitsuneDiviner extends CardImpl {
this.toughness = new MageInt(1);
// {T}: Tap target Spirit.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new TapTargetEffect(), new TapSourceCost());
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);
}

View file

@ -39,11 +39,11 @@ public final class KitsuneHealer extends CardImpl {
this.toughness = new MageInt(2);
// {T}: Prevent the next 1 damage that would be dealt to any target this turn.
Ability firstAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventDamageToTargetEffect(Duration.EndOfTurn, 1), new TapSourceCost());
Ability firstAbility = new SimpleActivatedAbility(new PreventDamageToTargetEffect(Duration.EndOfTurn, 1), new TapSourceCost());
firstAbility.addTarget(new TargetAnyTarget());
this.addAbility(firstAbility);
// {T}: Prevent all damage that would be dealt to target legendary creature this turn.
Ability secondAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventDamageToTargetEffect(Duration.EndOfTurn, Integer.MAX_VALUE), new TapSourceCost());
Ability secondAbility = new SimpleActivatedAbility(new PreventDamageToTargetEffect(Duration.EndOfTurn, Integer.MAX_VALUE), new TapSourceCost());
secondAbility.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(secondAbility);
}

View file

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

View file

@ -75,7 +75,7 @@ class AutumnTailKitsuneSage extends TokenImpl {
toughness = new MageInt(5);
// {1}: Attach target Aura attached to a creature to another creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AutumnTailEffect(), new GenericManaCost(1));
Ability ability = new SimpleActivatedAbility(new AutumnTailEffect(), new GenericManaCost(1));
ability.addTarget(new TargetPermanent(filter));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -33,7 +33,7 @@ public final class KitsunePalliator extends CardImpl {
this.toughness = new MageInt(2);
// {T}: Prevent the next 1 damage that would be dealt to each creature and each player this turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new KitsunePalliatorEffect(), new TapSourceCost()));
this.addAbility(new SimpleActivatedAbility(new KitsunePalliatorEffect(), new TapSourceCost()));
}
private KitsunePalliator(final KitsunePalliator card) {

View file

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

View file

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

View file

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

View file

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

View file

@ -37,7 +37,7 @@ public final class KjeldoranRoyalGuard extends CardImpl {
this.toughness = new MageInt(5);
// {tap}: All combat damage that would be dealt to you by unblocked creatures this turn is dealt to Kjeldoran Royal Guard instead.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new KjeldoranRoyalGuardEffect(), new TapSourceCost()));
this.addAbility(new SimpleActivatedAbility(new KjeldoranRoyalGuardEffect(), new TapSourceCost()));
}
private KjeldoranRoyalGuard(final KjeldoranRoyalGuard card) {

View file

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

View file

@ -38,7 +38,7 @@ public final class KnightCaptainOfEos extends CardImpl {
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new SoldierToken(), 2), false));
// {W}, Sacrifice a Soldier: Prevent all combat damage that would be dealt this turn.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventAllDamageByAllPermanentsEffect(Duration.EndOfTurn, true), new ManaCostsImpl<>("{W}"));
SimpleActivatedAbility ability = new SimpleActivatedAbility(new PreventAllDamageByAllPermanentsEffect(Duration.EndOfTurn, true), new ManaCostsImpl<>("{W}"));
ability.addCost(new SacrificeTargetCost(filter));
this.addAbility(ability);
}

View file

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

View file

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

View file

@ -47,7 +47,7 @@ public final class KnightOfTheReliquary extends CardImpl {
// {T}, Sacrifice a Forest or Plains: Search your library for a land card, put it onto the battlefield, then shuffle your library.
TargetCardInLibrary target = new TargetCardInLibrary(StaticFilters.FILTER_CARD_LAND);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInPlayEffect(target), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new SearchLibraryPutInPlayEffect(target), new TapSourceCost());
ability.addCost(new SacrificeTargetCost(filter));
this.addAbility(ability);
}

View file

@ -33,7 +33,7 @@ public final class KnollspineInvocation extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{R}{R}");
// {X}, Discard a card with converted mana cost X: Knollspine Invocation deals X damage to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(GetXValue.instance, true), new ManaCostsImpl<>("{X}"));
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(GetXValue.instance, true), new ManaCostsImpl<>("{X}"));
ability.addCost(new DiscardTargetCost(new TargetCardInHand(filter)));
ability.addTarget(new TargetAnyTarget());
ability.setCostAdjuster(KnollspineInvocationAdjuster.instance);

View file

@ -37,7 +37,7 @@ public final class KnowledgeVault extends CardImpl {
this.addAbility(ability);
// {0}: Sacrifice Knowledge Vault. If you do, discard your hand, then put all cards exiled with Knowledge Vault into their owners hand.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new KnowledgeVaultReturnEffect(), new GenericManaCost(0)));
this.addAbility(new SimpleActivatedAbility(new KnowledgeVaultReturnEffect(), new GenericManaCost(0)));
// When Knowledge Vault leaves the battlefield, put all cards exiled with Knowledge Vault into their owners graveyard.
this.addAbility(new LeavesBattlefieldTriggeredAbility(

View file

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

View file

@ -58,7 +58,7 @@ public final class Kookus extends CardImpl {
));
// {R}: Kookus gets +1/+0 until end of turn.
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 Kookus(final Kookus card) {

View file

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

View file

@ -36,7 +36,7 @@ public final class KorLineSlinger extends CardImpl {
this.power = new MageInt(0);
this.toughness = new MageInt(1);
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new TapTargetEffect(), new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);
}

View file

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

View file

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

View file

@ -35,7 +35,7 @@ public final class KorozdaGorgon extends CardImpl {
// Deathtouch
this.addAbility(DeathtouchAbility.getInstance());
// {2}, Remove a +1/+1 counter from a creature you control: Target creature gets -1/-1 until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-1,-1, Duration.EndOfTurn), new GenericManaCost(2));
Ability ability = new SimpleActivatedAbility(new BoostTargetEffect(-1,-1, Duration.EndOfTurn), new GenericManaCost(2));
ability.addCost(new RemoveCounterCost(new TargetControlledCreaturePermanent(), CounterType.P1P1));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -56,7 +56,7 @@ public final class KozilekTheGreatDistortion extends CardImpl {
this.addAbility(new MenaceAbility(false));
// Discard a card with converted mana cost X: Counter target spell with converted mana cost X.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new KozilekDiscardCost());
Ability ability = new SimpleActivatedAbility(new CounterTargetEffect(), new KozilekDiscardCost());
ability.addTarget(new TargetSpell(new FilterSpell("spell with mana value X")));
this.addAbility(ability);
}

View file

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

View file

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

View file

@ -31,7 +31,7 @@ public final class Krakilin extends CardImpl {
this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
// {1}{G}: Regenerate Krakilin.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{G}")));
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{G}")));
}
private Krakilin(final Krakilin card) {

View file

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

View file

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

View file

@ -39,7 +39,7 @@ public final class KrarkClanGrunt extends CardImpl {
this.toughness = new MageInt(2);
// Sacrifice an artifact: Krark-Clan Grunt gets +1/+0 and gains first strike until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn)
Ability ability = new SimpleActivatedAbility(new BoostSourceEffect(1, 0, Duration.EndOfTurn)
.setText("{this} gets +1/+0"), new SacrificeTargetCost(filter));
ability.addEffect(new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn)
.setText("and gains first strike until end of turn"));

View file

@ -33,7 +33,7 @@ public final class KrarkClanOgre extends CardImpl {
this.toughness = new MageInt(3);
// {R}, Sacrifice an artifact: Target creature can't block this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBlockTargetEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{R}"));
Ability ability = new SimpleActivatedAbility(new CantBlockTargetEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{R}"));
ability.addCost(new SacrificeTargetCost(StaticFilters.FILTER_PERMANENT_ARTIFACT));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -39,7 +39,7 @@ public final class KrarkClanShaman extends CardImpl {
this.power = new MageInt(1);
this.toughness = new MageInt(1);
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageAllEffect(1, filterTargetedCreatures), new SacrificeTargetCost(filterSacrificed)));
this.addAbility(new SimpleActivatedAbility(new DamageAllEffect(1, filterTargetedCreatures), new SacrificeTargetCost(filterSacrificed)));
}
private KrarkClanShaman(final KrarkClanShaman card) {

View file

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

View file

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

View file

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

View file

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

View file

@ -40,7 +40,7 @@ public final class KrosanConstrictor extends CardImpl {
// Swampwalk
this.addAbility(new SwampwalkAbility());
// {tap}: Target black creature gets -2/-0 until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-2, -0, Duration.EndOfTurn), new TapSourceCost());
Ability ability = new SimpleActivatedAbility(new BoostTargetEffect(-2, -0, Duration.EndOfTurn), new TapSourceCost());
ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability);
}

View file

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

View file

@ -44,7 +44,7 @@ public final class KrovikanHorror extends CardImpl {
));
// {1}, Sacrifice a creature: Krovikan Horror deals 1 damage to any target.
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(StaticFilters.FILTER_PERMANENT_CREATURE));
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);

View file

@ -41,12 +41,12 @@ public final class KrovikanSorcerer extends CardImpl {
this.toughness = new MageInt(1);
// {tap}, Discard a nonblack 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(filterNonBlack)));
this.addAbility(ability);
// {tap}, Discard a black card: Draw two cards, then discard one of them.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawDiscardOneOfThemEffect(2), new TapSourceCost());
ability = new SimpleActivatedAbility(new DrawDiscardOneOfThemEffect(2), new TapSourceCost());
ability.addCost(new DiscardTargetCost(new TargetCardInHand(filterBlack)));
this.addAbility(ability);
}
@ -59,4 +59,4 @@ public final class KrovikanSorcerer extends CardImpl {
public KrovikanSorcerer copy() {
return new KrovikanSorcerer(this);
}
}
}

View file

@ -30,7 +30,7 @@ public final class KryShield extends CardImpl {
// {2}, {T}: Prevent all damage that would be dealt this turn by target creature you control. That creature gets +0/+X until end of turn, where X is its converted mana cost.
Effect effect = new PreventDamageByTargetEffect(Duration.EndOfTurn, false);
effect.setText("Prevent all damage that would be dealt this turn by target creature you control");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new GenericManaCost(2));
Ability ability = new SimpleActivatedAbility(effect, new GenericManaCost(2));
ability.addEffect(new BoostTargetEffect(StaticValue.get(0), TargetManaValue.instance, Duration.EndOfTurn)
.setText("That creature gets +0/+X until end of turn, where X is its mana value"));
ability.addCost(new TapSourceCost());

View file

@ -45,7 +45,7 @@ public final class KukemssaSerpent extends CardImpl {
this.addAbility(new SimpleStaticAbility(new CantAttackUnlessDefenderControllsPermanent(new FilterLandPermanent(SubType.ISLAND, "an Island"))));
// {U}, Sacrifice an Island: Target land an opponent controls becomes an Island until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesBasicLandTargetEffect(Duration.EndOfTurn, SubType.ISLAND), new ManaCostsImpl<>("{U}"));
Ability ability = new SimpleActivatedAbility(new BecomesBasicLandTargetEffect(Duration.EndOfTurn, SubType.ISLAND), new ManaCostsImpl<>("{U}"));
ability.addCost(new SacrificeTargetCost(filterControlledLand));
ability.addTarget(new TargetLandPermanent(filterOpponentLand));
this.addAbility(ability);

View file

@ -30,7 +30,7 @@ public final class KumanoMasterYamabushi extends CardImpl {
this.toughness = new MageInt(4);
// {1}{R}: Kumano, Master Yamabushi deals 1 damage to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl<>("{1}{R}"));
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(1), new ManaCostsImpl<>("{1}{R}"));
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
// If a creature dealt damage by Kumano this turn would die, exile it instead.

View file

@ -32,7 +32,7 @@ public final class KuroPitlord extends CardImpl {
// At the beginning of your upkeep, sacrifice Kuro, Pitlord unless you pay {B}{B}{B}{B}.
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl<>("{B}{B}{B}{B}"))));
// Pay 1 life: Target creature gets -1/-1 until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-1, -1, Duration.EndOfTurn), new PayLifeCost(1));
Ability ability = new SimpleActivatedAbility(new BoostTargetEffect(-1, -1, Duration.EndOfTurn), new PayLifeCost(1));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

View file

@ -28,7 +28,7 @@ public final class KurosTaken extends CardImpl {
this.toughness = new MageInt(1);
this.addAbility(new BushidoAbility(1));
// {1}{B}: Regenerate Kuro's Taken.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{B}")));
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{B}")));
}
private KurosTaken(final KurosTaken card) {

View file

@ -39,7 +39,7 @@ public final class KusariGama extends CardImpl {
this.subtype.add(SubType.EQUIPMENT);
// Equipped creature has "{2}: This creature gets +1/+0 until end of turn."
Ability gainedAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new GenericManaCost(2));
Ability gainedAbility = new SimpleActivatedAbility(new BoostSourceEffect(1, 0, Duration.EndOfTurn), new GenericManaCost(2));
Effect effect = new GainAbilityAttachedEffect(gainedAbility, AttachmentType.EQUIPMENT);
effect.setText("Equipped creature has \"{2}: This creature gets +1/+0 until end of turn.\"");
Ability ability = new SimpleStaticAbility(effect);

View file

@ -46,7 +46,7 @@ public final class KytheonHeroOfAkros extends CardImpl {
+ "then return him to the battlefield transformed under his owner's control."), new AttackedOrBlockedThisCombatWatcher());
// {2}{W}: Kytheon gains indestructible until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(IndestructibleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{2}{W}")));
this.addAbility(new SimpleActivatedAbility(new GainAbilitySourceEffect(IndestructibleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{2}{W}")));
}

View file

@ -33,7 +33,7 @@ public final class KytheonsIrregulars extends CardImpl {
// if it isn't renowned
// put a +1/+1 counter on it and it becomes renowned.)</i)
// {W}{W}: Tap target creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl<>("{W}{W}"));
Ability ability = new SimpleActivatedAbility(new TapTargetEffect(), new ManaCostsImpl<>("{W}{W}"));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}