mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
Refactor: Fix raw use of parameterized class 'ManaCostsImpl' - 'i' cards (#9058)
This commit is contained in:
parent
60ce3ecd52
commit
a1bc4630f5
102 changed files with 107 additions and 107 deletions
|
|
@ -30,7 +30,7 @@ public final class IcatianCrier extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {1}{W}, {tap}, Discard a card: Create two 1/1 white Citizen creature tokens.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new CitizenToken(), 2), new ManaCostsImpl("{1}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new CitizenToken(), 2), new ManaCostsImpl<>("{1}{W}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new DiscardCardCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -31,10 +31,10 @@ public final class IcatianInfantry extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {1}: Icatian Infantry gains first strike until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{1}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}")));
|
||||
|
||||
// {1}: Icatian Infantry gains banding until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(BandingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{1}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(BandingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}")));
|
||||
}
|
||||
|
||||
private IcatianInfantry(final IcatianInfantry card) {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class IcatianLieutenant extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {1}{W}: Target Soldier creature gets +1/+0 until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{1}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{W}"));
|
||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class IcatianPriest extends CardImpl {
|
|||
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{1}{W}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{W}{W}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class IcatianScout extends CardImpl {
|
|||
|
||||
// {1}, {tap}: Target creature gains first strike until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(
|
||||
FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{1}"));
|
||||
FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public final class IceCauldron extends CardImpl {
|
|||
|
||||
// {X}, {T}: Put a charge counter on Ice Cauldron and exile a nonland card from your hand. You may cast that card for as long as it remains exiled. Note the type and amount of mana spent to pay this activation cost. Activate this ability only if there are no charge counters on Ice Cauldron.
|
||||
ConditionalActivatedAbility ability = new ConditionalActivatedAbility(
|
||||
Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.CHARGE.createInstance(), true), new ManaCostsImpl("{X}"), new SourceHasCounterCondition(CounterType.CHARGE, 0, 0));
|
||||
Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.CHARGE.createInstance(), true), new ManaCostsImpl<>("{X}"), new SourceHasCounterCondition(CounterType.CHARGE, 0, 0));
|
||||
ability.addEffect(new IceCauldronExileEffect());
|
||||
ability.addEffect(new IceCauldronNoteManaEffect());
|
||||
ability.addCost(new TapSourceCost());
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ class IceCaveEffect extends OneShotEffect {
|
|||
Spell spell = (Spell) game.getStack().getStackObject(targetPointer.getFirst(game, source));
|
||||
if (sourcePermanent != null && spell != null && controller != null) {
|
||||
Player spellController = game.getPlayer(spell.getControllerId());
|
||||
Cost cost = new ManaCostsImpl(spell.getSpellAbility().getManaCosts().getText());
|
||||
Cost cost = new ManaCostsImpl<>(spell.getSpellAbility().getManaCosts().getText());
|
||||
if (spellController != null) {
|
||||
for (UUID playerId : game.getState().getPlayersInRange(source.getControllerId(), game)) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class Iceberg extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.ICE.createInstance())));
|
||||
|
||||
// {3}: Put an ice counter on Iceberg.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.ICE.createInstance(1)), new ManaCostsImpl("{3}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.ICE.createInstance(1)), new ManaCostsImpl<>("{3}")));
|
||||
|
||||
// Remove an ice counter from Iceberg: Add {C}.
|
||||
this.addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, Mana.ColorlessMana(1),
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class IcebindPillar extends CardImpl {
|
|||
this.addSuperType(SuperType.SNOW);
|
||||
|
||||
// {S}, {T}: Tap target artifact or creature.
|
||||
Ability ability = new SimpleActivatedAbility(new TapTargetEffect(), new ManaCostsImpl("{S}"));
|
||||
Ability ability = new SimpleActivatedAbility(new TapTargetEffect(), new ManaCostsImpl<>("{S}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_CREATURE));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class Icefall extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
|
||||
// Recover {R}{R}
|
||||
this.addAbility(new RecoverAbility(new ManaCostsImpl("{R}{R}"), this));
|
||||
this.addAbility(new RecoverAbility(new ManaCostsImpl<>("{R}{R}"), this));
|
||||
}
|
||||
|
||||
private Icefall(final Icefall card) {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class IcefeatherAven extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// Morph {1}{G}{U}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{1}{G}{U}")));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{1}{G}{U}")));
|
||||
// When Icefeather Aven is turned face up, you may return another target creature to its owner's hand.
|
||||
Ability ability = new TurnedFaceUpSourceTriggeredAbility(new ReturnToHandTargetEffect(), false, true);
|
||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class IcehideTroll extends CardImpl {
|
|||
// {S}{S}: Icehide Troll gets +2/+0 and gains indestructible until end of turn. Tap it.
|
||||
Ability ability = new SimpleActivatedAbility(new BoostSourceEffect(
|
||||
2, 0, Duration.EndOfTurn
|
||||
).setText("{this} gets +2/+0"), new ManaCostsImpl("{S}{S}"));
|
||||
).setText("{this} gets +2/+0"), new ManaCostsImpl<>("{S}{S}"));
|
||||
ability.addEffect(new GainAbilitySourceEffect(
|
||||
IndestructibleAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("and gains indestructible until end of turn."));
|
||||
|
|
|
|||
|
|
@ -27,10 +27,10 @@ public final class IchorSlick extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
|
||||
// Madness {3}{B}
|
||||
this.addAbility(new MadnessAbility(new ManaCostsImpl("{3}{B}")));
|
||||
this.addAbility(new MadnessAbility(new ManaCostsImpl<>("{3}{B}")));
|
||||
}
|
||||
|
||||
private IchorSlick(final IchorSlick card) {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public final class IdleThoughts extends CardImpl {
|
|||
|
||||
// {2}: Draw a card if you have no cards in hand.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ConditionalOneShotEffect(
|
||||
new DrawCardSourceControllerEffect(2), new CardsInHandCondition(), "Draw a card if you have no cards in hand"), new ManaCostsImpl("{2}")));
|
||||
new DrawCardSourceControllerEffect(2), new CardsInHandCondition(), "Draw a card if you have no cards in hand"), new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private IdleThoughts(final IdleThoughts card) {
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class IfhBiffEfreet extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// {G}: Ifh-Biff Efreet deals 1 damage to each creature with flying and each player. Any player may activate this ability.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageAllEffect(1, filter), new ManaCostsImpl("{G}"));
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageAllEffect(1, filter), new ManaCostsImpl<>("{G}"));
|
||||
Effect effect = new DamagePlayersEffect(1);
|
||||
effect.setText("and each player");
|
||||
ability.addEffect(effect);
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public final class IfnirDeadlands extends CardImpl {
|
|||
this.addAbility(manaAbility);
|
||||
|
||||
// {2}{B}{B}, {t}, Sacrifice a Desert: Put two -1/-1 counters on target creature an opponent controls. Activate this ability only any time you could cast a sorcery.
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.M1M1.createInstance(2)), new ManaCostsImpl("{2}{B}{B}"));
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.M1M1.createInstance(2)), new ManaCostsImpl<>("{2}{B}{B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(1, 1, filter, true)));
|
||||
ability.addTarget(new TargetOpponentsCreaturePermanent());
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class IgneousCur extends CardImpl {
|
|||
|
||||
// {1}{R}: Igneous Cur gets +2/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl("{1}{R}")
|
||||
new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{R}")
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class IgneousGolem extends CardImpl {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
// {2}: Igneous Golem gains trample until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private IgneousGolem(final IgneousGolem card) {
|
||||
|
|
|
|||
|
|
@ -30,9 +30,9 @@ public final class IgneousPouncer extends CardImpl {
|
|||
// Haste
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
// Swampcycling {2}
|
||||
this.addAbility(new SwampcyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new SwampcyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
// Mountaincycling {2}
|
||||
this.addAbility(new MountaincyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new MountaincyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private IgneousPouncer(final IgneousPouncer card) {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class IgniteTheFuture extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new IgniteTheFutureEffect());
|
||||
|
||||
// Flashback {7}{R}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{7}{R}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{7}{R}")));
|
||||
}
|
||||
|
||||
private IgniteTheFuture(final IgniteTheFuture card) {
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public final class IgnitionTeam extends CardImpl {
|
|||
// {2}{R}, Remove a +1/+1 counter from Ignition Team: Target land becomes a 4/4 red Elemental creature until end of turn. It's still a land.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureTargetEffect(
|
||||
new ElementalCreatureToken(4, 4, "4/4 red Elemental creature", new ObjectColor("R")),
|
||||
false, true, Duration.EndOfTurn), new ManaCostsImpl("{2}{R}"));
|
||||
false, true, Duration.EndOfTurn), new ManaCostsImpl<>("{2}{R}"));
|
||||
ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance(1)));
|
||||
ability.addTarget(new TargetLandPermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public final class IizukaTheRuthless extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
this.addAbility(new BushidoAbility(2));
|
||||
// {2}{R}, Sacrifice a Samurai: Samurai creatures you control gain double strike until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn, filter, false), new ManaCostsImpl("{2}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn, filter, false), new ManaCostsImpl<>("{2}{R}"));
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(1, 1, filter, true)));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class IkiralOutrider extends LevelerCard {
|
|||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
this.addAbility(new LevelUpAbility(new ManaCostsImpl("{4}")));
|
||||
this.addAbility(new LevelUpAbility(new ManaCostsImpl<>("{4}")));
|
||||
|
||||
Abilities<Ability> abilities1 = new AbilitiesImpl<>();
|
||||
abilities1.add(VigilanceAbility.getInstance());
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class IllGottenInheritance extends CardImpl {
|
|||
// {5}{B}, Sacrifice Ill-Gotten Inheritance: It deals 4 damage to target opponent and you gain 4 life.
|
||||
ability = new SimpleActivatedAbility(
|
||||
new DamageTargetEffect(4, "it"),
|
||||
new ManaCostsImpl("{5}{B}")
|
||||
new ManaCostsImpl<>("{5}{B}")
|
||||
);
|
||||
ability.addEffect(new GainLifeEffect(4).concatBy("and"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class IlluminatedWings extends CardImpl {
|
|||
// Enchanted creature has flying.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(FlyingAbility.getInstance(), AttachmentType.AURA)));
|
||||
// {2}, Sacrifice Illuminated Wings: Draw a card.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{2}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{2}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class IllusionaryForces extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// Cumulative upkeep {U}
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{U}")));
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{U}")));
|
||||
}
|
||||
|
||||
private IllusionaryForces(final IllusionaryForces card) {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class IllusionaryPresence extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// Cumulative upkeep {U}
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{U}")));
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{U}")));
|
||||
|
||||
// At the beginning of your upkeep, choose a land type. Illusionary Presence gains landwalk of the chosen type until end of turn.
|
||||
Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new ChooseBasicLandTypeEffect(Outcome.Neutral), TargetController.YOU, false);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class IllusionaryTerrain extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{U}{U}");
|
||||
|
||||
// Cumulative upkeep {2}
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{2}")));
|
||||
|
||||
// As Illusionary Terrain enters the battlefield, choose two basic land types.
|
||||
this.addAbility(new AsEntersBattlefieldAbility(new ChooseTwoBasicLandTypesEffect(Outcome.Neutral)));
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class IllusionaryWall extends CardImpl {
|
|||
// First strike
|
||||
this.addAbility(FirstStrikeAbility.getInstance());
|
||||
// Cumulative upkeep {U}
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{U}")));
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{U}")));
|
||||
}
|
||||
|
||||
private IllusionaryWall(final IllusionaryWall card) {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class ImaginaryThreats extends CardImpl {
|
|||
getSpellAbility().addEffect(new DontUntapInPlayersNextUntapStepAllEffect(new FilterCreaturePermanent())
|
||||
.setText("During that player's next untap step, creatures they control don't untap"));
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class ImmobilizerEldrazi extends CardImpl {
|
|||
this.addAbility(new DevoidAbility(this.color));
|
||||
|
||||
// {2}{C}: Each creature with toughness greater than its power can't block this turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBlockAllEffect(filter, Duration.EndOfTurn), new ManaCostsImpl("{2}{C}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBlockAllEffect(filter, Duration.EndOfTurn), new ManaCostsImpl<>("{2}{C}"));
|
||||
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public final class ImmobilizingInk extends CardImpl {
|
|||
Duration.WhileOnBattlefield,"Enchanted creature doesn't untap during its controller's untap step.")));
|
||||
|
||||
// Enchanted creature has "{1}, Discard a card: Untap this creature."
|
||||
Ability untapAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapSourceEffect(), new ManaCostsImpl("{1}"));
|
||||
Ability untapAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapSourceEffect(), new ManaCostsImpl<>("{1}"));
|
||||
untapAbility.addCost(new DiscardTargetCost(new TargetCardInHand()));
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
|
||||
new GainAbilityAttachedEffect(untapAbility,
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public final class ImmolationShaman extends CardImpl {
|
|||
new BoostSourceEffect(
|
||||
3, 3, Duration.EndOfTurn
|
||||
).setText("{this} gets +3/+3"),
|
||||
new ManaCostsImpl("{3}{R}{R}")
|
||||
new ManaCostsImpl<>("{3}{R}{R}")
|
||||
);
|
||||
ability.addEffect(new GainAbilitySourceEffect(
|
||||
new MenaceAbility(), Duration.EndOfTurn
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class ImperialGunner extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {1},{T}: Imperial Gunner deals 1 damage to target player or Starship creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl("{1}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl<>("{1}"));
|
||||
ability.addTarget(new TargetAnyTarget(filter));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class ImperialHellkite extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// Morph {6}{R}{R}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{6}{R}{R}")));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{6}{R}{R}")));
|
||||
|
||||
// When Imperial Hellkite is turned face up, you may search your library for a Dragon card, reveal it, and put it into your hand. If you do, shuffle your library.
|
||||
Effect effect = new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0, 1, new FilterBySubtypeCard(SubType.DRAGON)), true, true);
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class ImplementOfCombustion extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
|
||||
|
||||
// {R}, Sacrifice Implement of Combustion: It deals 1 damage to target player.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1, "It"), new ManaCostsImpl("{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1, "It"), new ManaCostsImpl<>("{R}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetPlayerOrPlaneswalker());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class ImplementOfExamination extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
|
||||
|
||||
// {U}, Sacrifice Implement of Examination: Draw a card.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{U}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class ImplementOfFerocity extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
|
||||
|
||||
// {G}, Sacrifice Implement of Ferocity: Put a +1/+1 counter on target creature. Activate this ability only any time you could cast a sorcery.
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl("{G}"));
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl<>("{G}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public final class ImplementOfImprovement extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
|
||||
|
||||
// {W}, Sacrifice Implement of Improvement: You gain 2 life.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(2), new ManaCostsImpl("{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(2), new ManaCostsImpl<>("{W}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class ImplementOfMalice extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||
|
||||
// {B}, Sacrifice Implement of Malice: Target player discards a card. Activate this ability only any time you could cast a sorcery.
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1),new ManaCostsImpl("{B}"));
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1),new ManaCostsImpl<>("{B}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetPlayer());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public final class ImplementsOfSacrifice extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{2}");
|
||||
|
||||
// {1}, {tap}, Sacrifice Implements of Sacrifice: Add two mana of any one color.
|
||||
SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, new AddManaOfAnyColorEffect(2), new ManaCostsImpl("{1}"));
|
||||
SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, new AddManaOfAnyColorEffect(2), new ManaCostsImpl<>("{1}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class ImposingVantasaur extends CardImpl {
|
|||
this.addAbility(VigilanceAbility.getInstance());
|
||||
|
||||
// Cycling {1}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{1}")));
|
||||
}
|
||||
|
||||
private ImposingVantasaur(final ImposingVantasaur card) {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class ImprobableAlliance extends CardImpl {
|
|||
|
||||
// {4}{U}{R}: Draw a card, then discard a card.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new DrawDiscardControllerEffect(1, 1), new ManaCostsImpl("{4}{U}{R}")
|
||||
new DrawDiscardControllerEffect(1, 1), new ManaCostsImpl<>("{4}{U}{R}")
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class ImpromptuRaid extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{3}{R/G}");
|
||||
|
||||
// {2}{RG}: Reveal the top card of your library. If it isn't a creature card, put it into your graveyard. Otherwise, put that card onto the battlefield. That creature gains haste. Sacrifice it at the beginning of the next end step.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ImpromptuRaidEffect(), new ManaCostsImpl("{2}{R/G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ImpromptuRaidEffect(), new ManaCostsImpl<>("{2}{R/G}")));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public final class ImprovisedArmor extends CardImpl {
|
|||
// Enchanted creature gets +2/+5.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2, 5, Duration.WhileOnBattlefield)));
|
||||
// Cycling {3}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{3}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{3}")));
|
||||
}
|
||||
|
||||
private ImprovisedArmor(final ImprovisedArmor card) {
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ public final class InallaArchmageRitualist extends CardImpl {
|
|||
// Eminence - Whenever another nontoken Wizard enters the battlefield under your control, if Inalla, Archmage Ritualist is in the command zone or on the battlefield, you may pay {1}. If you do, create a token that's a copy of that Wizard. The token gains haste. Exile it at the beginning of the next end step.
|
||||
Ability ability = new ConditionalInterveningIfTriggeredAbility(
|
||||
new EntersBattlefieldControlledTriggeredAbility(Zone.ALL, new DoIfCostPaid(
|
||||
new InallaArchmageRitualistEffect(), new ManaCostsImpl("{1}"), "Pay {1} to create a token copy?"),
|
||||
new InallaArchmageRitualistEffect(), new ManaCostsImpl<>("{1}"), "Pay {1} to create a token copy?"),
|
||||
filter, false, SetTargetPointer.PERMANENT, ""),
|
||||
SourceOnBattlefieldOrCommandZoneCondition.instance,
|
||||
"Whenever another nontoken Wizard enters the battlefield under your control, "
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class IncendiaryOracle extends CardImpl {
|
|||
|
||||
// {1}{R}: Incendiary Oracle gets +1/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{1}{R}")));
|
||||
new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{R}")));
|
||||
|
||||
// If a creature dealt damage by Incendiary Oracle this turn would die, exile it instead.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class IncitedRabble extends CardImpl {
|
|||
this.addAbility(new AttacksEachCombatStaticAbility());
|
||||
|
||||
// {2}: Incited Rabble gets +1/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private IncitedRabble(final IncitedRabble card) {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class IncorrigibleYouths extends CardImpl {
|
|||
// Haste
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
// Madness {2}{R}
|
||||
this.addAbility(new MadnessAbility(new ManaCostsImpl("{2}{R}")));
|
||||
this.addAbility(new MadnessAbility(new ManaCostsImpl<>("{2}{R}")));
|
||||
}
|
||||
|
||||
private IncorrigibleYouths(final IncorrigibleYouths card) {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class IncreasingAmbition extends CardImpl {
|
|||
));
|
||||
|
||||
// Flashback {7}{B}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{7}{B}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{7}{B}")));
|
||||
}
|
||||
|
||||
private IncreasingAmbition(final IncreasingAmbition card) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class IncreasingConfusion extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetPlayer());
|
||||
|
||||
// Flashback {X}{U}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{X}{U}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{X}{U}")));
|
||||
}
|
||||
|
||||
private IncreasingConfusion(final IncreasingConfusion card) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class IncreasingDevotion extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new IncreasingDevotionEffect());
|
||||
|
||||
// Flashback {7}{W}{W}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{7}{W}{W}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{7}{W}{W}")));
|
||||
}
|
||||
|
||||
private IncreasingDevotion(final IncreasingDevotion card) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class IncreasingSavagery extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
|
||||
// Flashback {5}{G}{G}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{5}{G}{G}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{5}{G}{G}")));
|
||||
}
|
||||
|
||||
private IncreasingSavagery(final IncreasingSavagery card) {
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class IncreasingVengeance extends CardImpl {
|
|||
this.getSpellAbility().addTarget(target);
|
||||
|
||||
// Flashback {3}{R}{R}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{3}{R}{R}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{3}{R}{R}")));
|
||||
}
|
||||
|
||||
private IncreasingVengeance(final IncreasingVengeance card) {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class IndathaCrystal extends CardImpl {
|
|||
this.addAbility(new GreenManaAbility());
|
||||
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private IndathaCrystal(final IndathaCrystal card) {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class IndigoFaerie extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// {U}: Target permanent becomes blue in addition to its other colors until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesBlueTargetEffect(), new ManaCostsImpl("{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesBlueTargetEffect(), new ManaCostsImpl<>("{U}"));
|
||||
ability.addTarget(new TargetPermanent());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -30,11 +30,11 @@ public final class InfectedVermin extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {2}{B}: Infected Vermin deals 1 damage to each creature and each player.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageEverythingEffect(1), new ManaCostsImpl("{2}{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageEverythingEffect(1), new ManaCostsImpl<>("{2}{B}")));
|
||||
// Threshold - {3}{B}: Infected Vermin deals 3 damage to each creature and each player. Activate this ability only if seven or more cards are in your graveyard.
|
||||
Ability ability = new ConditionalActivatedAbility(Zone.BATTLEFIELD,
|
||||
new DamageEverythingEffect(3),
|
||||
new ManaCostsImpl("{3}{B}"),
|
||||
new ManaCostsImpl<>("{3}{B}"),
|
||||
new CardsInControllerGraveyardCondition(7));
|
||||
ability.setAbilityWord(AbilityWord.THRESHOLD);
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class InfernalCaretaker extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// Morph {3}{B}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{3}{B}")));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{3}{B}")));
|
||||
|
||||
// When Infernal Caretaker is turned face up, return all Zombie cards from all graveyards to their owners' hands.
|
||||
Effect effect = new ReturnToHandFromGraveyardAllEffect(zombieCard);
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public final class InfernalSpawnOfEvil extends CardImpl {
|
|||
// Activate this ability only during your upkeep and only once each turn.
|
||||
Ability ability = new LimitedTimesPerTurnActivatedAbility(Zone.HAND, new DamageTargetEffect(1),
|
||||
new CompositeCost(
|
||||
new ManaCostsImpl("{1}{B}"),
|
||||
new ManaCostsImpl<>("{1}{B}"),
|
||||
new CompositeCost(
|
||||
new RevealSourceFromYourHandCost(),
|
||||
new SayCost("It's coming!"),
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public final class InfernoFist extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2, 0)));
|
||||
|
||||
// {R}, Sacrifice Inferno Fist: Inferno Fist deals 2 damage to any target.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl("{R}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl<>("{R}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public final class InfernoJet extends CardImpl {
|
|||
getSpellAbility().addTarget(new TargetOpponentOrPlaneswalker());
|
||||
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public final class InfernoOfTheStarMounts extends CardImpl {
|
|||
this.addAbility(HasteAbility.getInstance());
|
||||
|
||||
// {R}: Inferno of the Star Mounts gets +1/+0 until end of turn. When its power becomes 20 this way, it deals 20 damage to any target.
|
||||
Ability ability = new SimpleActivatedAbility(new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{R}"));
|
||||
ability.addEffect(new InfernoOfTheStarMountsEffect());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class InfernoTrap extends CardImpl {
|
|||
this.subtype.add(SubType.TRAP);
|
||||
|
||||
// If you've been dealt damage by two or more creatures this turn, you may pay {R} rather than pay Inferno Trap's mana cost.
|
||||
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl("{R}"), InfernoTrapCondition.instance), new InfernoTrapWatcher());
|
||||
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl<>("{R}"), InfernoTrapCondition.instance), new InfernoTrapWatcher());
|
||||
|
||||
// Inferno Trap deals 4 damage to target creature.
|
||||
this.getSpellAbility().addEffect(new DamageTargetEffect(4));
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class InfiltratorIlKor extends CardImpl {
|
|||
// Shadow
|
||||
this.addAbility(ShadowAbility.getInstance());
|
||||
// Suspend 2-{1}{U}
|
||||
this.addAbility(new SuspendAbility(2, new ManaCostsImpl("{1}{U}"), this));
|
||||
this.addAbility(new SuspendAbility(2, new ManaCostsImpl<>("{1}{U}"), this));
|
||||
}
|
||||
|
||||
private InfiltratorIlKor(final InfiltratorIlKor card) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class IngeniousSkaab extends CardImpl {
|
|||
this.addAbility(new ProwessAbility());
|
||||
|
||||
// {U}: Ingenius Skaab gets +1/-1 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, -1, Duration.EndOfTurn), new ManaCostsImpl("{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, -1, Duration.EndOfTurn), new ManaCostsImpl<>("{U}")));
|
||||
}
|
||||
|
||||
private IngeniousSkaab(final IngeniousSkaab card) {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public final class Inheritance extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{W}");
|
||||
|
||||
// Whenever a creature dies, you may pay {3}. If you do, draw a card.
|
||||
Ability ability = new DiesCreatureTriggeredAbility(new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{3}")), false);
|
||||
Ability ability = new DiesCreatureTriggeredAbility(new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{3}")), false);
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class InitiatesOfTheEbonHand extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {1}: Add {B}. If this ability has been activated four or more times this turn, sacrifice Initiates of the Ebon Hand at the beginning of the next end step.
|
||||
SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, BlackMana(1), new ManaCostsImpl("{1}"));
|
||||
SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, BlackMana(1), new ManaCostsImpl<>("{1}"));
|
||||
ability.addEffect(new InitiatesOfTheEbonHandEffect());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public final class InkEyesServantOfOni extends CardImpl {
|
|||
this.addAbility(new InkEyesServantOfOniTriggeredAbility());
|
||||
|
||||
// {1}{B}: Regenerate Ink-Eyes.
|
||||
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 InkEyesServantOfOni(final InkEyesServantOfOni card) {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public final class InkfathomWitch extends CardImpl {
|
|||
// Fear
|
||||
this.addAbility(FearAbility.getInstance());
|
||||
// {2}{U}{B}: Each unblocked creature has base power and toughness 4/1 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SetPowerToughnessAllEffect(4, 1, Duration.EndOfTurn, filter, true), new ManaCostsImpl("{2}{U}{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SetPowerToughnessAllEffect(4, 1, Duration.EndOfTurn, filter, true), new ManaCostsImpl<>("{2}{U}{B}")));
|
||||
}
|
||||
|
||||
private InkfathomWitch(final InkfathomWitch card) {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class InnerFlameIgniter extends CardImpl {
|
|||
|
||||
// {2}{R}: Creatures you control get +1/+0 until end of turn. If this is the third time this ability has resolved this turn, creatures you control gain first strike until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new BoostControlledEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{2}{R}")
|
||||
new BoostControlledEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{2}{R}")
|
||||
);
|
||||
ContinuousEffect effectIf3rdResolution = new GainAbilityControlledEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURES);
|
||||
ability.addEffect(new IfAbilityHasResolvedXTimesEffect(Outcome.AddAbility, 3, effectIf3rdResolution));
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public final class InniazTheGaleForce extends CardImpl {
|
|||
// {2}{W/U}: Attacking creatures with flying get +1/+1 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(new BoostAllEffect(
|
||||
1, 1, Duration.EndOfTurn, filter, false
|
||||
), new ManaCostsImpl("{2}{W/U}")));
|
||||
), new ManaCostsImpl<>("{2}{W/U}")));
|
||||
|
||||
// Whenever three or more creatures you control with flying attack, each player gains control
|
||||
// of a nonland permanent of your choice controlled by the player to their right.
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class InsatiableGorgers extends CardImpl {
|
|||
this.addAbility(new AttacksEachCombatStaticAbility());
|
||||
|
||||
// Madness {3}{R}
|
||||
this.addAbility(new MadnessAbility(new ManaCostsImpl("{3}{R}")));
|
||||
this.addAbility(new MadnessAbility(new ManaCostsImpl<>("{3}{R}")));
|
||||
}
|
||||
|
||||
private InsatiableGorgers(final InsatiableGorgers card) {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class InsidiousBookworms extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Insidious Bookworms dies, you may pay {1}{B}. If you do, target player discards a card at random.
|
||||
Ability ability = new DiesSourceTriggeredAbility(new DoIfCostPaid(new DiscardTargetEffect(1, true), new ManaCostsImpl("{1}{B}")));
|
||||
Ability ability = new DiesSourceTriggeredAbility(new DoIfCostPaid(new DiscardTargetEffect(1, true), new ManaCostsImpl<>("{1}{B}")));
|
||||
ability.addTarget(new TargetPlayer());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public final class InsidiousMist extends CardImpl {
|
|||
|
||||
// Whenever Insideous Mist attacks and isn't blocked, you may pay {2}{B}. If you do, transform it.
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(new AttacksAndIsNotBlockedTriggeredAbility(new DoIfCostPaid(new TransformSourceEffect(), new ManaCostsImpl("{2}{B}"), "Pay {2}{B} to transform?")));
|
||||
this.addAbility(new AttacksAndIsNotBlockedTriggeredAbility(new DoIfCostPaid(new TransformSourceEffect(), new ManaCostsImpl<>("{2}{B}"), "Pay {2}{B} to transform?")));
|
||||
}
|
||||
|
||||
private InsidiousMist(final InsidiousMist card) {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class Instigator extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {1}{B}{B}, {tap}, Discard a card: Creatures target player controls attack this turn if able.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new InstigatorEffect(), new ManaCostsImpl("{1}{B}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new InstigatorEffect(), new ManaCostsImpl<>("{1}{B}{B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new DiscardCardCost());
|
||||
ability.addTarget(new TargetPlayer());
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public final class InstrumentOfTheBards extends CardImpl {
|
|||
// {3}{G}, {T}: Search your library for a creature card with mana value equal to the number of harmony
|
||||
// counters on Instrument of Bards, reveal it, and put it into your hand.
|
||||
// If that card is legendary, create a Treasure token. Then shuffle.
|
||||
Ability ability = new SimpleActivatedAbility(new InstrumentOfTheBardsEffect(), new ManaCostsImpl("{3}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(new InstrumentOfTheBardsEffect(), new ManaCostsImpl<>("{3}{G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class InterventionPact extends CardImpl {
|
|||
// The next time a source of your choice would deal damage to you this turn, prevent that damage. You gain life equal to the damage prevented this way.
|
||||
this.getSpellAbility().addEffect(new InterventionPactEffect());
|
||||
// At the beginning of your next upkeep, pay {1}{W}{W}. If you don't, you lose the game.
|
||||
this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new PactDelayedTriggeredAbility(new ManaCostsImpl("{1}{W}{W}")), false));
|
||||
this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new PactDelayedTriggeredAbility(new ManaCostsImpl<>("{1}{W}{W}")), false));
|
||||
}
|
||||
|
||||
private InterventionPact(final InterventionPact card) {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class IntetTheDreamer extends CardImpl {
|
|||
// Whenever Intet, the Dreamer deals combat damage to a player, you may pay {2}{U}. If you do, exile the top card of your library face down.
|
||||
// You may play that card without paying its mana cost for as long as Intet remains on the battlefield.
|
||||
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(
|
||||
new DoIfCostPaid(new IntetTheDreamerExileEffect(), new ManaCostsImpl("{2}{U}")), false, true));
|
||||
new DoIfCostPaid(new IntetTheDreamerExileEffect(), new ManaCostsImpl<>("{2}{U}")), false, true));
|
||||
|
||||
// You may look at that card for as long as it remains exiled.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.ALL, new IntetTheDreamerLookEffect()));
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class IonStorm extends CardImpl {
|
|||
|
||||
|
||||
// {1}{R}, Remove a +1/+1 counter or a charge counter from a permanent you control: Ion Storm deals 2 damage to any target.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl("{1}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl<>("{1}{R}"));
|
||||
ability.addCost(new OrCost(" Remove a +1/+1 counter or a charge counter from a permanent you control", new RemoveCounterCost(new TargetControlledPermanent(), CounterType.P1P1), new RemoveCounterCost(new TargetControlledPermanent(), CounterType.CHARGE)));
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public final class IpnuRivulet extends CardImpl {
|
|||
this.addAbility(manaAbility);
|
||||
|
||||
// {1}{U}, {t}, Sacrifice a Desert: Target player puts the top four cards of their library into their graveyard.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutLibraryIntoGraveTargetEffect(4), new ManaCostsImpl("{1}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutLibraryIntoGraveTargetEffect(4), new ManaCostsImpl<>("{1}{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(1, 1, filter, true)));
|
||||
ability.addTarget(new TargetPlayer());
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class IreShaman extends CardImpl {
|
|||
this.addAbility(new MenaceAbility());
|
||||
|
||||
// Megamorph {R}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{R}"), true));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{R}"), true));
|
||||
|
||||
// When Ire Shaman is turned face up, exile the top card of your library. Until end of turn, you may play that card.
|
||||
this.addAbility(new TurnedFaceUpSourceTriggeredAbility(new ExileTopXMayPlayUntilEndOfTurnEffect(1), false));
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class IronLance extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{2}");
|
||||
|
||||
// {3}, {tap}: Target creature gains first strike until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{3}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{3}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class IronWill extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new BoostTargetEffect(0, 4, Duration.EndOfTurn));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private IronWill(final IronWill card) {
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class IronclawBuzzardiers extends CardImpl {
|
|||
// Ironclaw Buzzardiers can't block creatures with power 2 or greater.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBlockCreaturesSourceEffect(filter)));
|
||||
// {R}: Ironclaw Buzzardiers gains flying until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{R}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{R}")));
|
||||
}
|
||||
|
||||
private IronclawBuzzardiers(final IronclawBuzzardiers card) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class IronfistCrusher extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CanBlockAdditionalCreatureEffect(0)));
|
||||
|
||||
// Morph {3}{W}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{3}{W}")));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{3}{W}")));
|
||||
}
|
||||
|
||||
private IronfistCrusher(final IronfistCrusher card) {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public final class IronrootWarlord extends CardImpl {
|
|||
|
||||
// {3}{G}{W}: Create a 1/1 white Soldier creature token.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new CreateTokenEffect(new SoldierToken()), new ManaCostsImpl("{3}{G}{W}")
|
||||
new CreateTokenEffect(new SoldierToken()), new ManaCostsImpl<>("{3}{G}{W}")
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class IrrigatedFarmland extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldTappedAbility());
|
||||
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ class IsarethTheAwakenerCreateReflexiveTriggerEffect extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
ManaCosts cost = new ManaCostsImpl("{X}");
|
||||
ManaCosts cost = new ManaCostsImpl<>("{X}");
|
||||
if (player == null
|
||||
|| !player.chooseUse(Outcome.BoostCreature, "Pay " + cost.getText() + "?", source, game)) {
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public final class IshkanahGrafwidow extends CardImpl {
|
|||
|
||||
// {5}{B}: Target opponent loses 1 life for each Spider you control.
|
||||
PermanentsOnBattlefieldCount count = new PermanentsOnBattlefieldCount(filter);
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeTargetEffect(count), new ManaCostsImpl("{6}{B}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeTargetEffect(count), new ManaCostsImpl<>("{6}{B}"));
|
||||
ability.addTarget(new TargetOpponent());
|
||||
ability.addHint(new ValueHint("Spiders you control", count));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class IslandFishJasconius extends CardImpl {
|
|||
// At the beginning of your upkeep, you may pay {U}{U}{U}. If you do, untap Island Fish Jasconius.
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(
|
||||
Zone.BATTLEFIELD,
|
||||
new DoIfCostPaid(new UntapSourceEffect(), new ManaCostsImpl("{U}{U}{U}")),
|
||||
new DoIfCostPaid(new UntapSourceEffect(), new ManaCostsImpl<>("{U}{U}{U}")),
|
||||
TargetController.YOU,
|
||||
false));
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public final class IthHighArcanist extends CardImpl {
|
|||
ability.addTarget(new TargetAttackingCreature());
|
||||
this.addAbility(ability);
|
||||
// Suspend 4-{W}{U}
|
||||
this.addAbility(new SuspendAbility(4, new ManaCostsImpl("{W}{U}"), this));
|
||||
this.addAbility(new SuspendAbility(4, new ManaCostsImpl<>("{W}{U}"), this));
|
||||
}
|
||||
|
||||
private IthHighArcanist(final IthHighArcanist card) {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class IthorianInitiate extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true), true));
|
||||
|
||||
// Meditate {1}{G}
|
||||
this.addAbility(new MeditateAbility(new ManaCostsImpl("{1}{G}")));
|
||||
this.addAbility(new MeditateAbility(new ManaCostsImpl<>("{1}{G}")));
|
||||
}
|
||||
|
||||
private IthorianInitiate(final IthorianInitiate card) {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class IvoryGargoyle extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// {4}{W}: Exile Ivory Gargoyle.
|
||||
this.addAbility(new SimpleActivatedAbility(new ExileSourceEffect(), new ManaCostsImpl("{4}{W}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new ExileSourceEffect(), new ManaCostsImpl<>("{4}{W}")));
|
||||
}
|
||||
|
||||
private IvoryGargoyle(final IvoryGargoyle card) {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class IvoryGiant extends CardImpl {
|
|||
// When Ivory Giant enters the battlefield, tap all nonwhite creatures.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new TapAllEffect(filter)));
|
||||
// Suspend 5-{W}
|
||||
this.addAbility(new SuspendAbility(5, new ManaCostsImpl("{W}"), this));
|
||||
this.addAbility(new SuspendAbility(5, new ManaCostsImpl<>("{W}"), this));
|
||||
}
|
||||
|
||||
private IvoryGiant(final IvoryGiant card) {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class IvySeer extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {2}{G}, {tap}: Reveal any number of green cards in your hand. Target creature gets +X/+X until end of turn, where X is the number of cards revealed this way.
|
||||
Ability ability = new SimpleActivatedAbility(new IvySeerEffect(), new ManaCostsImpl("{2}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(new IvySeerEffect(), new ManaCostsImpl<>("{2}{G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class IxallisKeeper extends CardImpl {
|
|||
// {7}{G}, {T}, Sacrifice Ixalli's Keeper: Target creature gets +5/+5 and gains trample until end of turn.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new BoostTargetEffect(5, 5, Duration.EndOfTurn)
|
||||
.setText("Target creature gets +5/+5"), new ManaCostsImpl("{7}{G}"));
|
||||
.setText("Target creature gets +5/+5"), new ManaCostsImpl<>("{7}{G}"));
|
||||
ability.addEffect(new GainAbilityTargetEffect(TrampleAbility.getInstance(), Duration.EndOfTurn)
|
||||
.setText("and gains trample until end of turn"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public final class IxidorRealitySculptor extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.WhileOnBattlefield, filter, false)));
|
||||
|
||||
// {2}{U}: Turn target face-down creature face up.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TurnFaceUpTargetEffect(), new ManaCostsImpl("{2}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TurnFaceUpTargetEffect(), new ManaCostsImpl<>("{2}{U}"));
|
||||
ability.addTarget(new TargetCreaturePermanent(filterTarget));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public final class IzoniThousandEyed extends CardImpl {
|
|||
Ability ability = new SimpleActivatedAbility(
|
||||
Zone.BATTLEFIELD,
|
||||
new GainLifeEffect(1),
|
||||
new ManaCostsImpl("{B}{G}")
|
||||
new ManaCostsImpl<>("{B}{G}")
|
||||
);
|
||||
ability.addEffect(
|
||||
new DrawCardSourceControllerEffect(1).setText("and draw a card")
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class IzzetCluestone extends CardImpl {
|
|||
this.addAbility(new RedManaAbility());
|
||||
|
||||
// {U}{R}, {T}, Sacrifice Izzet Cluestone: Draw a card.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{U}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{U}{R}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -46,12 +46,12 @@ public final class IzzetGuildmage extends CardImpl {
|
|||
|
||||
// <i>({UR} can be paid with either {U} or {R}.)</i>
|
||||
// {2}{U}: Copy target instant spell you control with converted mana cost 2 or less. You may choose new targets for the copy.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CopyTargetSpellEffect(), new ManaCostsImpl("{2}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CopyTargetSpellEffect(), new ManaCostsImpl<>("{2}{U}"));
|
||||
ability.addTarget(new TargetSpell(filterInstant));
|
||||
this.addAbility(ability);
|
||||
|
||||
// {2}{R}: Copy target sorcery spell you control with converted mana cost 2 or less. You may choose new targets for the copy.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CopyTargetSpellEffect(), new ManaCostsImpl("{2}{R}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CopyTargetSpellEffect(), new ManaCostsImpl<>("{2}{R}"));
|
||||
ability.addTarget(new TargetSpell(filterSorcery));
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
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