forked from External/mage
Refactor: fix raw use of parameterized class ManaCostsImpl - 'P' cards (#9081)
This commit is contained in:
parent
5f744fe89c
commit
1050f1e600
159 changed files with 172 additions and 172 deletions
|
|
@ -31,7 +31,7 @@ public final class PacificationArray extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
|
||||
|
||||
// {2}, {t}: Tap target artifact or creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{2}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl<>("{2}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class PackMastiff extends CardImpl {
|
|||
// {1}{R}: Each creature you control named Pack Mastiff gets +1/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(new BoostControlledEffect(
|
||||
1, 0, Duration.EndOfTurn, filter
|
||||
).setText("Each creature you control named Pack Mastiff gets +1/+0 until end of turn."), new ManaCostsImpl("{1}{R}")));
|
||||
).setText("Each creature you control named Pack Mastiff gets +1/+0 until end of turn."), new ManaCostsImpl<>("{1}{R}")));
|
||||
}
|
||||
|
||||
private PackMastiff(final PackMastiff card) {
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public final class PackRat extends CardImpl {
|
|||
// Pack Rat's power and toughness are each equal to the number of Rats you control.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new PermanentsOnBattlefieldCount(filter), Duration.EndOfGame)));
|
||||
// {2}{B}, Discard a card: Create a token that's a copy of Pack Rat.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenCopySourceEffect(), new ManaCostsImpl("{2}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenCopySourceEffect(), new ManaCostsImpl<>("{2}{B}"));
|
||||
ability.addCost(new DiscardCardCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class PactOfNegation extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetSpell());
|
||||
this.getSpellAbility().addEffect(new CounterTargetEffect());
|
||||
// At the beginning of your next upkeep, pay {3}{U}{U}. If you don't, you lose the game.
|
||||
this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new PactDelayedTriggeredAbility(new ManaCostsImpl("{3}{U}{U}")), false));
|
||||
this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new PactDelayedTriggeredAbility(new ManaCostsImpl<>("{3}{U}{U}")), false));
|
||||
}
|
||||
|
||||
private PactOfNegation(final PactOfNegation card) {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class PactOfTheTitan extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new CreateTokenEffect(new GiantToken()));
|
||||
|
||||
// At the beginning of your next upkeep, pay {4}{R}. If you don't, you lose the game.
|
||||
this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new PactDelayedTriggeredAbility(new ManaCostsImpl("{4}{R}"))));
|
||||
this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new PactDelayedTriggeredAbility(new ManaCostsImpl<>("{4}{R}"))));
|
||||
}
|
||||
|
||||
private PactOfTheTitan(final PactOfTheTitan card) {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class PainKami extends CardImpl {
|
|||
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(ManacostVariableValue.REGULAR), new ManaCostsImpl("{X}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(ManacostVariableValue.REGULAR), new ManaCostsImpl<>("{X}{R}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class PaladinOfPrahv extends CardImpl {
|
|||
|
||||
// Forecast - {1}{W}, Reveal Paladin of Prahv from your hand: Whenever target creature deals damage this turn, you gain that much life.
|
||||
Ability ability = new ForecastAbility(new CreateDelayedTriggeredAbilityEffect(
|
||||
new PaladinOfPrahvTriggeredAbility()), new ManaCostsImpl("{1}{W}"));
|
||||
new PaladinOfPrahvTriggeredAbility()), new ManaCostsImpl<>("{1}{W}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,9 +30,9 @@ public final class PaleRecluse extends CardImpl {
|
|||
// Reach
|
||||
this.addAbility(ReachAbility.getInstance());
|
||||
// Forestcycling {2}
|
||||
this.addAbility(new ForestcyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new ForestcyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
// plainscycling {2}
|
||||
this.addAbility(new PlainscyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new PlainscyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private PaleRecluse(final PaleRecluse card) {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public final class PaleWayfarer extends CardImpl {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
// {2}{W}{W}, {untap}: Target creature gains protection from the color of its controller's choice until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PaleWayfarerEffect(), new ManaCostsImpl("{2}{W}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PaleWayfarerEffect(), new ManaCostsImpl<>("{2}{W}{W}"));
|
||||
ability.addCost(new UntapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class Palinchron extends CardImpl {
|
|||
// When Palinchron enters the battlefield, untap up to seven lands.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new UntapLandsEffect(7)));
|
||||
// {2}{U}{U}: Return Palinchron to its owner's hand.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{2}{U}{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl<>("{2}{U}{U}")));
|
||||
}
|
||||
|
||||
private Palinchron(final Palinchron card) {
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class PalladiaMors extends CardImpl {
|
|||
// Trample
|
||||
this.addAbility(TrampleAbility.getInstance());
|
||||
// At the beginning of your upkeep, sacrifice Palladia-Mors unless you pay {R}{G}{W}.
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{R}{G}{W}")), TargetController.YOU, false));
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl<>("{R}{G}{W}")), TargetController.YOU, false));
|
||||
}
|
||||
|
||||
private PalladiaMors(final PalladiaMors card) {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class Panacea extends CardImpl {
|
|||
// {X}{X}, {tap}: Prevent the next X damage that would be dealt to any target this turn.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new PreventDamageToTargetEffect(Duration.EndOfTurn, false, true, ManacostVariableValue.REGULAR),
|
||||
new ManaCostsImpl("{X}{X}")
|
||||
new ManaCostsImpl<>("{X}{X}")
|
||||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class PanicSpellbomb extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// When Panic Spellbomb is put into a graveyard from the battlefield, you may pay Red. If you do, draw a card.
|
||||
this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{R}")), false, false));
|
||||
this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{R}")), false, false));
|
||||
}
|
||||
|
||||
private PanicSpellbomb(final PanicSpellbomb card) {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public final class ParagonOfEternalWilds extends CardImpl {
|
|||
// Other green creatures you control get +1/+1.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.WhileOnBattlefield, filterGreen, true)));
|
||||
// {G}, {t}: Another target green creature you control 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(Zone.BATTLEFIELD, new GainAbilityTargetEffect(TrampleAbility.getInstance(),Duration.EndOfTurn), new ManaCostsImpl<>("{G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetControlledCreaturePermanent(filterGreen2));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ public final class ParagonOfFierceDefiance extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filterCreatures, true)));
|
||||
|
||||
// {R}, {T}: Another target red creature you control gains haste until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{R}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetControlledCreaturePermanent(filterCreature));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public final class ParagonOfGatheringMists extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.WhileOnBattlefield, filterBlue, true)));
|
||||
|
||||
// {U}, {T}: Another target blue creature you control gains flying until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(FlyingAbility.getInstance(),Duration.EndOfTurn), new ManaCostsImpl("{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(FlyingAbility.getInstance(),Duration.EndOfTurn), new ManaCostsImpl<>("{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetControlledCreaturePermanent(filterBlue2));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public final class ParagonOfNewDawns extends CardImpl {
|
|||
// Other white creatures you control get +1/+1.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1,1, Duration.WhileOnBattlefield, filter, true)));
|
||||
// {W}, {T}: Another target white creature you control gains vigilance until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(VigilanceAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(VigilanceAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{W}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent(filter2));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ public final class ParagonOfOpenGraves extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filterCreatures, true)));
|
||||
|
||||
// {2}{B}, {T}: Another target black creature you control gains deathtouch until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{2}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{2}{B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetControlledCreaturePermanent(filterCreature));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class ParagonOfTheAmesha extends CardImpl {
|
|||
this.addAbility(FirstStrikeAbility.getInstance());
|
||||
|
||||
// {W}{U}{B}{R}{G}: Until end of turn, Paragon of the Amesha becomes an Angel, gets +3/+3, and gains flying and lifelink.
|
||||
Ability ability = new SimpleActivatedAbility(new ParagonOfTheAmeshaEffect(), new ManaCostsImpl("{W}{U}{B}{R}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(new ParagonOfTheAmeshaEffect(), new ManaCostsImpl<>("{W}{U}{B}{R}{G}"));
|
||||
Effect effect = new BoostSourceEffect(3, 3, Duration.EndOfTurn);
|
||||
effect.setText(", gets +3/+3");
|
||||
ability.addEffect(effect);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class ParallaxInhibitor extends CardImpl {
|
|||
|
||||
// {1}, {tap}, Sacrifice Parallax Inhibitor: Put a fade counter on each permanent with fading you control.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new AddCountersAllEffect(CounterType.FADE.createInstance(), filter), new ManaCostsImpl("{1}"));
|
||||
new AddCountersAllEffect(CounterType.FADE.createInstance(), filter), new ManaCostsImpl<>("{1}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class ParallelEvolution extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new ParallelEvolutionEffect());
|
||||
|
||||
// Flashback {4}{G}{G}{G}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{4}{G}{G}{G}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{4}{G}{G}{G}")));
|
||||
}
|
||||
|
||||
private ParallelEvolution(final ParallelEvolution card) {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class ParapetWatchers extends CardImpl {
|
|||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0, 1, Duration.EndOfTurn), new ManaCostsImpl("{W/U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{W/U}")));
|
||||
}
|
||||
|
||||
private ParapetWatchers(final ParapetWatchers card) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class PardicCollaborator extends CardImpl {
|
|||
// First strike
|
||||
this.addAbility(FirstStrikeAbility.getInstance());
|
||||
// {B}: Pardic Collaborator gets +1/+1 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{B}")));
|
||||
}
|
||||
|
||||
private PardicCollaborator(final PardicCollaborator card) {
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class PardicDragon extends CardImpl {
|
|||
// {R}: Pardic Dragon gets +1/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.R)));
|
||||
// Suspend 2-{R}{R}
|
||||
this.addAbility(new SuspendAbility(2, new ManaCostsImpl("{R}{R}"), this, true));
|
||||
this.addAbility(new SuspendAbility(2, new ManaCostsImpl<>("{R}{R}"), this, true));
|
||||
// Whenever an opponent casts a spell, if Pardic Dragon is suspended, that player may put a time counter on Pardic Dragon.
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
|
||||
new SpellCastOpponentTriggeredAbility(Zone.EXILED, new PardicDragonEffect(), StaticFilters.FILTER_SPELL, false, SetTargetPointer.PLAYER),
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class PardicSwordsmith extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {R}, Discard a card at random: Pardic Swordsmith gets +2/+0 until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{R}"));
|
||||
ability.addCost(new DiscardCardCost(true));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public final class PashalikMons extends CardImpl {
|
|||
|
||||
// {3}{R}, Sacrifice a Goblin: Create two 1/1 red Goblin creature tokens.
|
||||
ability = new SimpleActivatedAbility(
|
||||
new CreateTokenEffect(new GoblinToken(), 2), new ManaCostsImpl("{3}{R}")
|
||||
new CreateTokenEffect(new GoblinToken(), 2), new ManaCostsImpl<>("{3}{R}")
|
||||
);
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter2)));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class PasswallAdept extends CardImpl {
|
|||
Ability ability = new SimpleActivatedAbility(
|
||||
Zone.BATTLEFIELD,
|
||||
new CantBeBlockedTargetEffect(),
|
||||
new ManaCostsImpl("{2}{U}")
|
||||
new ManaCostsImpl<>("{2}{U}")
|
||||
);
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class PatagiaGolem extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {3}: Patagia Golem gains flying until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{3}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{3}"));
|
||||
this.addAbility(ability);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class PathToTheWorldTree extends CardImpl {
|
|||
|
||||
// {2}{W}{U}{B}{R}{G}, Sacrifice Path to the World Tree: You gain 2 life and draw two cards. Target opponent loses 2 life. Path to the World Tree deals 2 damage to up to one target creature. You create a 2/2 green Bear creature token.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new PathToTheWorldTreeEffect(), new ManaCostsImpl("{2}{W}{U}{B}{R}{G}")
|
||||
new PathToTheWorldTreeEffect(), new ManaCostsImpl<>("{2}{W}{U}{B}{R}{G}")
|
||||
);
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetOpponent());
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class PatrolSignaler extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {1}{W}, {untap}: Create a 1/1 white Kithkin Soldier creature token.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new KithkinSoldierToken()), new ManaCostsImpl("{1}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new KithkinSoldierToken()), new ManaCostsImpl<>("{1}{W}"));
|
||||
ability.addCost(new UntapSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class PatronOfTheMoon extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// {1}: Put up to two land cards from your hand onto the battlefield tapped.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PatronOfTheMoonEffect(), new ManaCostsImpl("{1}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PatronOfTheMoonEffect(), new ManaCostsImpl<>("{1}"));
|
||||
this.addAbility(ability);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class PatronOfTheWild extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// Morph {2}{G}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{2}{G}")));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{2}{G}")));
|
||||
// When Patron of the Wild is turned face up, target creature gets +3/+3 until end of turn.
|
||||
Ability ability = new TurnedFaceUpSourceTriggeredAbility(new BoostTargetEffect(3, 3, Duration.EndOfTurn));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class PavelMaliki extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {B}{R}: Pavel Maliki gets +1/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{B}{R}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{B}{R}")));
|
||||
}
|
||||
|
||||
private PavelMaliki(final PavelMaliki card) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class PeaceOfMind extends CardImpl {
|
|||
|
||||
|
||||
// {W}, Discard a card: You gain 3 life.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(3), new ManaCostsImpl("{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(3), new ManaCostsImpl<>("{W}"));
|
||||
ability.addCost(new DiscardCardCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class Peacekeeper extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// At the beginning of your upkeep, sacrifice Peacekeeper unless you pay {1}{W}.
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{1}{W}")), TargetController.YOU, false));
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl<>("{1}{W}")), TargetController.YOU, false));
|
||||
|
||||
// Creatures can't attack.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PeacekeeperCantAttackEffect()));
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class PeacewalkerColossus extends CardImpl {
|
|||
// {1}{W}: Another target Vehicle you control becomes an artifact creature until end of turn.
|
||||
Effect effect = new AddCardTypeTargetEffect(Duration.EndOfTurn, CardType.CREATURE);
|
||||
effect.setText("Another target Vehicle you control becomes an artifact creature until end of turn");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{1}{W}"));
|
||||
ability.addTarget(new TargetControlledPermanent(filter));
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class PearlDragon extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {1}{W}: Pearl Dragon gets +0/+1 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0, 1, Duration.EndOfTurn), new ManaCostsImpl("{1}{W}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{W}")));
|
||||
}
|
||||
|
||||
private PearlDragon(final PearlDragon card) {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public final class PearlspearCourier extends CardImpl {
|
|||
// {2}{W}, {tap}: Target Soldier creature gets +2/+2 and has vigilance for as long as Pearlspear Courier remains tapped.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(
|
||||
new BoostTargetEffect(2, 2, Duration.Custom), SourceTappedCondition.TAPPED,
|
||||
"target Soldier creature gets +2/+2"), new ManaCostsImpl("{2}{W}"));
|
||||
"target Soldier creature gets +2/+2"), new ManaCostsImpl<>("{2}{W}"));
|
||||
ability.addEffect(new ConditionalContinuousEffect(new GainAbilityTargetEffect(VigilanceAbility.getInstance(),
|
||||
Duration.Custom), SourceTappedCondition.TAPPED,"and has vigilance for as long as {this} remains tapped"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class PedanticLearning extends CardImpl {
|
|||
class PedanticLearningTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
public PedanticLearningTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{1}")), false);
|
||||
super(Zone.BATTLEFIELD, new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{1}")), false);
|
||||
}
|
||||
|
||||
public PedanticLearningTriggeredAbility(final PedanticLearningTriggeredAbility ability) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class PegasusRefuge extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{3}{W}");
|
||||
|
||||
// {2}, Discard a card: Create a 1/1 white Pegasus creature token with flying.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new PegasusToken()), new ManaCostsImpl("{2}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new PegasusToken()), new ManaCostsImpl<>("{2}"));
|
||||
ability.addCost(new DiscardCardCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,18 +42,18 @@ public final class PemminsAura extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// {U}: Untap enchanted creature.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapEnchantedEffect(), new ManaCostsImpl("{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapEnchantedEffect(), new ManaCostsImpl<>("{U}")));
|
||||
|
||||
// {U}: Enchanted creature gains flying until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(FlyingAbility.getInstance(),
|
||||
AttachmentType.AURA, Duration.EndOfTurn), new ManaCostsImpl("{U}")));
|
||||
AttachmentType.AURA, Duration.EndOfTurn), new ManaCostsImpl<>("{U}")));
|
||||
|
||||
// {U}: Enchanted creature gains shroud until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(ShroudAbility.getInstance(),
|
||||
AttachmentType.AURA, Duration.EndOfTurn), new ManaCostsImpl("{U}")));
|
||||
AttachmentType.AURA, Duration.EndOfTurn), new ManaCostsImpl<>("{U}")));
|
||||
|
||||
// {1}: Enchanted creature gets +1/-1 or -1/+1 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PemminsAuraBoostEnchantedEffect(), new ManaCostsImpl("{1}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PemminsAuraBoostEnchantedEffect(), new ManaCostsImpl<>("{1}")));
|
||||
}
|
||||
|
||||
private PemminsAura(final PemminsAura card) {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class PendrellDrake extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private PendrellDrake(final PendrellDrake card) {
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public final class PentarchPaladin extends CardImpl {
|
|||
this.addAbility(new AsEntersBattlefieldAbility(new ChooseColorEffect(Outcome.Detriment)));
|
||||
|
||||
// {W}{W}, {tap}: Destroy target permanent of the chosen color.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{W}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{W}{W}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
ability.setTargetAdjuster(PentarchPaladinAdjuster.instance);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class PerilousForays extends CardImpl {
|
|||
// {1}, Sacrifice a creature: Search your library for a land card with a basic land type and put it onto the battlefield tapped. Then shuffle your library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filter), true, Outcome.PutLandInPlay),
|
||||
new ManaCostsImpl("{1}"));
|
||||
new ManaCostsImpl<>("{1}"));
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class PerilousShadow extends CardImpl {
|
|||
|
||||
|
||||
// {1}{B}: Perilous Shadow gets +2/+2 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2,2, Duration.EndOfTurn), new ManaCostsImpl("{1}{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2,2, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{B}")));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class PermafrostTrap extends CardImpl {
|
|||
this.subtype.add(SubType.TRAP);
|
||||
|
||||
// If an opponent had a green creature enter the battlefield under their control this turn, you may pay {U} rather than pay Permafrost Trap's mana cost.
|
||||
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl("{U}"), PermafrostTrapCondition.instance), new PermanentsEnteredBattlefieldWatcher());
|
||||
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl<>("{U}"), PermafrostTrapCondition.instance), new PermanentsEnteredBattlefieldWatcher());
|
||||
|
||||
// Tap up to two target creatures. Those creatures don't untap during their controller's next untap step.
|
||||
this.getSpellAbility().addEffect(new TapTargetEffect());
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class Pestilence extends CardImpl {
|
|||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(triggered, new CreatureCountCondition(0, TargetController.ANY), ruleText));
|
||||
|
||||
// {B}: Pestilence deals 1 damage to each creature and each player.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageEverythingEffect(1), new ManaCostsImpl("{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageEverythingEffect(1), new ManaCostsImpl<>("{B}")));
|
||||
}
|
||||
|
||||
private Pestilence(final Pestilence card) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class PestilenceDemon extends CardImpl {
|
|||
this.power = new MageInt(7);
|
||||
this.toughness = new MageInt(6);
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PestilenceDemonEffect(), new ManaCostsImpl("{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PestilenceDemonEffect(), new ManaCostsImpl<>("{B}")));
|
||||
}
|
||||
|
||||
private PestilenceDemon(final PestilenceDemon card) {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class PestilentKathari extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
this.addAbility(DeathtouchAbility.getInstance());
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{2}{R}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{2}{R}")));
|
||||
}
|
||||
|
||||
private PestilentKathari(final PestilentKathari card) {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class Petradon extends CardImpl {
|
|||
.withReturnName("cards", "their owners'"), false));
|
||||
|
||||
// {R}: Petradon gets +1/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{R}")));
|
||||
}
|
||||
|
||||
private Petradon(final Petradon card) {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class PetrifiedPlating extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2, 2, Duration.WhileOnBattlefield)));
|
||||
|
||||
// Suspend 2-{G}
|
||||
this.addAbility(new SuspendAbility(2, new ManaCostsImpl("{G}"), this));
|
||||
this.addAbility(new SuspendAbility(2, new ManaCostsImpl<>("{G}"), this));
|
||||
}
|
||||
|
||||
private PetrifiedPlating(final PetrifiedPlating card) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class PewterGolem extends CardImpl {
|
|||
this.subtype.add(SubType.GOLEM);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(2);
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{1}{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{1}{B}")));
|
||||
}
|
||||
|
||||
private PewterGolem(final PewterGolem card) {
|
||||
|
|
|
|||
|
|
@ -28,10 +28,10 @@ public final class PhantasmalFiend extends CardImpl {
|
|||
this.toughness = new MageInt(5);
|
||||
|
||||
// {B}: Phantasmal Fiend gets +1/-1 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, -1, Duration.EndOfTurn), new ManaCostsImpl("{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, -1, Duration.EndOfTurn), new ManaCostsImpl<>("{B}")));
|
||||
|
||||
// {1}{U}: Switch Phantasmal Fiend's power and toughness until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{1}{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{1}{U}")));
|
||||
}
|
||||
|
||||
private PhantasmalFiend(final PhantasmalFiend card) {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class PhantasmalForces extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// At the beginning of your upkeep, sacrifice Phantasmal Forces unless you pay {U}.
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{U}")), TargetController.YOU, false));
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl<>("{U}")), TargetController.YOU, false));
|
||||
}
|
||||
|
||||
private PhantasmalForces(final PhantasmalForces card) {
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public final class PharikaGodOfAffliction extends CardImpl {
|
|||
.addHint(DevotionCount.BG.getHint()));
|
||||
|
||||
// {B}{G}: Exile target creature card from a graveyard. It's owner creates a 1/1 black and green Snake enchantment creature token with deathtouch.
|
||||
Ability ability = new SimpleActivatedAbility(new PharikaExileEffect(), new ManaCostsImpl("{B}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(new PharikaExileEffect(), new ManaCostsImpl<>("{B}{G}"));
|
||||
ability.addTarget(new TargetCardInGraveyard(filter));
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -37,19 +37,19 @@ public final class Phelddagrif extends CardImpl {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
// {G}: Phelddagrif gains trample until end of turn. Target opponent creates a 1/1 green Hippo creature token.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{G}"));
|
||||
ability.addEffect(new CreateTokenTargetEffect(new HippoToken()));
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability);
|
||||
|
||||
// {W}: Phelddagrif gains flying until end of turn. Target opponent gains 2 life.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{W}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{W}"));
|
||||
ability.addEffect(new GainLifeTargetEffect(2));
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability);
|
||||
|
||||
// {U}: Return Phelddagrif to its owner's hand. Target opponent may draw a card.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{U}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl<>("{U}"));
|
||||
ability.addEffect(new DrawCardTargetEffect(1, true));
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class PheresBandRaiders extends CardImpl {
|
|||
this.toughness = new MageInt(5);
|
||||
|
||||
// <i>Inspired</i> — Whenever Pheres-Band Raiders becomes untapped, you may pay {2}{G}. If you do, create a 3/3 green Centaur enchantment creature token.
|
||||
this.addAbility(new InspiredAbility(new DoIfCostPaid(new CreateTokenEffect(new CentaurEnchantmentCreatureToken()), new ManaCostsImpl("{2}{G}"))));
|
||||
this.addAbility(new InspiredAbility(new DoIfCostPaid(new CreateTokenEffect(new CentaurEnchantmentCreatureToken()), new ManaCostsImpl<>("{2}{G}"))));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class PhobianPhantasm extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
this.addAbility(FearAbility.getInstance());
|
||||
// Cumulative upkeep {B}
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{B}")));
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{B}")));
|
||||
}
|
||||
|
||||
private PhobianPhantasm(final PhobianPhantasm card) {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class PhoenixOfAsh extends CardImpl {
|
|||
|
||||
// {2}{R}: Phoenix of Ash gets +2/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl("{2}{R}")
|
||||
new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{2}{R}")
|
||||
));
|
||||
|
||||
// Escape — {2}{R}{R}, Exile three other cards from your graveyard.
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class Phthisis extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
|
||||
// Suspend 5-{1}{B}
|
||||
this.addAbility(new SuspendAbility(5, new ManaCostsImpl("{1}{B}"), this));
|
||||
this.addAbility(new SuspendAbility(5, new ManaCostsImpl<>("{1}{B}"), this));
|
||||
}
|
||||
|
||||
private Phthisis(final Phthisis card) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class PhyrexianBattleflies extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {B}: {this} gets +1/+0 until end of turn. Activate this ability no more than twice each turn.
|
||||
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1,0,Duration.EndOfTurn), new ManaCostsImpl("{B}"), 2));
|
||||
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1,0,Duration.EndOfTurn), new ManaCostsImpl<>("{B}"), 2));
|
||||
}
|
||||
|
||||
private PhyrexianBattleflies(final PhyrexianBattleflies card) {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class PhyrexianEtchings extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{B}{B}{B}");
|
||||
|
||||
// Cumulative upkeep-Pay {B}.
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{B}")));
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{B}")));
|
||||
|
||||
// At the beginning of your end step, draw a card for each age counter on Phyrexian Etchings.
|
||||
this.addAbility(new BeginningOfYourEndStepTriggeredAbility(new DrawCardSourceControllerEffect(new CountersSourceCount(CounterType.AGE)), false));
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class PhyrexianFurnace extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// {1}, Sacrifice Phyrexian Furnace: Exile target card from a graveyard. Draw a card.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl("{1}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl<>("{1}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetCardInGraveyard());
|
||||
ability.addEffect(new DrawCardSourceControllerEffect(1));
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class PhyrexianGrimoire extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{3}");
|
||||
|
||||
// {4}, {tap}: Target opponent chooses one of the top two cards of your graveyard. Exile that card and put the other one into your hand.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PhyrexianGrimoireEffect(), new ManaCostsImpl("{4}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PhyrexianGrimoireEffect(), new ManaCostsImpl<>("{4}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class PhyrexianInfiltrator extends CardImpl {
|
|||
|
||||
// {2}{U}{U}: Exchange control of Phyrexian Infiltrator and target creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExchangeControlTargetEffect(Duration.EndOfGame,
|
||||
"Exchange control of {this} and target creature", true), new ManaCostsImpl("{2}{U}{U}"));
|
||||
"Exchange control of {this} and target creature", true), new ManaCostsImpl<>("{2}{U}{U}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class PhyrexianIronfoot extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new DontUntapInControllersUntapStepSourceEffect()));
|
||||
|
||||
// {1}{S}: Untap Phyrexian Ironfoot.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapSourceEffect(), new ManaCostsImpl("{1}{S}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapSourceEffect(), new ManaCostsImpl<>("{1}{S}")));
|
||||
}
|
||||
|
||||
private PhyrexianIronfoot(final PhyrexianIronfoot card) {
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public final class PhyrexianMarauder extends CardImpl {
|
|||
class PhyrexianMarauderCantAttackUnlessYouPayEffect extends CantAttackBlockUnlessPaysSourceEffect {
|
||||
|
||||
PhyrexianMarauderCantAttackUnlessYouPayEffect() {
|
||||
super(new ManaCostsImpl("{0}"), RestrictType.ATTACK);
|
||||
super(new ManaCostsImpl<>("{0}"), RestrictType.ATTACK);
|
||||
staticText = "{this} can't attack unless you pay {1} for each +1/+1 counter on it";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class PhyrexianMonitor extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {B}: Regenerate Phyrexian Monitor.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
|
||||
}
|
||||
|
||||
private PhyrexianMonitor(final PhyrexianMonitor card) {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class PhyrexianPortal extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{3}");
|
||||
|
||||
// {3}: If your library has ten or more cards in it, target opponent looks at the top ten cards of your library and separates them into two face-down piles. Exile one of those piles. Search the other pile for a card, put it into your hand, then shuffle the rest of that pile into your library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PhyrexianPortalEffect(), new ManaCostsImpl("{3}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PhyrexianPortalEffect(), new ManaCostsImpl<>("{3}"));
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class PhyrexianSnowcrusher extends CardImpl {
|
|||
// Phyrexian Snowcrusher attacks each turn if able.
|
||||
this.addAbility(new AttacksEachCombatStaticAbility());
|
||||
// {1}{S}: Phyrexian Snowcrusher gets +1/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{1}{S}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{S}")));
|
||||
}
|
||||
|
||||
private PhyrexianSnowcrusher(final PhyrexianSnowcrusher card) {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class PhyrexianTotem extends CardImpl {
|
|||
this.addAbility(new BlackManaAbility());
|
||||
// {2}{B}: {this} becomes a 5/5 black Horror artifact creature with trample until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(
|
||||
new PhyrexianTotemToken(), "", Duration.EndOfTurn), new ManaCostsImpl("{2}{B}")));
|
||||
new PhyrexianTotemToken(), "", Duration.EndOfTurn), new ManaCostsImpl<>("{2}{B}")));
|
||||
// Whenever {this} is dealt damage, if it's a creature, sacrifice that many permanents.
|
||||
this.addAbility(new PhyrexianTotemTriggeredAbility());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class PiaAndKiranNalaar extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldTriggeredAbility(effect));
|
||||
|
||||
// {2}{R}, Sacrifice an artifact: Pia and Kiran Nalaar deals 2 damage to any target.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl("{2}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl<>("{2}{R}"));
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(1, 1, new FilterControlledArtifactPermanent("an artifact"), true)));
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class PilferingHawk extends CardImpl {
|
|||
|
||||
// {S}, {T}: Draw a card, then discard a card.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new DrawDiscardControllerEffect(1, 1), new ManaCostsImpl("{S}")
|
||||
new DrawDiscardControllerEffect(1, 1), new ManaCostsImpl<>("{S}")
|
||||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class PilferingImp extends CardImpl {
|
|||
new DiscardCardYouChooseTargetEffect(
|
||||
StaticFilters.FILTER_CARD_NON_LAND,
|
||||
TargetController.OPPONENT
|
||||
), new ManaCostsImpl("{1}{B}")
|
||||
), new ManaCostsImpl<>("{1}{B}")
|
||||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public final class PilgrimOfJustice extends CardImpl {
|
|||
// Protection from red
|
||||
this.addAbility(ProtectionAbility.from(ObjectColor.RED));
|
||||
// {W}, Sacrifice Pilgrim of Justice: The next time a red source of your choice would deal damage this turn, prevent that damage.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PilgrimOfJusticeEffect(), new ManaCostsImpl("{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PilgrimOfJusticeEffect(), new ManaCostsImpl<>("{W}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public final class PilgrimOfVirtue extends CardImpl {
|
|||
// Protection from black
|
||||
this.addAbility(ProtectionAbility.from(ObjectColor.BLACK));
|
||||
// {W}, Sacrifice Pilgrim of Virtue: The next time a black source of your choice would deal damage this turn, prevent that damage.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PilgrimOfVirtueEffect(), new ManaCostsImpl("{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PilgrimOfVirtueEffect(), new ManaCostsImpl<>("{W}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class PiliPala extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {2}, {untap}: Add one mana of any color.
|
||||
Ability ability = new AnyColorManaAbility(new ManaCostsImpl("{2}"));
|
||||
Ability ability = new AnyColorManaAbility(new ManaCostsImpl<>("{2}"));
|
||||
ability.addCost(new UntapSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class PineWalker extends CardImpl {
|
|||
this.toughness = new MageInt(5);
|
||||
|
||||
// Morph {4}{G}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{4}{G}")));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{4}{G}")));
|
||||
// Whenever Pine Walker or another creature you control is turned face up, untap that creature.
|
||||
Effect effect = new UntapTargetEffect();
|
||||
effect.setText("untap that creature");
|
||||
|
|
|
|||
|
|
@ -48,14 +48,14 @@ public final class PiperOfTheSwarm extends CardImpl {
|
|||
|
||||
// {1}{B}, {T}: Create a 1/1 black Rat creature token.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new CreateTokenEffect(new RatToken()), new ManaCostsImpl("{1}{B}")
|
||||
new CreateTokenEffect(new RatToken()), new ManaCostsImpl<>("{1}{B}")
|
||||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
// {2}{B}{B}, {T}, Sacrifice three Rats: Gain control of target creature.
|
||||
ability = new SimpleActivatedAbility(
|
||||
new GainControlTargetEffect(Duration.Custom), new ManaCostsImpl("{2}{B}{B}")
|
||||
new GainControlTargetEffect(Duration.Custom), new ManaCostsImpl<>("{2}{B}{B}")
|
||||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(3, filter2)));
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class PitImp extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {B}: Pit Imp gets +1/+0 until end of turn. Activate this ability no more than twice each turn.
|
||||
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1,0,Duration.EndOfTurn), new ManaCostsImpl("{B}"), 2));
|
||||
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1,0,Duration.EndOfTurn), new ManaCostsImpl<>("{B}"), 2));
|
||||
}
|
||||
|
||||
private PitImp(final PitImp card) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class PitRaptor extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
this.addAbility(FirstStrikeAbility.getInstance());
|
||||
// At the beginning of your upkeep, sacrifice Pit Raptor unless you pay {2}{B}{B}
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{2}{B}{B}")), TargetController.YOU, false));
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl<>("{2}{B}{B}")), TargetController.YOU, false));
|
||||
}
|
||||
|
||||
private PitRaptor(final PitRaptor card) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class PitSpawn extends CardImpl {
|
|||
this.addAbility(FirstStrikeAbility.getInstance());
|
||||
|
||||
// At the beginning of your upkeep, sacrifice Pit Spawn unless you pay {B}{B}.
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{B}{B}")), TargetController.YOU, false));
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl<>("{B}{B}")), TargetController.YOU, false));
|
||||
|
||||
// Whenever Pit Spawn deals damage to a creature, exile that creature.
|
||||
this.addAbility(new DealsDamageToACreatureTriggeredAbility(new ExileTargetEffect("exile that creature"), false, false, true));
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class PitfallTrap extends CardImpl {
|
|||
this.subtype.add(SubType.TRAP);
|
||||
|
||||
// If exactly one creature is attacking, you may pay {W} rather than pay Pitfall Trap's mana cost.
|
||||
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl("{W}"), PitfallTrapCondition.instance));
|
||||
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl<>("{W}"), PitfallTrapCondition.instance));
|
||||
|
||||
// Destroy target attacking creature without flying.
|
||||
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class PixieQueen extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// {G}{G}{G}, {tap}: Target creature gains flying until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{G}{G}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{G}{G}{G}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class PlagueBoiler extends CardImpl {
|
|||
// At the beginning of your upkeep, put a plague counter on Plague Boiler.
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.PLAGUE.createInstance()), TargetController.YOU, false));
|
||||
// {1}{B}{G}: Put a plague counter on Plague Boiler or remove a plague counter from it.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PlagueBoilerEffect(), new ManaCostsImpl("{1}{B}{G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PlagueBoilerEffect(), new ManaCostsImpl<>("{1}{B}{G}")));
|
||||
// When Plague Boiler has three or more plague counters on it, sacrifice it. If you do, destroy all nonland permanents.
|
||||
this.addAbility(new PlagueBoilerTriggeredAbility());
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class PlagueDogs extends CardImpl {
|
|||
// When Plague Dogs dies, all creatures get -1/-1 until end of turn.
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new BoostAllEffect(-1, -1, Duration.EndOfTurn), false));
|
||||
// {2}, Sacrifice Plague Dogs: Draw a card.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{2}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{2}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class PlagueWitch extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {B}, {tap}, Discard a card: Target creature gets -1/-1 until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-1, -1, Duration.EndOfTurn), new ManaCostsImpl("{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-1, -1, Duration.EndOfTurn), new ManaCostsImpl<>("{B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new DiscardCardCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public final class Plaguebearer extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {X}{X}{B}: Destroy target nonblack creature with converted mana cost X.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{X}{X}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{X}{X}{B}"));
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
ability.setTargetAdjuster(XCMCPermanentAdjuster.instance);
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class PlanarGuide extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {3}{W}, Exile Planar Guide: Exile all creatures. At the beginning of the next end step, return those cards to the battlefield under their owners' control.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PlanarGuideExileEffect(), new ManaCostsImpl("{3}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PlanarGuideExileEffect(), new ManaCostsImpl<>("{3}{W}"));
|
||||
ability.addCost(new ExileSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class PlanarPortal extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{6}");
|
||||
|
||||
// {6}, {tap}: Search your library for a card and put that card into your hand. Then shuffle your library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false, true), new ManaCostsImpl("{6}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false, true), new ManaCostsImpl<>("{6}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class PlaneboundAccomplice extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {R}: You may put a planeswalker card from your hand onto the battlefield. Sacrifice it at the beginning of the next end step.
|
||||
this.addAbility(new SimpleActivatedAbility(new PlaneboundAccompliceEffect(), new ManaCostsImpl("{R}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new PlaneboundAccompliceEffect(), new ManaCostsImpl<>("{R}")));
|
||||
}
|
||||
|
||||
private PlaneboundAccomplice(final PlaneboundAccomplice card) {
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class PlaneswalkersFavor extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{G}");
|
||||
|
||||
// {3}{G}: Target opponent reveals a card at random from their hand. Target creature gets +X/+X until end of turn, where X is the revealed card's converted mana cost.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PlaneswalkersFavorEffect(), new ManaCostsImpl("{3}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PlaneswalkersFavorEffect(), new ManaCostsImpl<>("{3}{G}"));
|
||||
Target target = new TargetOpponent();
|
||||
ability.addTarget(target);
|
||||
target = new TargetCreaturePermanent();
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class PlaneswalkersFury extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{R}");
|
||||
|
||||
// {3}{R}: Target opponent reveals a card at random from their hand. Planeswalker's Fury deals damage equal to that card's converted mana cost to that player. Activate this ability only any time you could cast a sorcery.
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new PlaneswalkersFuryEffect(), new ManaCostsImpl("{3}{R}"));
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new PlaneswalkersFuryEffect(), new ManaCostsImpl<>("{3}{R}"));
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class PlaneswalkersMirth extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{W}");
|
||||
|
||||
// {3}{W}: Target opponent reveals a card at random from their hand. You gain life equal to that card's converted mana cost.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PlaneswalkersMirthEffect(), new ManaCostsImpl("{3}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PlaneswalkersMirthEffect(), new ManaCostsImpl<>("{3}{W}"));
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class PlaneswalkersMischief extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{U}");
|
||||
|
||||
// {3}{U}: Target opponent reveals a card at random from their hand. If it's an instant or sorcery card, exile it. You may cast it without paying its mana cost for as long as it remains exiled. At the beginning of the next end step, if you haven't cast it, return it to its owner's hand. Activate this ability only any time you could cast a sorcery.
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new PlaneswalkersMischiefEffect(), new ManaCostsImpl("{3}{U}"));
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new PlaneswalkersMischiefEffect(), new ManaCostsImpl<>("{3}{U}"));
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class PlaneswalkersScorn extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{B}");
|
||||
|
||||
// {3}{B}: Target opponent reveals a card at random from their hand. Target creature gets -X/-X until end of turn, where X is the revealed card's converted mana cost. Activate this ability only any time you could cast a sorcery.
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new PlaneswalkersScornEffect(), new ManaCostsImpl("{3}{B}"));
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new PlaneswalkersScornEffect(), new ManaCostsImpl<>("{3}{B}"));
|
||||
Target target = new TargetOpponent();
|
||||
ability.addTarget(target);
|
||||
target = new TargetCreaturePermanent();
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class PlatedRootwalla extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {2}{G}: Plated Rootwalla gets +3/+3 until end of turn. Activate this ability only once each turn.
|
||||
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(3, 3, Duration.EndOfTurn), new ManaCostsImpl("{2}{G}")));
|
||||
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(3, 3, Duration.EndOfTurn), new ManaCostsImpl<>("{2}{G}")));
|
||||
}
|
||||
|
||||
private PlatedRootwalla(final PlatedRootwalla card) {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class PloKoon extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ActivateAbilitiesAnyTimeYouCouldCastInstantEffect(MeditateAbility.class, "meditate abilities")));
|
||||
|
||||
// Meditate {1}{W}
|
||||
this.addAbility(new MeditateAbility(new ManaCostsImpl("{1}{W}")));
|
||||
this.addAbility(new MeditateAbility(new ManaCostsImpl<>("{1}{W}")));
|
||||
}
|
||||
|
||||
private PloKoon(final PloKoon card) {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public final class PlumesOfPeace extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new DontUntapInControllersUntapStepEnchantedEffect()));
|
||||
|
||||
// Forecast - {W}{U}, Reveal Plumes of Peace from your hand: Tap target creature.
|
||||
ForecastAbility ability = new ForecastAbility(new TapTargetEffect(), new ManaCostsImpl("{W}{U}"));
|
||||
ForecastAbility ability = new ForecastAbility(new TapTargetEffect(), new ManaCostsImpl<>("{W}{U}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class Plunder extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(filter));
|
||||
// Suspend 4-{1}{R}
|
||||
this.addAbility(new SuspendAbility(4, new ManaCostsImpl("{1}{R}"), this));
|
||||
this.addAbility(new SuspendAbility(4, new ManaCostsImpl<>("{1}{R}"), this));
|
||||
}
|
||||
|
||||
private Plunder(final Plunder card) {
|
||||
|
|
|
|||
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