mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Refactor: fix raw use of parameterized class ManaCostsImpl - 'Y' cards (#9090)
This commit is contained in:
parent
7d5958ddc8
commit
981a5ceaaf
12 changed files with 12 additions and 12 deletions
|
@ -39,7 +39,7 @@ public final class YaroksFenlurker extends CardImpl {
|
|||
|
||||
// {2}{B}: Yarok's Fenlurker gets +1/+1 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{2}{B}")
|
||||
new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{2}{B}")
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ public final class YasovaDragonclaw extends CardImpl {
|
|||
// Trample
|
||||
this.addAbility(TrampleAbility.getInstance());
|
||||
// At the beginning of combat on your turn, you may pay {1}{(U/R)}{(U/R)}. If you do, gain control of target creature an opponent controls with power less than Yasova Dragonclaw's power until end of turn, untap that creature, and it gains haste until end of turn.
|
||||
DoIfCostPaid effect = new DoIfCostPaid(new GainControlTargetEffect(Duration.EndOfTurn, true), new ManaCostsImpl("{1}{U/R}{U/R}"));
|
||||
DoIfCostPaid effect = new DoIfCostPaid(new GainControlTargetEffect(Duration.EndOfTurn, true), new ManaCostsImpl<>("{1}{U/R}{U/R}"));
|
||||
Effect effect2 = new UntapTargetEffect();
|
||||
effect2.setText(", untap that creature");
|
||||
effect.addEffect(effect2);
|
||||
|
|
|
@ -26,7 +26,7 @@ public final class YavimayaAncients extends CardImpl {
|
|||
this.toughness = new MageInt(7);
|
||||
|
||||
// {G}: Yavimaya Ancients gets +1/-2 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, -2, Duration.EndOfTurn), new ManaCostsImpl("{G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, -2, Duration.EndOfTurn), new ManaCostsImpl<>("{G}")));
|
||||
}
|
||||
|
||||
private YavimayaAncients(final YavimayaAncients card) {
|
||||
|
|
|
@ -30,7 +30,7 @@ public final class YavimayaAnts extends CardImpl {
|
|||
// Haste
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
// Cumulative upkeep {G}{G}
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{G}{G}")));
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{G}{G}")));
|
||||
}
|
||||
|
||||
private YavimayaAnts(final YavimayaAnts card) {
|
||||
|
|
|
@ -28,7 +28,7 @@ public final class YavimayaGnats extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {G}: Regenerate Yavimaya Gnats.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{G}")));
|
||||
}
|
||||
|
||||
private YavimayaGnats(final YavimayaGnats card) {
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class YavimayaHollow extends CardImpl {
|
|||
this.addAbility(new ColorlessManaAbility());
|
||||
|
||||
// {G}, {tap}: Regenerate target creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl("{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl<>("{G}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -56,7 +56,7 @@ public final class YawgmothThranPhysician extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// {B}{B}, Discard a card: Proliferate.
|
||||
ability = new SimpleActivatedAbility(new ProliferateEffect(), new ManaCostsImpl("{B}{B}"));
|
||||
ability = new SimpleActivatedAbility(new ProliferateEffect(), new ManaCostsImpl<>("{B}{B}"));
|
||||
ability.addCost(new DiscardCardCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ public final class YewSpirit extends CardImpl {
|
|||
SourcePermanentPowerCount x = new SourcePermanentPowerCount();
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new BoostSourceEffect(x, x, Duration.EndOfTurn, true),
|
||||
new ManaCostsImpl("{2}{G}{G}")));
|
||||
new ManaCostsImpl<>("{2}{G}{G}")));
|
||||
}
|
||||
|
||||
private YewSpirit(final YewSpirit card) {
|
||||
|
|
|
@ -48,7 +48,7 @@ public final class YidaroWanderingMonster extends CardImpl {
|
|||
this.addAbility(HasteAbility.getInstance());
|
||||
|
||||
// Cycling {1}{R}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{R}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{1}{R}")));
|
||||
|
||||
// When you cycle Yidaro, Wandering Monster, shuffle it into your library from your graveyard. If you've cycled a card named Yidaro, Wandering Monster four or more times this game, put it onto the battlefield from your graveyard instead.
|
||||
this.addAbility(new CycleTriggeredAbility(new YidaroWanderingMonsterEffect())
|
||||
|
|
|
@ -43,7 +43,7 @@ public final class YisanTheWandererBard extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {2}{G}, {T}, Put a verse counter on Yisan, the Wanderer Bard: Search your library for a creature card with converted mana cost equal to the number of verse counters on Yisan, put it onto the battlefield, then shuffle your library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new YisanTheWandererBardEffect(), new ManaCostsImpl("{2}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new YisanTheWandererBardEffect(), new ManaCostsImpl<>("{2}{G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new PutCountersSourceCost(CounterType.VERSE.createInstance()));
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -23,7 +23,7 @@ public final class YokedPlowbeast extends CardImpl {
|
|||
|
||||
this.power = new MageInt(5);
|
||||
this.toughness = new MageInt(5);
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
public YokedPlowbeast (final YokedPlowbeast card) {
|
||||
|
|
|
@ -46,7 +46,7 @@ public final class YurikoTheTigersShadow extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// Commander ninjutsu {U}{B}
|
||||
this.addAbility(new NinjutsuAbility(new ManaCostsImpl("{U}{B}"), true));
|
||||
this.addAbility(new NinjutsuAbility(new ManaCostsImpl<>("{U}{B}"), true));
|
||||
|
||||
// Whenever a Ninja you control deals combat damage to a player, reveal the top card of your library and put that card into your hand. Each opponent loses life equal to that card's converted mana cost.
|
||||
this.addAbility(new DealsDamageToAPlayerAllTriggeredAbility(
|
||||
|
|
Loading…
Reference in a new issue