mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
Fix raw use of parameterized class 'ManaCostsImpl' - 'f' cards (#9036)
This commit is contained in:
parent
abc1c9fe4a
commit
43a27dfa0c
188 changed files with 206 additions and 206 deletions
|
@ -30,7 +30,7 @@ public final class FaceOfFear extends CardImpl {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
// {2}{B}, Discard a card: Face of Fear gains fear until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FearAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{2}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FearAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{2}{B}"));
|
||||
ability.addCost(new DiscardCardCost(false));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ public final class FacelessHaven extends CardImpl {
|
|||
// {S}{S}{S}: Faceless Haven becomes a 4/3 creature with vigilance and all creature types until end of turn. It's still a land.
|
||||
this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect(
|
||||
new FacelessHavenToken(), "land", Duration.EndOfTurn
|
||||
).setText("{this} becomes a 4/3 creature with vigilance and all creature types until end of turn. It's still a land"), new ManaCostsImpl("{S}{S}{S}")));
|
||||
).setText("{this} becomes a 4/3 creature with vigilance and all creature types until end of turn. It's still a land"), new ManaCostsImpl<>("{S}{S}{S}")));
|
||||
}
|
||||
|
||||
private FacelessHaven(final FacelessHaven card) {
|
||||
|
|
|
@ -65,7 +65,7 @@ class FadeAwayEffect extends OneShotEffect {
|
|||
boolean paid = false;
|
||||
while (player.canRespond() && !paid) {
|
||||
payAmount = player.getAmount(0, creaturesNumber, message, game);
|
||||
ManaCostsImpl cost = new ManaCostsImpl();
|
||||
ManaCostsImpl cost = new ManaCostsImpl<>();
|
||||
cost.add(new GenericManaCost(payAmount));
|
||||
cost.clearPaid();
|
||||
if (cost.payOrRollback(source, game, source, playerId)) {
|
||||
|
|
|
@ -23,7 +23,7 @@ public final class FadeFromMemory extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new ExileTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCardInGraveyard());
|
||||
// Cycling {B}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{B}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{B}")));
|
||||
}
|
||||
|
||||
private FadeFromMemory(final FadeFromMemory card) {
|
||||
|
|
|
@ -39,7 +39,7 @@ public final class FaeOfWishes extends AdventureCard {
|
|||
|
||||
// {1}{U}, Discard two cards: Return Fae of Wishes to its owner's hand.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new ReturnToHandSourceEffect(true), new ManaCostsImpl("{1}{U}")
|
||||
new ReturnToHandSourceEffect(true), new ManaCostsImpl<>("{1}{U}")
|
||||
);
|
||||
ability.addCost(new DiscardTargetCost(new TargetCardInHand(2, filter)));
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -27,7 +27,7 @@ public final class FaerieConclave extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
|
||||
this.addAbility(new EntersBattlefieldTappedAbility());
|
||||
this.addAbility(new BlueManaAbility());
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(new FaerieConclaveToken(), "land", Duration.EndOfTurn), new ManaCostsImpl("{1}{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(new FaerieConclaveToken(), "land", Duration.EndOfTurn), new ManaCostsImpl<>("{1}{U}")));
|
||||
}
|
||||
|
||||
private FaerieConclave(final FaerieConclave card) {
|
||||
|
|
|
@ -31,7 +31,7 @@ public final class FaerieFormation extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// {3}{U}: Create a 1/1 blue Faerie creature token with flying. Draw a card.
|
||||
Ability ability = new SimpleActivatedAbility(new CreateTokenEffect(new FaerieToken()), new ManaCostsImpl("{3}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(new CreateTokenEffect(new FaerieToken()), new ManaCostsImpl<>("{3}{U}"));
|
||||
ability.addEffect(new DrawCardSourceControllerEffect(1).setText("Draw a card"));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ public final class FainTheBroker extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// {3}{B}: Untap Fain, the Broker.
|
||||
this.addAbility(new SimpleActivatedAbility(new UntapSourceEffect(), new ManaCostsImpl("{3}{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new UntapSourceEffect(), new ManaCostsImpl<>("{3}{B}")));
|
||||
}
|
||||
|
||||
private FainTheBroker(final FainTheBroker card) {
|
||||
|
|
|
@ -23,7 +23,7 @@ public final class FaithlessLooting extends CardImpl {
|
|||
// Draw two cards, then discard two cards.
|
||||
this.getSpellAbility().addEffect(new DrawDiscardControllerEffect(2,2));
|
||||
// Flashback {2}{R}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{2}{R}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{2}{R}")));
|
||||
}
|
||||
|
||||
private FaithlessLooting(final FaithlessLooting card) {
|
||||
|
|
|
@ -35,7 +35,7 @@ public final class FalkenrathExterminator extends CardImpl {
|
|||
// Whenever Falkenrath Exterminator deals combat damage to a player, put a +1/+1 counter on it.
|
||||
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false));
|
||||
// {2}{R}: Falkenrath Exterminator deals damage to target creature equal to the number of +1/+1 counters on Falkenrath Exterminator.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(new CountersSourceCount(CounterType.P1P1)), new ManaCostsImpl("{2}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(new CountersSourceCount(CounterType.P1P1)), new ManaCostsImpl<>("{2}{R}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ public final class FallenCleric extends CardImpl {
|
|||
// Protection from Clerics
|
||||
this.addAbility(new ProtectionAbility(filter));
|
||||
// Morph {4}{B}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{4}{B}")));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{4}{B}")));
|
||||
}
|
||||
|
||||
private FallenCleric(final FallenCleric card) {
|
||||
|
|
|
@ -35,7 +35,7 @@ public final class FallenFerromancer extends CardImpl {
|
|||
|
||||
// {1}{R}, {T}: Fallen Ferromancer deals 1 damage to any target.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost());
|
||||
ability.addCost(new ManaCostsImpl("{1}{R}"));
|
||||
ability.addCost(new ManaCostsImpl<>("{1}{R}"));
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class FamishedGhoul extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {1}{B}, Sacrifice Famished Ghoul: Exile up to two target cards from a single graveyard.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl("{1}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl<>("{1}{B}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetCardInASingleGraveyard(0, 2, StaticFilters.FILTER_CARD_CARDS));
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -36,7 +36,7 @@ public final class Farmstead extends CardImpl {
|
|||
|
||||
// Enchanted land has "At the beginning of your upkeep, you may pay {W}{W}. If you do, you gain 1 life."
|
||||
ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD,
|
||||
new DoIfCostPaid(new GainLifeEffect(1), new ManaCostsImpl("{W}{W}")),
|
||||
new DoIfCostPaid(new GainLifeEffect(1), new ManaCostsImpl<>("{W}{W}")),
|
||||
TargetController.YOU, false);
|
||||
Effect effect = new GainAbilityAttachedEffect(ability, AttachmentType.AURA);
|
||||
effect.setText("Enchanted land has \"At the beginning of your upkeep, you may pay {W}{W}. If you do, you gain 1 life.\"");
|
||||
|
|
|
@ -34,7 +34,7 @@ public final class FarrelitePriest extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {1}: Add {W}. If this ability has been activated four or more times this turn, sacrifice Farrelite Priest at the beginning of the next end step.
|
||||
SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.WhiteMana(1), new ManaCostsImpl("{1}"));
|
||||
SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.WhiteMana(1), new ManaCostsImpl<>("{1}"));
|
||||
ability.addEffect(new FarrelitePriestEffect());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ public final class Fatestitcher extends CardImpl {
|
|||
ability.addTarget(new TargetPermanent(filter));
|
||||
this.addAbility(ability);
|
||||
// Unearth {U}
|
||||
this.addAbility(new UnearthAbility(new ManaCostsImpl("{U}")));
|
||||
this.addAbility(new UnearthAbility(new ManaCostsImpl<>("{U}")));
|
||||
}
|
||||
|
||||
private Fatestitcher(final Fatestitcher card) {
|
||||
|
|
|
@ -46,7 +46,7 @@ public final class FathomFeeder extends CardImpl {
|
|||
|
||||
// {3}{U}{B}: Draw a card. Each opponent exiles the top card of their library.
|
||||
Effect effect = new FathomFeederEffect();
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{3}{U}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{3}{U}{B}"));
|
||||
ability.addEffect(effect);
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ public final class FathomFleetFirebrand extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {1}{r}: Fathom Fleet Firebrand gets +1/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{1}{R}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{R}")));
|
||||
}
|
||||
|
||||
private FathomFleetFirebrand(final FathomFleetFirebrand card) {
|
||||
|
|
|
@ -40,7 +40,7 @@ public final class FearsomeTemper extends CardImpl {
|
|||
Effect effect = new BoostEnchantedEffect(2,2, Duration.WhileOnBattlefield);
|
||||
effect.setText("Enchanted creature gets +2/+2");
|
||||
ability = new SimpleStaticAbility(Zone.BATTLEFIELD, effect);
|
||||
Ability grantedAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedByTargetSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{2}{R}"));
|
||||
Ability grantedAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedByTargetSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{2}{R}"));
|
||||
grantedAbility.addTarget(new TargetCreaturePermanent());
|
||||
effect = new GainAbilityAttachedEffect(grantedAbility, AttachmentType.AURA, Duration.WhileOnBattlefield);
|
||||
effect.setText("and has \"{2}{R}: Target creature can't block this creature this turn");
|
||||
|
|
|
@ -26,7 +26,7 @@ public final class FeelingOfDread extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 2));
|
||||
|
||||
// Flashback {1}{U}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{1}{U}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{1}{U}")));
|
||||
}
|
||||
|
||||
private FeelingOfDread(final FeelingOfDread card) {
|
||||
|
|
|
@ -42,7 +42,7 @@ public final class FeldonOfTheThirdPath extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {2}{R}, {T}: Create a token that's a copy of target creature card in your graveyard, except it's an artifact in addition to its other types. It gains haste. Sacrifice it at the beginning of the next end step.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new FeldonOfTheThirdPathEffect(), new ManaCostsImpl("{2}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new FeldonOfTheThirdPathEffect(), new ManaCostsImpl<>("{2}{R}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCardInYourGraveyard(1, 1, new FilterCreatureCard("creature card in your graveyard")));
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -45,7 +45,7 @@ public final class FelhideSpiritbinder extends CardImpl {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
// <i>Inspired</i> — Whenever Felhide Spiritbinder becomes untapped, you may pay {1}{R}. If you do, create a token that's a copy of another target creature except it's an enchantment in addition to its other types. It gains haste. Exile it at the beginning of the next end step.
|
||||
Ability ability = new InspiredAbility(new DoIfCostPaid(new FelhideSpiritbinderEffect(), new ManaCostsImpl("{1}{R}"), "Use effect of {this}?"));
|
||||
Ability ability = new InspiredAbility(new DoIfCostPaid(new FelhideSpiritbinderEffect(), new ManaCostsImpl<>("{1}{R}"), "Use effect of {this}?"));
|
||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ public final class FelidarUmbra extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(LifelinkAbility.getInstance(), AttachmentType.AURA)));
|
||||
|
||||
// {1}{W}: Attach Felidar Umbra to target creature you control.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AttachEffect(Outcome.Detriment, "Attach {this} to target creature you control"), new ManaCostsImpl("{1}{W}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AttachEffect(Outcome.Detriment, "Attach {this} to target creature you control"), new ManaCostsImpl<>("{1}{W}"));
|
||||
ability.addTarget(new TargetControlledCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ public final class FellShepherd extends CardImpl {
|
|||
|
||||
// {B}, Sacrifice another creature: Target creature gets -2/-2 until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new BoostTargetEffect(-2, -2, Duration.EndOfTurn), new ManaCostsImpl("{B}")
|
||||
new BoostTargetEffect(-2, -2, Duration.EndOfTurn), new ManaCostsImpl<>("{B}")
|
||||
);
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE)));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
|
|
|
@ -32,7 +32,7 @@ public final class FemerefKnight extends CardImpl {
|
|||
// Flanking
|
||||
this.addAbility(new FlankingAbility());
|
||||
// {W}: Femeref Knight gains vigilance until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(VigilanceAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{W}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(VigilanceAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{W}")));
|
||||
}
|
||||
|
||||
private FemerefKnight(final FemerefKnight card) {
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class FencerClique extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {U}: Put Fencer Clique on top of its owner's library.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutOnLibrarySourceEffect(true), new ManaCostsImpl("{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutOnLibrarySourceEffect(true), new ManaCostsImpl<>("{U}")));
|
||||
}
|
||||
|
||||
private FencerClique(final FencerClique card) {
|
||||
|
|
|
@ -26,7 +26,7 @@ public final class FendOff extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ public final class FeralDeceiver extends CardImpl {
|
|||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new LookLibraryControllerEffect(), new GenericManaCost(1)));
|
||||
|
||||
// {2}: Reveal the top card of your library. If it's a land card, {this} gets +2/+2 and gains trample until end of turn.
|
||||
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new FeralDeceiverEffect(), new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new FeralDeceiverEffect(), new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private FeralDeceiver(final FeralDeceiver card) {
|
||||
|
|
|
@ -35,7 +35,7 @@ public final class FeralHydra extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
|
||||
|
||||
// {3}: Put a +1/+1 counter on Feral Hydra. Any player may activate this ability.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl("{3}"));
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl<>("{3}"));
|
||||
ability.setMayActivate(TargetController.ANY);
|
||||
ability.addEffect(new InfoEffect("Any player may activate this ability"));
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class FeralRidgewolf extends CardImpl {
|
|||
this.addAbility(TrampleAbility.getInstance());
|
||||
|
||||
// {1}{R}: Feral Ridgewolf gets +2/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl("{1}{R}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{R}")));
|
||||
}
|
||||
|
||||
private FeralRidgewolf(final FeralRidgewolf card) {
|
||||
|
|
|
@ -35,7 +35,7 @@ public final class Ferrovore extends CardImpl {
|
|||
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(3, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(3, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{R}"));
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter)));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public final class Fertilid extends CardImpl {
|
|||
|
||||
// {1}{G}, Remove a +1/+1 counter from Fertilid: Target player searches their library for a basic land card and puts it onto the battlefield tapped. Then that player shuffles their library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new SearchLibraryPutInPlayTargetPlayerEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true), new ManaCostsImpl("{1}{G}"));
|
||||
new SearchLibraryPutInPlayTargetPlayerEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true), new ManaCostsImpl<>("{1}{G}"));
|
||||
ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance(1)));
|
||||
ability.addTarget(new TargetPlayer());
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -25,7 +25,7 @@ public final class FerventDenial extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new CounterTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetSpell());
|
||||
// Flashback {5}{U}{U}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{5}{U}{U}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{5}{U}{U}")));
|
||||
}
|
||||
|
||||
private FerventDenial(final FerventDenial card) {
|
||||
|
|
|
@ -27,7 +27,7 @@ public final class FesteringEvil extends CardImpl {
|
|||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new DamageEverythingEffect(1), TargetController.YOU, false));
|
||||
|
||||
// {B}{B}, Sacrifice Festering Evil: Festering Evil deals 3 damage to each creature and each player.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageEverythingEffect(3), new ManaCostsImpl("{B}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageEverythingEffect(3), new ManaCostsImpl<>("{B}{B}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -26,15 +26,15 @@ public final class FetidHeath extends CardImpl {
|
|||
this.addAbility(new ColorlessManaAbility());
|
||||
|
||||
// {W/B}, {T}: Add {W}{W}, {W}{B}, or {B}{B}.
|
||||
SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.WhiteMana(2), new ManaCostsImpl("{W/B}"));
|
||||
SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.WhiteMana(2), new ManaCostsImpl<>("{W/B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
ability = new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(1, 0, 1, 0, 0, 0, 0, 0), new ManaCostsImpl("{W/B}"));
|
||||
ability = new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(1, 0, 1, 0, 0, 0, 0, 0), new ManaCostsImpl<>("{W/B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.BlackMana(2), new ManaCostsImpl("{W/B}"));
|
||||
ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.BlackMana(2), new ManaCostsImpl<>("{W/B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ public final class FetidImp extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {B}: Fetid Imp gains deathtouch until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{B}")));
|
||||
}
|
||||
|
||||
private FetidImp(final FetidImp card) {
|
||||
|
|
|
@ -32,7 +32,7 @@ public final class FetidPools extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldTappedAbility());
|
||||
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ public final class FeveredConvulsions extends CardImpl {
|
|||
public FeveredConvulsions(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{B}{B}");
|
||||
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.M1M1.createInstance(1)), new ManaCostsImpl("{2}{B}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.M1M1.createInstance(1)), new ManaCostsImpl<>("{2}{B}{B}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ public final class FieldOfReality extends CardImpl {
|
|||
this.addAbility(new SimpleEvasionAbility(new CantBeBlockedByCreaturesAttachedEffect(
|
||||
Duration.WhileOnBattlefield, new FilterCreaturePermanent(SubType.SPIRIT, "Spirits"), AttachmentType.AURA)));
|
||||
// {1}{U}: Return Field of Reality to its owner's hand.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{1}{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl<>("{1}{U}")));
|
||||
}
|
||||
|
||||
private FieldOfReality(final FieldOfReality card) {
|
||||
|
|
|
@ -47,7 +47,7 @@ public final class FieldOfRuin extends CardImpl {
|
|||
|
||||
// {2}, {T}, Sacrifice Field of Ruin: Destroy target nonbasic land an opponent controls. Each player searches their library for a basic land card, puts it onto the battlefield, then shuffles their library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new TapSourceCost());
|
||||
ability.addCost(new ManaCostsImpl("{2}"));
|
||||
ability.addCost(new ManaCostsImpl<>("{2}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addEffect(new FieldOfRuinEffect());
|
||||
ability.addTarget(new TargetLandPermanent(filter));
|
||||
|
|
|
@ -56,7 +56,7 @@ public final class FiendArtisan extends CardImpl {
|
|||
|
||||
// {X}{B/G}, {T}, Sacrifice another creature: Search your library for a creature card with converted mana cost X or less, put it onto the battlefield, then shuffle your library. Activate this ability only any time you could cast a sorcery.
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(
|
||||
Zone.BATTLEFIELD, new FiendArtisanEffect(), new ManaCostsImpl("{X}{B/G}")
|
||||
Zone.BATTLEFIELD, new FiendArtisanEffect(), new ManaCostsImpl<>("{X}{B/G}")
|
||||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter)));
|
||||
|
|
|
@ -33,7 +33,7 @@ public final class FieryBombardment extends CardImpl {
|
|||
|
||||
// Chroma - {2}, Sacrifice a creature: Fiery Bombardment deals damage to any target equal to the number of red mana symbols in the sacrificed creature's mana cost.
|
||||
Effect effect = new FieryBombardmentEffect();
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{2}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{2}"));
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
ability.setAbilityWord(AbilityWord.CHROMA);
|
||||
|
|
|
@ -26,7 +26,7 @@ public final class FieryFall extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
|
||||
// Basic landcycling {1}{R} ({1}{R}, Discard this card: Search your library for a basic land card, reveal it, and put it into your hand. Then shuffle your library.)
|
||||
this.addAbility(new BasicLandcyclingAbility(new ManaCostsImpl("{1}{R}")));
|
||||
this.addAbility(new BasicLandcyclingAbility(new ManaCostsImpl<>("{1}{R}")));
|
||||
}
|
||||
|
||||
public FieryFall (final FieryFall card) {
|
||||
|
|
|
@ -28,7 +28,7 @@ public final class FieryHellhound extends CardImpl {
|
|||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
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 FieryHellhound(final FieryHellhound card) {
|
||||
|
|
|
@ -25,7 +25,7 @@ public final class FieryTemper extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetAnyTarget());
|
||||
|
||||
// Madness {R}
|
||||
this.addAbility(new MadnessAbility(new ManaCostsImpl("{R}")));
|
||||
this.addAbility(new MadnessAbility(new ManaCostsImpl<>("{R}")));
|
||||
}
|
||||
|
||||
private FieryTemper(final FieryTemper card) {
|
||||
|
|
|
@ -36,13 +36,13 @@ public final class FiftyFeetOfRope extends CardImpl {
|
|||
this.addAbility(ability.withFlavorWord("Climb Over"));
|
||||
|
||||
// Tie Up — {3}, {T}: Target creature doesn't untap during its controller's next untap step.
|
||||
ability = new SimpleActivatedAbility(new DontUntapInControllersNextUntapStepTargetEffect(), new ManaCostsImpl("{3}"));
|
||||
ability = new SimpleActivatedAbility(new DontUntapInControllersNextUntapStepTargetEffect(), new ManaCostsImpl<>("{3}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability.withFlavorWord("Tie Up"));
|
||||
|
||||
// Rappel Down — {4}, {T}: Venture into the dungeon. Activate only as a sorcery.
|
||||
ability = new ActivateAsSorceryActivatedAbility(new VentureIntoTheDungeonEffect(), new ManaCostsImpl("{4}"));
|
||||
ability = new ActivateAsSorceryActivatedAbility(new VentureIntoTheDungeonEffect(), new ManaCostsImpl<>("{4}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability.withFlavorWord("Rappel Down"));
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ public final class FigureOfDestiny extends CardImpl {
|
|||
// {RW}: Figure of Destiny becomes a Kithkin Spirit with base power and toughness 2/2.
|
||||
Ability ability = new SimpleActivatedAbility(new AddCardSubTypeSourceEffect(
|
||||
Duration.Custom, SubType.KITHKIN, SubType.SPIRIT
|
||||
).setText("{this} becomes a Kithkin Spirit"), new ManaCostsImpl("{R/W}"));
|
||||
).setText("{this} becomes a Kithkin Spirit"), new ManaCostsImpl<>("{R/W}"));
|
||||
ability.addEffect(new SetPowerToughnessSourceEffect(
|
||||
2, 2, Duration.Custom, SubLayer.SetPT_7b
|
||||
).setText("with base power and toughness 2/2"));
|
||||
|
@ -41,12 +41,12 @@ public final class FigureOfDestiny extends CardImpl {
|
|||
|
||||
// {RW}{RW}{RW}: If Figure of Destiny is a Spirit, it becomes a Kithkin Spirit Warrior with base power and toughness 4/4.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new FigureOfDestinySpiritEffect(), new ManaCostsImpl("{R/W}{R/W}{R/W}")
|
||||
new FigureOfDestinySpiritEffect(), new ManaCostsImpl<>("{R/W}{R/W}{R/W}")
|
||||
));
|
||||
|
||||
// {RW}{RW}{RW}{RW}{RW}{RW}: If Figure of Destiny is a Warrior, it becomes a Kithkin Spirit Warrior Avatar with base power and toughness 8/8, flying, and first strike.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new FigureOfDestinyWarriorEffect(), new ManaCostsImpl("{R/W}{R/W}{R/W}{R/W}{R/W}{R/W}")
|
||||
new FigureOfDestinyWarriorEffect(), new ManaCostsImpl<>("{R/W}{R/W}{R/W}{R/W}{R/W}{R/W}")
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ public final class FiligreeSages extends CardImpl {
|
|||
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(3);
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new ManaCostsImpl("{2}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new ManaCostsImpl<>("{2}{U}"));
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ public final class FireBellyChangeling extends CardImpl {
|
|||
|
||||
// {R}: Fire-Belly Changeling 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("{R}"), 2));
|
||||
new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{R}"), 2));
|
||||
}
|
||||
|
||||
private FireBellyChangeling(final FireBellyChangeling card) {
|
||||
|
|
|
@ -30,7 +30,7 @@ public final class FireDrake extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// {R}: Fire Drake gets +1/+0 until end of turn. Activate this ability only once each turn.
|
||||
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}")));
|
||||
this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{R}")));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ public final class FireFieldOgre extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
this.addAbility(FirstStrikeAbility.getInstance());
|
||||
this.addAbility(new UnearthAbility(new ManaCostsImpl("{U}{B}{R}")));
|
||||
this.addAbility(new UnearthAbility(new ManaCostsImpl<>("{U}{B}{R}")));
|
||||
}
|
||||
|
||||
private FireFieldOgre(final FireFieldOgre card) {
|
||||
|
|
|
@ -24,15 +24,15 @@ public final class FireLitThicket extends CardImpl {
|
|||
// {tap}: Add {C}.
|
||||
this.addAbility(new ColorlessManaAbility());
|
||||
// {RG}, {tap}: Add {R}{R}, {R}{G}, or {G}{G}.
|
||||
SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana(2), new ManaCostsImpl("{R/G}"));
|
||||
SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana(2), new ManaCostsImpl<>("{R/G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
ability = new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(0, 0, 0, 1, 1, 0, 0, 0), new ManaCostsImpl("{R/G}"));
|
||||
ability = new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(0, 0, 0, 1, 1, 0, 0, 0), new ManaCostsImpl<>("{R/G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.GreenMana(2), new ManaCostsImpl("{R/G}"));
|
||||
ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.GreenMana(2), new ManaCostsImpl<>("{R/G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ public final class FireSprites extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {G}, {tap}: Add {R}.
|
||||
Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana(1), new ManaCostsImpl("{G}"));
|
||||
Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana(1), new ManaCostsImpl<>("{G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ public final class Firebolt extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new DamageTargetEffect(2));
|
||||
this.getSpellAbility().addTarget(new TargetAnyTarget());
|
||||
// Flashback {4}{R}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{4}{R}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{4}{R}")));
|
||||
}
|
||||
|
||||
private Firebolt(final Firebolt card) {
|
||||
|
|
|
@ -33,7 +33,7 @@ public final class FirebornKnight extends CardImpl {
|
|||
|
||||
// {R/W}{R/W}{R/W}{R/W}: Fireborn Knight gets +1/+1 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn),
|
||||
new ManaCostsImpl("{R/W}{R/W}{R/W}{R/W}")));
|
||||
new ManaCostsImpl<>("{R/W}{R/W}{R/W}{R/W}")));
|
||||
}
|
||||
|
||||
private FirebornKnight(final FirebornKnight card) {
|
||||
|
|
|
@ -31,7 +31,7 @@ public final class FirebrandRanger extends CardImpl {
|
|||
|
||||
// {G}, {T}: You may put a basic land card from your hand onto the battlefield.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_BASIC_LAND_A), new ManaCostsImpl("{G}"));
|
||||
new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_BASIC_LAND_A), new ManaCostsImpl<>("{G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ public final class FirecatBlitz extends CardImpl {
|
|||
|
||||
// Flashback-{R}{R}, Sacrifice X Mountains.
|
||||
Ability ability = new FlashbackAbility(this, new SacrificeXTargetCost(filter));
|
||||
ability.addManaCost(new ManaCostsImpl("{R}{R}"));
|
||||
ability.addManaCost(new ManaCostsImpl<>("{R}{R}"));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ public final class FirefrightMage extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
//{1}{R}, {T}, Discard a card: Target creature can't be blocked this turn except by artifact creatures and/or red creatures.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedByAllTargetEffect(filter, Duration.EndOfTurn), new ManaCostsImpl("{1}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedByAllTargetEffect(filter, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{R}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new DiscardCardCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
|
|
|
@ -48,7 +48,7 @@ public final class FiremaneAngel extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
// {6}{R}{R}{W}{W}: Return Firemane Angel from your graveyard to the battlefield. Activate this ability only during your upkeep.
|
||||
this.addAbility(new ConditionalActivatedAbility(Zone.GRAVEYARD,
|
||||
new ReturnSourceFromGraveyardToBattlefieldEffect(false, false), new ManaCostsImpl("{6}{R}{R}{W}{W}"), new IsStepCondition(PhaseStep.UPKEEP), null));
|
||||
new ReturnSourceFromGraveyardToBattlefieldEffect(false, false), new ManaCostsImpl<>("{6}{R}{R}{W}{W}"), new IsStepCondition(PhaseStep.UPKEEP), null));
|
||||
}
|
||||
|
||||
private FiremaneAngel(final FiremaneAngel card) {
|
||||
|
|
|
@ -34,7 +34,7 @@ public final class FiremindsResearch extends CardImpl {
|
|||
// {1}{U}, Remove two charge counters from Firemind's Research: Draw a card.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new DrawCardSourceControllerEffect(1),
|
||||
new ManaCostsImpl("{1}{U}")
|
||||
new ManaCostsImpl<>("{1}{U}")
|
||||
);
|
||||
ability.addCost(new RemoveCountersSourceCost(
|
||||
CounterType.CHARGE.createInstance(2)
|
||||
|
@ -44,7 +44,7 @@ public final class FiremindsResearch extends CardImpl {
|
|||
// {1}{R}, Remove five charge counters from Firemind's Research: It deals 5 damage to any target.
|
||||
ability = new SimpleActivatedAbility(
|
||||
new DamageTargetEffect(5, "it"),
|
||||
new ManaCostsImpl("{1}{R}")
|
||||
new ManaCostsImpl<>("{1}{R}")
|
||||
);
|
||||
ability.addCost(new RemoveCountersSourceCost(
|
||||
CounterType.CHARGE.createInstance(5)
|
||||
|
|
|
@ -25,7 +25,7 @@ public final class FiresOfUndeath extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetAnyTarget());
|
||||
this.getSpellAbility().addEffect(new DamageTargetEffect(2));
|
||||
// Flashback {5}{B}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{5}{B}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{5}{B}")));
|
||||
}
|
||||
|
||||
private FiresOfUndeath(final FiresOfUndeath card) {
|
||||
|
|
|
@ -26,7 +26,7 @@ public final class Firescreamer extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {R}: Firescreamer 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 Firescreamer(final Firescreamer card) {
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class Fireshrieker extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(DoubleStrikeAbility.getInstance(), AttachmentType.EQUIPMENT)));
|
||||
|
||||
// Equip {2}
|
||||
this.addAbility(new EquipAbility(Outcome.AddAbility, new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new EquipAbility(Outcome.AddAbility, new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private Fireshrieker(final Fireshrieker card) {
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class FirestormHellkite extends CardImpl {
|
|||
// Trample
|
||||
this.addAbility(TrampleAbility.getInstance());
|
||||
// Cumulative upkeep {U}{R}
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{U}{R}")));
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{U}{R}")));
|
||||
}
|
||||
|
||||
private FirestormHellkite(final FirestormHellkite card) {
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class FirewingPhoenix extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {1}{R}{R}{R}: Return Firewing Phoenix from your graveyard to your hand.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.GRAVEYARD, new ReturnSourceFromGraveyardToHandEffect(), new ManaCostsImpl("{1}{R}{R}{R}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.GRAVEYARD, new ReturnSourceFromGraveyardToHandEffect(), new ManaCostsImpl<>("{1}{R}{R}{R}")));
|
||||
}
|
||||
|
||||
private FirewingPhoenix(final FirewingPhoenix card) {
|
||||
|
|
|
@ -31,7 +31,7 @@ public final class FirstOrderDreadnought extends CardImpl {
|
|||
this.addAbility(SpaceflightAbility.getInstance());
|
||||
|
||||
// {2}{B}, {T}: Destroy target creature.
|
||||
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new ManaCostsImpl("{2}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new ManaCostsImpl<>("{2}{B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -35,7 +35,7 @@ public final class FirstSphereGargantua extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// Unearth {2}{B}
|
||||
this.addAbility(new UnearthAbility(new ManaCostsImpl("{2}{B}")));
|
||||
this.addAbility(new UnearthAbility(new ManaCostsImpl<>("{2}{B}")));
|
||||
}
|
||||
|
||||
private FirstSphereGargantua(final FirstSphereGargantua card) {
|
||||
|
|
|
@ -34,12 +34,12 @@ public final class FlailingManticore extends CardImpl {
|
|||
// First strike
|
||||
this.addAbility(FirstStrikeAbility.getInstance());
|
||||
// {1}: Flailing Manticore gets +1/+1 until end of turn. Any player may activate this ability.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn) , new ManaCostsImpl("{1}"));
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn) , new ManaCostsImpl<>("{1}"));
|
||||
ability.setMayActivate(TargetController.ANY);
|
||||
ability.addEffect(new InfoEffect("Any player may activate this ability"));
|
||||
this.addAbility(ability);
|
||||
// {1}: Flailing Manticore gets -1/-1 until end of turn. Any player may activate this ability.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(-1, -1, Duration.EndOfTurn) , new ManaCostsImpl("{1}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(-1, -1, Duration.EndOfTurn) , new ManaCostsImpl<>("{1}"));
|
||||
ability.setMayActivate(TargetController.ANY);
|
||||
ability.addEffect(new InfoEffect("Any player may activate this ability"));
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -28,12 +28,12 @@ public final class FlailingOgre extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {1}: Flailing Ogre gets +1/+1 until end of turn. Any player may activate this ability.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn) , new ManaCostsImpl("{1}"));
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn) , new ManaCostsImpl<>("{1}"));
|
||||
ability.setMayActivate(TargetController.ANY);
|
||||
ability.addEffect(new InfoEffect("Any player may activate this ability"));
|
||||
this.addAbility(ability);
|
||||
// {1}: Flailing Ogre gets -1/-1 until end of turn. Any player may activate this ability.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(-1, -1, Duration.EndOfTurn) , new ManaCostsImpl("{1}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(-1, -1, Duration.EndOfTurn) , new ManaCostsImpl<>("{1}"));
|
||||
ability.setMayActivate(TargetController.ANY);
|
||||
ability.addEffect(new InfoEffect("Any player may activate this ability"));
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -29,12 +29,12 @@ public final class FlailingSoldier extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {1}: Flailing Soldier gets +1/+1 until end of turn. Any player may activate this ability.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn) , new ManaCostsImpl("{1}"));
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn) , new ManaCostsImpl<>("{1}"));
|
||||
ability.setMayActivate(TargetController.ANY);
|
||||
ability.addEffect(new InfoEffect("Any player may activate this ability"));
|
||||
this.addAbility(ability);
|
||||
// {1}: Flailing Soldier gets -1/-1 until end of turn. Any player may activate this ability.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(-1, -1, Duration.EndOfTurn) , new ManaCostsImpl("{1}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(-1, -1, Duration.EndOfTurn) , new ManaCostsImpl<>("{1}"));
|
||||
ability.setMayActivate(TargetController.ANY);
|
||||
ability.addEffect(new InfoEffect("Any player may activate this ability"));
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -30,7 +30,7 @@ public final class FlameElemental extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {R}, {tap}, Sacrifice Flame Elemental: Flame Elemental deals damage equal to its power to target creature.
|
||||
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(new SourcePermanentPowerCount(false)), new ManaCostsImpl("{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(new SourcePermanentPowerCount(false)), new ManaCostsImpl<>("{R}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
|
|
|
@ -23,7 +23,7 @@ public final class FlameJet extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new DamageTargetEffect(3));
|
||||
this.getSpellAbility().addTarget(new TargetPlayerOrPlaneswalker());
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private FlameJet(final FlameJet card) {
|
||||
|
|
|
@ -28,7 +28,7 @@ public final class FlameSpirit extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {R}: Flame Spirit 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 FlameSpirit(final FlameSpirit card) {
|
||||
|
|
|
@ -65,7 +65,7 @@ class FlameblastDragonEffect extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
ManaCosts cost = new ManaCostsImpl("{X}{R}");
|
||||
ManaCosts cost = new ManaCostsImpl<>("{X}{R}");
|
||||
if (player != null) {
|
||||
if (player.chooseUse(Outcome.Damage, "Pay " + cost.getText() + "? If you do, Flameblast Dragon deals X damage to any target", source, game)) {
|
||||
int costX = player.announceXMana(0, Integer.MAX_VALUE, "Announce the value for {X}", game, source);
|
||||
|
|
|
@ -27,7 +27,7 @@ public final class FlamekinSpitfire extends CardImpl {
|
|||
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl("{3}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl<>("{3}{R}"));
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ public final class FlamekinVillage extends CardImpl {
|
|||
// {R}, {tap}: Target creature gains haste until end of turn.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn),
|
||||
new ManaCostsImpl("{R}"));
|
||||
new ManaCostsImpl<>("{R}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -48,7 +48,7 @@ public final class FlamescrollCelebrant extends ModalDoubleFacesCard {
|
|||
|
||||
// {1}{R}: Flamescroll Celebrant gets +2/+0 until end of turn.
|
||||
this.getLeftHalfCard().addAbility(new SimpleActivatedAbility(
|
||||
new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl("{1}{R}")
|
||||
new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{R}")
|
||||
));
|
||||
|
||||
// 2.
|
||||
|
|
|
@ -40,7 +40,7 @@ public final class FlameshadowConjuring extends CardImpl {
|
|||
|
||||
// Whenever a nontoken creature enters the battlefield under your control, you may pay {R}. If you do, create a token that's a copy of that creature. That token gains haste. Exile it at the beginning of the next end step.
|
||||
Ability ability = new EntersBattlefieldControlledTriggeredAbility(Zone.BATTLEFIELD, new DoIfCostPaid(
|
||||
new FlameshadowConjuringEffect(), new ManaCostsImpl("{R}"), "Pay {R} to create a token that's a copy of that creature that entered the battlefield?"),
|
||||
new FlameshadowConjuringEffect(), new ManaCostsImpl<>("{R}"), "Pay {R} to create a token that's a copy of that creature that entered the battlefield?"),
|
||||
filterNontoken, false, SetTargetPointer.PERMANENT,
|
||||
"Whenever a nontoken creature enters the battlefield under your control, "
|
||||
+ "you may pay {R}. If you do, create a token that's a copy of that creature. "
|
||||
|
|
|
@ -45,7 +45,7 @@ public final class FlamestickCourier extends CardImpl {
|
|||
// {2}{R}, {tap}: Target Goblin creature gets +2/+2 and has haste for as long as Flamestick Courier remains tapped.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(
|
||||
new BoostTargetEffect(2, 2, Duration.Custom), SourceTappedCondition.TAPPED,
|
||||
"target Goblin creature gets +2/+2"), new ManaCostsImpl("{2}{R}"));
|
||||
"target Goblin creature gets +2/+2"), new ManaCostsImpl<>("{2}{R}"));
|
||||
ability.addEffect(new ConditionalContinuousEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(),
|
||||
Duration.Custom), SourceTappedCondition.TAPPED,"and has haste for as long as {this} remains tapped"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
|
|
|
@ -42,7 +42,7 @@ public final class FlamewakePhoenix extends CardImpl {
|
|||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
|
||||
new BeginningOfCombatTriggeredAbility(
|
||||
Zone.GRAVEYARD,
|
||||
new DoIfCostPaid(new ReturnToBattlefieldUnderOwnerControlSourceEffect(), new ManaCostsImpl("{R}")),
|
||||
new DoIfCostPaid(new ReturnToBattlefieldUnderOwnerControlSourceEffect(), new ManaCostsImpl<>("{R}")),
|
||||
TargetController.YOU, false, false),
|
||||
FerociousCondition.instance,
|
||||
"<i>Ferocious</i> — At the beginning of combat on your turn, if you control a creature with power 4 or greater, you may pay {R}. If you do, return {this} from your graveyard to the battlefield."
|
||||
|
|
|
@ -27,7 +27,7 @@ public final class FlamewaveInvoker extends CardImpl {
|
|||
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(5), new ManaCostsImpl("{7}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(5), new ManaCostsImpl<>("{7}{R}"));
|
||||
ability.addTarget(new TargetPlayerOrPlaneswalker());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ public final class Flamewright extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {1}, {tap}: Create a 1/1 colorless Construct artifact creature token with defender.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new DarettiConstructToken()), new ManaCostsImpl("{1}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new DarettiConstructToken()), new ManaCostsImpl<>("{1}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ public final class FlaringFlameKin extends CardImpl {
|
|||
new GainAbilitySourceEffect(TrampleAbility.getInstance()), enchanted,
|
||||
", has trample"));
|
||||
Ability grantedAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}"));
|
||||
new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{R}"));
|
||||
ability.addEffect(new ConditionalContinuousEffect(new GainAbilitySourceEffect(grantedAbility),
|
||||
enchanted, ", and has \"{R}: {this} gets +1/+0 until end of turn.\""));
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -24,7 +24,7 @@ public final class FlaringPain extends CardImpl {
|
|||
// Damage can't be prevented this turn.
|
||||
this.getSpellAbility().addEffect(new DamageCantBePreventedEffect(Duration.EndOfTurn, "Damage can't be prevented this turn", false, false));
|
||||
// Flashback {R}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{R}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{R}")));
|
||||
}
|
||||
|
||||
private FlaringPain(final FlaringPain card) {
|
||||
|
|
|
@ -38,7 +38,7 @@ public final class FlashOfDefiance extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new CantBlockAllEffect(filter, Duration.EndOfTurn));
|
||||
|
||||
// Flashback-{1}{R}, Pay 3 life.
|
||||
Ability ability = new FlashbackAbility(this, new ManaCostsImpl("{1}{R}"));
|
||||
Ability ability = new FlashbackAbility(this, new ManaCostsImpl<>("{1}{R}"));
|
||||
ability.addCost(new PayLifeCost(3));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ public final class Flay extends CardImpl {
|
|||
|
||||
// Target player discards a card at random. Then that player discards another card at random unless they pay {1}.
|
||||
this.getSpellAbility().addEffect(new DiscardTargetEffect(1, true));
|
||||
Effect effect = new DoUnlessTargetPlayerOrTargetsControllerPaysEffect(new DiscardTargetEffect(1, true), new ManaCostsImpl("{1}"));
|
||||
Effect effect = new DoUnlessTargetPlayerOrTargetsControllerPaysEffect(new DiscardTargetEffect(1, true), new ManaCostsImpl<>("{1}"));
|
||||
effect.setText("Then that player discards another card at random unless they pay {1}");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
this.getSpellAbility().addTarget(new TargetPlayer());
|
||||
|
|
|
@ -34,7 +34,7 @@ public final class FlayedNim extends CardImpl {
|
|||
false, true));
|
||||
|
||||
// {2}{B}: Regenerate Flayed Nim.
|
||||
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl("{2}{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl<>("{2}{B}")));
|
||||
}
|
||||
|
||||
private FlayedNim(final FlayedNim card) {
|
||||
|
|
|
@ -38,7 +38,7 @@ public final class FledglingDragon extends CardImpl {
|
|||
Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(
|
||||
new BoostSourceEffect(3, 3, Duration.WhileOnBattlefield), new CardsInControllerGraveyardCondition(7),
|
||||
"As long as seven or more cards are in your graveyard, {this} gets +3/+3"));
|
||||
Ability gainedAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}"));
|
||||
Ability gainedAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{R}"));
|
||||
ability.addEffect(new ConditionalContinuousEffect(new GainAbilitySourceEffect(gainedAbility),
|
||||
new CardsInControllerGraveyardCondition(7), "and has \"{R}: {this} gets +1/+0 until end of turn.\""));
|
||||
ability.setAbilityWord(AbilityWord.THRESHOLD);
|
||||
|
|
|
@ -30,7 +30,7 @@ public final class FledglingImp extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {B}, Discard a card: Fledgling Imp gains flying until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{B}"));
|
||||
ability.addCost(new DiscardCardCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public final class FledglingMawcor extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// Morph {U}{U}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{U}{U}")));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{U}{U}")));
|
||||
}
|
||||
|
||||
private FledglingMawcor(final FledglingMawcor card) {
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class FleetingImage extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {1}{U}: Return Fleeting Image to its owner's hand.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{1}{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl<>("{1}{U}")));
|
||||
}
|
||||
|
||||
private FleetingImage(final FleetingImage card) {
|
||||
|
|
|
@ -45,7 +45,7 @@ public final class FleshCarver extends CardImpl {
|
|||
// Intimidate
|
||||
this.addAbility(IntimidateAbility.getInstance());
|
||||
// {1}{B}, Sacrifice another creature: Put two +1/+1 counters on Flesh Carver.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance(2)), new ManaCostsImpl("{1}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance(2)), new ManaCostsImpl<>("{1}{B}"));
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE)));
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ public final class Fleshformer extends CardImpl {
|
|||
// {W}{U}{B}{R}{G}: Fleshformer gets +2/+2 and gains fear until end of turn. Target creature gets -2/-2 until end of turn. Activate this ability only during your turn.
|
||||
Effect effect = new BoostSourceEffect(2, 2, Duration.EndOfTurn);
|
||||
effect.setText("{this} gets +2/+2");
|
||||
Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{W}{U}{B}{R}{G}"), MyTurnCondition.instance);
|
||||
Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{W}{U}{B}{R}{G}"), MyTurnCondition.instance);
|
||||
effect = new GainAbilitySourceEffect(FearAbility.getInstance(), Duration.EndOfTurn);
|
||||
effect.setText("and gains fear until end of turn");
|
||||
ability.addEffect(effect);
|
||||
|
|
|
@ -48,7 +48,7 @@ public final class Flickerform extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// {2}{W}{W}: Exile enchanted creature and all Auras attached to it. At the beginning of the next end step, return that card to the battlefield under its owner's control. If you do, return the other cards exiled this way to the battlefield under their owners' control attached to that creature.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new FlickerformEffect(), new ManaCostsImpl("{2}{W}{W}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new FlickerformEffect(), new ManaCostsImpl<>("{2}{W}{W}")));
|
||||
}
|
||||
|
||||
private Flickerform(final Flickerform card) {
|
||||
|
|
|
@ -34,7 +34,7 @@ public final class FlickeringSpirit extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// {3}{W}: Exile Flickering Spirit, then return it to the battlefield under its owner's control.
|
||||
this.addAbility(new SimpleActivatedAbility(new FlickeringSpiritEffect(), new ManaCostsImpl("{3}{W}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new FlickeringSpiritEffect(), new ManaCostsImpl<>("{3}{W}")));
|
||||
}
|
||||
|
||||
private FlickeringSpirit(final FlickeringSpirit card) {
|
||||
|
|
|
@ -43,7 +43,7 @@ public final class FlickeringWard extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ProtectionChosenColorAttachedEffect(true)));
|
||||
|
||||
// {W}: Return Flickering Ward to its owner's hand.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(), new ManaCostsImpl("{W}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(), new ManaCostsImpl<>("{W}")));
|
||||
}
|
||||
|
||||
private FlickeringWard(final FlickeringWard card) {
|
||||
|
|
|
@ -32,7 +32,7 @@ public final class FlightSpellbomb extends CardImpl {
|
|||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{U}")), false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{U}")), false));
|
||||
}
|
||||
|
||||
public FlightSpellbomb (final FlightSpellbomb card) {
|
||||
|
|
|
@ -42,7 +42,7 @@ public final class FlinthoofBoar extends CardImpl {
|
|||
// {R}: Flinthoof Boar gains haste until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new GainAbilitySourceEffect(HasteAbility.getInstance(), Duration.EndOfTurn),
|
||||
new ManaCostsImpl("{R}")));
|
||||
new ManaCostsImpl<>("{R}")));
|
||||
}
|
||||
|
||||
private FlinthoofBoar(final FlinthoofBoar card) {
|
||||
|
|
|
@ -32,7 +32,7 @@ public final class Flood extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{U}");
|
||||
|
||||
// {U}{U}: Tap target creature without flying.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{U}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl<>("{U}{U}"));
|
||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ public final class Floodchaser extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantAttackUnlessDefenderControllsPermanent(new FilterLandPermanent(SubType.ISLAND,"an Island"))));
|
||||
|
||||
// {U}, Remove a +1/+1 counter from Floodchaser: Target land becomes an Island until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesBasicLandTargetEffect(Duration.EndOfTurn, SubType.ISLAND), new ManaCostsImpl("{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesBasicLandTargetEffect(Duration.EndOfTurn, SubType.ISLAND), new ManaCostsImpl<>("{U}"));
|
||||
ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance(1)));
|
||||
ability.addTarget(new TargetLandPermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue