mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 05:09:16 -08:00
Refactor: fix raw use of parameterized class ManaCostsImpl - 'R' cards (#9083)
This commit is contained in:
parent
cde4e16f7b
commit
813c52afe6
182 changed files with 193 additions and 193 deletions
|
|
@ -59,7 +59,7 @@ public final class RadhaHeartOfKeld extends CardImpl {
|
|||
DynamicValue controlledLands = new PermanentsOnBattlefieldCount(StaticFilters.FILTER_CONTROLLED_PERMANENT_LANDS);
|
||||
BoostSourceEffect bse = new BoostSourceEffect(controlledLands, controlledLands, Duration.EndOfTurn, true);
|
||||
bse.setText("Radha gets +X/+X until end of turn, where X is the number of lands you control");
|
||||
this.addAbility(new SimpleActivatedAbility(bse, new ManaCostsImpl("{4}{R}{G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(bse, new ManaCostsImpl<>("{4}{R}{G}")));
|
||||
}
|
||||
|
||||
private RadhaHeartOfKeld(final RadhaHeartOfKeld card) {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class RadiantKavu extends CardImpl {
|
|||
|
||||
// {R}{G}{W}: Prevent all combat damage blue creatures and black creatures would deal this turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, (new PreventAllDamageByAllPermanentsEffect(filter,
|
||||
Duration.EndOfTurn, true)), new ManaCostsImpl("{R}{G}{W}")));
|
||||
Duration.EndOfTurn, true)), new ManaCostsImpl<>("{R}{G}{W}")));
|
||||
}
|
||||
|
||||
private RadiantKavu(final RadiantKavu card) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class RadiantsJudgment extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private RadiantsJudgment(final RadiantsJudgment card) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class RafterDemon extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// Spectacle {3}{B}{R}
|
||||
this.addAbility(new SpectacleAbility(this, new ManaCostsImpl("{3}{B}{R}")));
|
||||
this.addAbility(new SpectacleAbility(this, new ManaCostsImpl<>("{3}{B}{R}")));
|
||||
|
||||
// When Rafter Demon enters the battlefield, if its spectacle cost was paid, each opponent discards a card.
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class RagDealer extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {2}{B}, {T}: Exile up to three target cards from a single graveyard.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl("{2}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl<>("{2}{B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCardInASingleGraveyard(0, 3, StaticFilters.FILTER_CARD_CARDS));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class RagMan extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {B}{B}{B}, {T}: Target opponent reveals their hand and discards a creature card at random. Activate this ability only during your turn.
|
||||
Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD, new RevealHandTargetEffect(), new ManaCostsImpl("{B}{B}{B}"), MyTurnCondition.instance);
|
||||
Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD, new RevealHandTargetEffect(), new ManaCostsImpl<>("{B}{B}{B}"), MyTurnCondition.instance);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addEffect(new RagManDiscardEffect());
|
||||
ability.addTarget(new TargetOpponent());
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class RageNimbus extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new AttacksIfAbleTargetEffect(Duration.EndOfTurn),
|
||||
new ManaCostsImpl("{1}{R}"));
|
||||
new ManaCostsImpl<>("{1}{R}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class RagingRavine extends CardImpl {
|
|||
"land", Duration.EndOfTurn);
|
||||
effect.setText("Until end of turn, {this} becomes a 3/3 red and green Elemental creature");
|
||||
// {2}{R}{G}: Until end of turn, Raging Ravine becomes a 3/3 red and green Elemental creature with "Whenever this creature attacks, put a +1/+1 counter on it." It's still a land.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{2}{R}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{2}{R}{G}"));
|
||||
effect = new GainAbilitySourceEffect(new AttacksTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false), Duration.EndOfTurn);
|
||||
effect.setText("with \"Whenever this creature attacks, put a +1/+1 counter on it.\" It's still a land");
|
||||
ability.addEffect(effect);
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class RagingSpirit extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {2}: Raging Spirit becomes colorless until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesColorSourceEffect(new ObjectColor(), Duration.EndOfTurn), new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesColorSourceEffect(new ObjectColor(), Duration.EndOfTurn), new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private RagingSpirit(final RagingSpirit card) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class Ragnar extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {G}{W}{U}, {tap}: Regenerate target creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl("{G}{W}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateTargetEffect(), new ManaCostsImpl<>("{G}{W}{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class RainbowCrow extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
//
|
||||
// {1}: Rainbow Crow becomes the color of your choice until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesColorSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{1}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesColorSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{1}")));
|
||||
}
|
||||
|
||||
private RainbowCrow(final RainbowCrow card) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class RainbowEfreet extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// {U}{U}: Rainbow Efreet phases out.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PhaseOutSourceEffect(), new ManaCostsImpl("{U}{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PhaseOutSourceEffect(), new ManaCostsImpl<>("{U}{U}")));
|
||||
}
|
||||
|
||||
private RainbowEfreet(final RainbowEfreet card) {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class RakdosCluestone extends CardImpl {
|
|||
this.addAbility(new RedManaAbility());
|
||||
|
||||
// {B}{R}, {T}, Sacrifice Rakdos Cluestone: Draw a card.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{B}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{B}{R}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -36,13 +36,13 @@ public final class RakdosGuildmage extends CardImpl {
|
|||
|
||||
// <i>({BR} can be paid with either {B} or {R}.)</i>
|
||||
// {3}{B}, Discard a card: Target creature gets -2/-2 until end of turn.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-2, -2, Duration.EndOfTurn), new ManaCostsImpl("{3}{B}"));
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-2, -2, Duration.EndOfTurn), new ManaCostsImpl<>("{3}{B}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
ability.addCost(new DiscardCardCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
// {3}{R}: Create a 2/1 red Goblin creature token with haste. Exile it at the beginning of the next end step.
|
||||
SimpleActivatedAbility ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RakdosGuildmageEffect(), new ManaCostsImpl("{3}{R}"));
|
||||
SimpleActivatedAbility ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RakdosGuildmageEffect(), new ManaCostsImpl<>("{3}{R}"));
|
||||
this.addAbility(ability2);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class RakdosKeyrune extends CardImpl {
|
|||
this.addAbility(new RedManaAbility());
|
||||
|
||||
// {B}{R}: Rakdos Keyrune becomes a 3/1 black and red Devil artifact creature with first strike until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(new RakdosKeyruneToken(), "", Duration.EndOfTurn), new ManaCostsImpl("{B}{R}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(new RakdosKeyruneToken(), "", Duration.EndOfTurn), new ManaCostsImpl<>("{B}{R}")));
|
||||
}
|
||||
|
||||
private RakdosKeyrune(final RakdosKeyrune card) {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class RakdosRingleader extends CardImpl {
|
|||
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new DiscardTargetEffect(1, true), false, true));
|
||||
|
||||
// {B}: Regenerate Rakdos Ringleader.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
|
||||
}
|
||||
|
||||
private RakdosRingleader(final RakdosRingleader card) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class RakdosTrumpeter extends CardImpl {
|
|||
|
||||
// {3}{R}: Rakdos Trumpeter gets +2/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl("{3}{R}")
|
||||
new BoostSourceEffect(2, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{3}{R}")
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class RakeclawGargantuan extends CardImpl {
|
|||
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new GainAbilityTargetEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn),
|
||||
new ManaCostsImpl("{1}"));
|
||||
new ManaCostsImpl<>("{1}"));
|
||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class RakingClaws extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private RakingClaws(final RakingClaws card) {
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@ public final class RakshasaDeathdealer extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {B}{G}: Rakshasa Deathdealer gets +2/+2 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2,2,Duration.EndOfTurn), new ManaCostsImpl("{B}{G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2,2,Duration.EndOfTurn), new ManaCostsImpl<>("{B}{G}")));
|
||||
// {B}{G}: Regenerate Rakshasa Deathdealer.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}{G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}{G}")));
|
||||
}
|
||||
|
||||
private RakshasaDeathdealer(final RakshasaDeathdealer card) {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public final class RallyThePeasants extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new BoostControlledEffect(2, 0, Duration.EndOfTurn));
|
||||
|
||||
// Flashback {2}{R}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{2}{R}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{2}{R}")));
|
||||
}
|
||||
|
||||
private RallyThePeasants(final RallyThePeasants card) {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public final class RampagingHippo extends CardImpl {
|
|||
addAbility(TrampleAbility.getInstance());
|
||||
|
||||
// Cycling {2}
|
||||
addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
public RampagingHippo(final RampagingHippo rampagingHippo){
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class RampantElephant extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {G}: Target creature blocks Rampant Elephant this turn if able.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MustBeBlockedByTargetSourceEffect(), new ManaCostsImpl("{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MustBeBlockedByTargetSourceEffect(), new ManaCostsImpl<>("{G}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public final class RamunapRuins extends CardImpl {
|
|||
|
||||
// {2}{R}{R}, {t}, Sacrifice a Desert: Ramunap Ruins deals 2 damage to each opponent.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamagePlayersEffect(Outcome.Damage, StaticValue.get(2), TargetController.OPPONENT),
|
||||
new ManaCostsImpl("{2}{R}{R}"));
|
||||
new ManaCostsImpl<>("{2}{R}{R}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(1, 1, filter, true)));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class RankOfficer extends CardImpl {
|
|||
|
||||
// {1}{B}, {T}, Exile a creature card from your graveyard: Each opponent loses 2 life.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new LoseLifeOpponentsEffect(2), new ManaCostsImpl("{1}{B}")
|
||||
new LoseLifeOpponentsEffect(2), new ManaCostsImpl<>("{1}{B}")
|
||||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public final class RapidDecay extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetCardInASingleGraveyard(0, 3, StaticFilters.FILTER_CARD_CARDS));
|
||||
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private RapidDecay(final RapidDecay card) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class RappellingScouts extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {2}{W}: Rappelling Scouts gains protection from the color of your choice until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainProtectionFromColorSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{2}{W}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainProtectionFromColorSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{2}{W}")));
|
||||
}
|
||||
|
||||
private RappellingScouts(final RappellingScouts card) {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public final class RathiAssassin extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {1}{B}{B}, {T}: Destroy target tapped nonblack creature.
|
||||
Ability destroyAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{1}{B}{B}"));
|
||||
Ability destroyAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{1}{B}{B}"));
|
||||
destroyAbility.addCost(new TapSourceCost());
|
||||
destroyAbility.addTarget(new TargetCreaturePermanent(destroyFilter));
|
||||
this.addAbility(destroyAbility);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class RathiTrapper extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {B}, {tap}: Tap target creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl<>("{B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class RattleclawMystic extends CardImpl {
|
|||
this.addAbility(new RedManaAbility());
|
||||
|
||||
// Morph {2}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{2}")));
|
||||
|
||||
// When Rattleclaw Mystic is turned face up, add {G}{U}{R}.
|
||||
this.addAbility(new TurnedFaceUpSourceTriggeredAbility(new AddManaToManaPoolSourceControllerEffect(new Mana(0, 1, 0, 1,1, 0,0, 0))));
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class RaugrinCrystal extends CardImpl {
|
|||
this.addAbility(new WhiteManaAbility());
|
||||
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private RaugrinCrystal(final RaugrinCrystal card) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class RavenGuildMaster extends CardImpl {
|
|||
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new ExileCardsFromTopOfLibraryTargetEffect(10, "that player"), false, true));
|
||||
|
||||
// Morph {2}{U}{U}
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{2}{U}{U}")));
|
||||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{2}{U}{U}")));
|
||||
}
|
||||
|
||||
private RavenGuildMaster(final RavenGuildMaster card) {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class RavenousTrap extends CardImpl {
|
|||
this.subtype.add(SubType.TRAP);
|
||||
|
||||
// If an opponent had three or more cards put into their graveyard from anywhere this turn, you may pay {0} rather than pay Ravenous Trap's mana cost.
|
||||
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl("{0}"), RavenousTrapCondition.instance), new CardsPutIntoGraveyardWatcher());
|
||||
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl<>("{0}"), RavenousTrapCondition.instance), new CardsPutIntoGraveyardWatcher());
|
||||
|
||||
// Exile all cards from target player's graveyard.
|
||||
this.getSpellAbility().addEffect(new ExileGraveyardAllTargetPlayerEffect());
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class RayOfDistortion extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));
|
||||
// Flashback {4}{W}{W}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{4}{W}{W}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{4}{W}{W}")));
|
||||
}
|
||||
|
||||
private RayOfDistortion(final RayOfDistortion card) {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class RayOfRevelation extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
|
||||
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
// Flashback {G}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{G}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{G}")));
|
||||
}
|
||||
|
||||
private RayOfRevelation(final RayOfRevelation card) {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public final class RazakethsRite extends CardImpl {
|
|||
|
||||
// Cycling {B}
|
||||
|
||||
addAbility(new CyclingAbility(new ManaCostsImpl("{B}")));
|
||||
addAbility(new CyclingAbility(new ManaCostsImpl<>("{B}")));
|
||||
}
|
||||
|
||||
public RazakethsRite(final RazakethsRite razakethsRite){
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class RazorfinAbolisher extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {1}{U}, {tap}: Return target creature with a counter on it to its owner's hand.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl("{1}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl<>("{1}{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
Target target = new TargetCreaturePermanent(filter);
|
||||
ability.addTarget(target);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class RazortipWhip extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||
|
||||
// {1}, {tap}: Razortip Whip deals 1 damage to target opponent.
|
||||
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.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetOpponentOrPlaneswalker());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class RealityTwist extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{U}{U}{U}");
|
||||
|
||||
// Cumulative upkeep-Pay {1}{U}{U}.
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{1}{U}{U}")));
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{1}{U}{U}")));
|
||||
|
||||
// If tapped for mana, Plains produce {R}, Swamps produce {G}, Mountains produce {W}, and Forests produce {B} instead of any other type.
|
||||
this.addAbility(new SimpleStaticAbility(new RealityTwistEffect()));
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ public final class ReapTheSeagraf extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{B}");
|
||||
|
||||
this.getSpellAbility().addEffect(new CreateTokenEffect(new ZombieToken()));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{4}{U}")));
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{4}{U}")));
|
||||
}
|
||||
|
||||
private ReapTheSeagraf(final ReapTheSeagraf card) {
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ public final class ReaperOfTheWilds extends CardImpl {
|
|||
// Whenever another creature dies, scry 1.</i>
|
||||
this.addAbility(new DiesCreatureTriggeredAbility(new ScryEffect(1), false, true));
|
||||
// {B}: Reaper of the Wilds 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}")));
|
||||
// {1}{G}: Reaper of the Wilds gains hexproof until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(HexproofAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{1}{G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(HexproofAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}{G}")));
|
||||
}
|
||||
|
||||
private ReaperOfTheWilds(final ReaperOfTheWilds card) {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class ReassemblingSkeleton extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {1}{B}: Return Reassembling Skeleton from your graveyard to the battlefield tapped.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.GRAVEYARD, new ReturnSourceFromGraveyardToBattlefieldEffect(true, false), new ManaCostsImpl("{1}{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.GRAVEYARD, new ReturnSourceFromGraveyardToBattlefieldEffect(true, false), new ManaCostsImpl<>("{1}{B}")));
|
||||
}
|
||||
|
||||
private ReassemblingSkeleton(final ReassemblingSkeleton card) {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class RebornHero extends CardImpl {
|
|||
Zone.BATTLEFIELD,
|
||||
new ConditionalContinuousEffect(
|
||||
new GainAbilitySourceEffect(new DiesSourceTriggeredAbility(new DoIfCostPaid(
|
||||
new ReturnSourceFromGraveyardToBattlefieldEffect(), new ManaCostsImpl("{W}{W}")
|
||||
new ReturnSourceFromGraveyardToBattlefieldEffect(), new ManaCostsImpl<>("{W}{W}")
|
||||
))),
|
||||
new CardsInControllerGraveyardCondition(7),
|
||||
"As long as seven or more cards are in your graveyard, "
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class Rebuild extends CardImpl {
|
|||
// Return all artifacts to their owners' hands.
|
||||
this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(new FilterArtifactPermanent("artifacts")));
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private Rebuild(final Rebuild card) {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class Recantation extends CardImpl {
|
|||
// {U}, Sacrifice Recantation: Return up to X target permanents to their owners' hands, where X is the number of verse counters on Recantation.
|
||||
Effect effect = new ReturnToHandTargetEffect(true);
|
||||
effect.setText("Return up to X target permanents to their owners' hands, where X is the number of verse counters on {this}.");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{U}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetPermanent(0, 0, new FilterPermanent("up to X target permanents, where X is the number of verse counters on {this}."), false));
|
||||
ability.setTargetAdjuster(VerseCounterAdjuster.instance);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class RecklessAmplimancer extends CardImpl {
|
|||
// {4}{G}: Double Reckless Amplimancer's power and toughness until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(
|
||||
sourcePower, SourcePermanentToughnessValue.getInstance(), Duration.EndOfTurn, true
|
||||
).setText("double {this}'s power and toughness until end of turn"), new ManaCostsImpl("{4}{G}")));
|
||||
).setText("double {this}'s power and toughness until end of turn"), new ManaCostsImpl<>("{4}{G}")));
|
||||
}
|
||||
|
||||
private RecklessAmplimancer(final RecklessAmplimancer card) {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public final class RecklessAssault extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{B}{R}");
|
||||
|
||||
// {1}, Pay 2 life: Reckless Assault deals 1 damage to any target.
|
||||
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.addCost(new PayLifeCost(2));
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class RecklessEmbermage extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {1}{R}: Reckless Embermage deals 1 damage to any target and 1 damage to itself.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl("{1}{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl<>("{1}{R}"));
|
||||
ability.addEffect(new DamageSelfEffect(1));
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class RecklessReveler extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {R}, Sacrifice Reckless Reveler: Destroy target artifact.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{R}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{R}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addTarget(new TargetArtifactPermanent());
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class RecklessWurm extends CardImpl {
|
|||
this.addAbility(TrampleAbility.getInstance());
|
||||
|
||||
// Madness {2}{R}
|
||||
this.addAbility(new MadnessAbility(new ManaCostsImpl("{2}{R}")));
|
||||
this.addAbility(new MadnessAbility(new ManaCostsImpl<>("{2}{R}")));
|
||||
}
|
||||
|
||||
private RecklessWurm(final RecklessWurm card) {
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class Reconnaissance extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{W}");
|
||||
|
||||
// {0}: Remove target attacking creature you control from combat and untap it.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReconnaissanceRemoveFromCombatEffect(), new ManaCostsImpl("{0}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReconnaissanceRemoveFromCombatEffect(), new ManaCostsImpl<>("{0}"));
|
||||
ability.addTarget(new TargetControlledCreaturePermanent(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class ReconnaissanceMission extends CardImpl {
|
|||
));
|
||||
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private ReconnaissanceMission(final ReconnaissanceMission card) {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class ReforgeTheSoul extends CardImpl {
|
|||
this.getSpellAbility().addEffect(effect);
|
||||
|
||||
// Miracle {1}{R}
|
||||
this.addAbility(new MiracleAbility(this, new ManaCostsImpl("{1}{R}")));
|
||||
this.addAbility(new MiracleAbility(this, new ManaCostsImpl<>("{1}{R}")));
|
||||
}
|
||||
|
||||
private ReforgeTheSoul(final ReforgeTheSoul card) {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class RefractionTrap extends CardImpl {
|
|||
this.subtype.add(SubType.TRAP);
|
||||
|
||||
// If an opponent cast a red instant or sorcery spell this turn, you may pay {W} rather than pay Refraction Trap's mana cost.
|
||||
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl("{W}"), RefractionTrapCondition.instance), new SpellsCastWatcher());
|
||||
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl<>("{W}"), RefractionTrapCondition.instance), new SpellsCastWatcher());
|
||||
|
||||
// Prevent the next 3 damage that a source of your choice would deal to you and/or permanents you control this turn. If damage is prevented this way, Refraction Trap deals that much damage to any target.
|
||||
this.getSpellAbility().addEffect(new RefractionTrapPreventDamageEffect(Duration.EndOfTurn, 3));
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class Regeneration extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// {G}: Regenerate enchanted creature.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateAttachedEffect(AttachmentType.AURA), new ManaCostsImpl("{G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateAttachedEffect(AttachmentType.AURA), new ManaCostsImpl<>("{G}")));
|
||||
}
|
||||
|
||||
private Regeneration(final Regeneration card) {
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ public final class Rejuvenate extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{G}");
|
||||
|
||||
this.getSpellAbility().addEffect(new GainLifeEffect(6));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
public Rejuvenate (final Rejuvenate card) {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public final class RelentlessDead extends CardImpl {
|
|||
this.addAbility(new MenaceAbility());
|
||||
|
||||
// When Relentless Dead dies, you may pay {B}. If you do, return it to its owner's hand.
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new DoIfCostPaid(new ReturnToHandSourceEffect().setText("return it to its owner's hand"), new ManaCostsImpl("{B}"))));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new DoIfCostPaid(new ReturnToHandSourceEffect().setText("return it to its owner's hand"), new ManaCostsImpl<>("{B}"))));
|
||||
|
||||
// When Relentless Dead dies, you may pay {X}. If you do, return another target Zombie creature card with converted mana cost X from your graveyard to the battlefield.
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new RelentlessDeadEffect()));
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public final class RelentlessHunter extends CardImpl {
|
|||
// {1}{R}{G}: Relentless Hunter gets +1/+1 and gains trample until end of turn.
|
||||
Effect effect1 = new BoostSourceEffect(1, 1, Duration.EndOfTurn);
|
||||
effect1.setText("{this} gets +1/+1");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect1, new ManaCostsImpl("{1}{R}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect1, new ManaCostsImpl<>("{1}{R}{G}"));
|
||||
Effect effect2 = new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.EndOfTurn);
|
||||
effect2.setText("and gains trample until end of turn");
|
||||
ability.addEffect(effect2);
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public final class RemoteIsle extends CardImpl {
|
|||
|
||||
this.addAbility(new EntersBattlefieldTappedAbility());
|
||||
this.addAbility(new BlueManaAbility());
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private RemoteIsle(final RemoteIsle card) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class RenewedFaith extends CardImpl {
|
|||
// You gain 6 life.
|
||||
this.getSpellAbility().addEffect(new GainLifeEffect(6));
|
||||
// Cycling {1}{W}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{W}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{1}{W}")));
|
||||
// When you cycle Renewed Faith, you may gain 2 life.
|
||||
this.addAbility(new CycleTriggeredAbility(new GainLifeEffect(2), true));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class RenownedWeaponsmith extends CardImpl {
|
|||
this.addAbility(new ConditionalColorlessManaAbility(new TapSourceCost(), 2, new RenownedWeaponsmithManaBuilder()));
|
||||
|
||||
// {U}, {T}: Search your library for a card named Heart-Piercer Bow or Vial of Dragonfire, reveal it, put it into your hand, then shuffle your library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RenownedWeaponsmithEffect(), new ManaCostsImpl("{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RenownedWeaponsmithEffect(), new ManaCostsImpl<>("{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class RenownedWeaver extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {1}{G}, Sacrifice Renowned Weaver: Create a 1/3 green Spider enchantment creature token with reach.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new RenownedWeaverSpiderToken(), 1), new ManaCostsImpl("{1}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new RenownedWeaverSpiderToken(), 1), new ManaCostsImpl<>("{1}{G}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class RepeatingBarrage extends CardImpl {
|
|||
// Raid — {3}{R}{R}: Return Repeating Barrage from your graveyard to your hand. Activate this ability only if you attacked this turn.
|
||||
Ability ability = new ConditionalActivatedAbility(Zone.GRAVEYARD,
|
||||
new ReturnSourceFromGraveyardToHandEffect(),
|
||||
new ManaCostsImpl("{3}{R}{R}"),
|
||||
new ManaCostsImpl<>("{3}{R}{R}"),
|
||||
RaidCondition.instance);
|
||||
ability.setAbilityWord(AbilityWord.RAID);
|
||||
ability.addHint(RaidHint.instance);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class Repopulate extends CardImpl {
|
|||
this.getSpellAbility().addTarget(new TargetPlayer());
|
||||
this.getSpellAbility().addEffect(new RepopulateEffect());
|
||||
// Cycling {2}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private Repopulate(final Repopulate card) {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public final class Rescind extends CardImpl {
|
|||
|
||||
this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetPermanent());
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private Rescind(final Rescind card) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class ResearchAssistant extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// {3}{U}, {T}: Draw a card, then discard a card.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawDiscardControllerEffect(), new ManaCostsImpl("{3}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawDiscardControllerEffect(), new ManaCostsImpl<>("{3}{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public final class ResilientKhenra extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// Eternalize {4}{G}{G}
|
||||
this.addAbility(new EternalizeAbility(new ManaCostsImpl("{4}{G}{G}"), this));
|
||||
this.addAbility(new EternalizeAbility(new ManaCostsImpl<>("{4}{G}{G}"), this));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class Resistance extends CardImpl {
|
|||
Ability ability = new SimpleActivatedAbility(
|
||||
new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn)
|
||||
.setText("Target creature gains haste until end of turn"),
|
||||
new ManaCostsImpl("{R}{W}"));
|
||||
new ManaCostsImpl<>("{R}{W}"));
|
||||
ability.addEffect(new AttacksIfAbleTargetEffect(Duration.EndOfTurn).setText("and must attack"));
|
||||
//ability.addEffect(new GainAbilityTargetEffect(AttacksThisTurnMarkerAbility.getInstance(), Duration.EndOfTurn, "").setText(""));
|
||||
ability.addEffect(new BlocksIfAbleTargetEffect(Duration.EndOfTurn).setText("or block this turn if able"));
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public final class Resize extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new BoostTargetEffect(3, 3, Duration.EndOfTurn));
|
||||
|
||||
// Recover {1}{G}
|
||||
this.addAbility(new RecoverAbility(new ManaCostsImpl("{1}{G}"), this));
|
||||
this.addAbility(new RecoverAbility(new ManaCostsImpl<>("{1}{G}"), this));
|
||||
}
|
||||
|
||||
private Resize(final Resize card) {
|
||||
|
|
|
|||
|
|
@ -30,12 +30,12 @@ public final class ResoluteRider extends CardImpl {
|
|||
// {W/B}{W/B}: Resolute Rider gains lifelink until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(new GainAbilitySourceEffect(
|
||||
LifelinkAbility.getInstance(), Duration.EndOfTurn
|
||||
), new ManaCostsImpl("{W/B}{W/B}")));
|
||||
), new ManaCostsImpl<>("{W/B}{W/B}")));
|
||||
|
||||
// {W/B}{W/B}{W/B}: Resolute Rider gains indestructible until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(new GainAbilitySourceEffect(
|
||||
IndestructibleAbility.getInstance(), Duration.EndOfTurn
|
||||
), new ManaCostsImpl("{W/B}{W/B}{W/B}")));
|
||||
), new ManaCostsImpl<>("{W/B}{W/B}{W/B}")));
|
||||
}
|
||||
|
||||
private ResoluteRider(final ResoluteRider card) {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class ResoundingRoar extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new BoostTargetEffect(3, 3, Duration.EndOfTurn));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
// Cycling {5}{R}{G}{W}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{R}{G}{W}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{5}{R}{G}{W}")));
|
||||
// When you cycle Resounding Roar, target creature gets +6/+6 until end of turn.
|
||||
Ability ability = new CycleTriggeredAbility(new BoostTargetEffect(6, 6, Duration.EndOfTurn));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class ResoundingScream extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new DiscardTargetEffect(1, true));
|
||||
this.getSpellAbility().addTarget(new TargetPlayer());
|
||||
// Cycling {5}{U}{B}{R}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{U}{B}{R}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{5}{U}{B}{R}")));
|
||||
// When you cycle Resounding Scream, target player discards two cards at random.
|
||||
Ability ability = new CycleTriggeredAbility(new DiscardTargetEffect(2, true));
|
||||
ability.addTarget(new TargetPlayer());
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class ResoundingSilence extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new ExileTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetAttackingCreature());
|
||||
// Cycling {5}{G}{W}{U}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{G}{W}{U}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{5}{G}{W}{U}")));
|
||||
// When you cycle Resounding Silence, exile up to two target attacking creatures.
|
||||
Ability ability = new CycleTriggeredAbility(new ExileTargetEffect());
|
||||
ability.addTarget(new TargetPermanent(0, 2, StaticFilters.FILTER_ATTACKING_CREATURES));
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class ResoundingThunder extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new DamageTargetEffect(3));
|
||||
this.getSpellAbility().addTarget(new TargetAnyTarget());
|
||||
// Cycling {5}{B}{R}{G}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{B}{R}{G}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{5}{B}{R}{G}")));
|
||||
// When you cycle Resounding Thunder, it deals 6 damage to any target.
|
||||
Ability ability = new CycleTriggeredAbility(new DamageTargetEffect(6, "it"));
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class ResoundingWave extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetPermanent());
|
||||
// Cycling {5}{W}{U}{B}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{5}{W}{U}{B}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{5}{W}{U}{B}")));
|
||||
// When you cycle Resounding Wave, return two target permanents to their owners' hands.
|
||||
Ability ability = new CycleTriggeredAbility(new ReturnToHandTargetEffect());
|
||||
TargetPermanent target = new TargetPermanent(2, StaticFilters.FILTER_PERMANENTS);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public final class ResplendentAngel extends CardImpl {
|
|||
// {3}{W}{W}{W}: Until end of turn, Resplendent Angel gets +2/+2 and gains lifelink.
|
||||
Ability ability = new SimpleActivatedAbility(new BoostSourceEffect(
|
||||
2, 2, Duration.EndOfTurn
|
||||
).setText("until end of turn, {this} gets +2/+2"), new ManaCostsImpl("{3}{W}{W}{W}"));
|
||||
).setText("until end of turn, {this} gets +2/+2"), new ManaCostsImpl<>("{3}{W}{W}{W}"));
|
||||
ability.addEffect(new GainAbilitySourceEffect(
|
||||
LifelinkAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("and gains lifelink"));
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class RestlessApparition extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {WB}{WB}{WB}: Restless Apparition gets +3/+3 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(3, 3, Duration.EndOfTurn), new ManaCostsImpl("{W/B}{W/B}{W/B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(3, 3, Duration.EndOfTurn), new ManaCostsImpl<>("{W/B}{W/B}{W/B}")));
|
||||
// Persist
|
||||
this.addAbility(new PersistAbility());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,11 +30,11 @@ public final class RestlessBones extends CardImpl {
|
|||
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(new SwampwalkAbility(), Duration.EndOfTurn), new ManaCostsImpl("{3}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(new SwampwalkAbility(), Duration.EndOfTurn), new ManaCostsImpl<>("{3}{B}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
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 RestlessBones(final RestlessBones card) {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class RestlessDead extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {B}: Regenerate Restless Dead.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
|
||||
}
|
||||
|
||||
private RestlessDead(final RestlessDead card) {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class RestorationSpecialist extends CardImpl {
|
|||
// {W}, Sacrifice Restoration Specialist: Return up to one target artifact card and up to one target enchantment card from your graveyard to your hand.
|
||||
Effect effect = new ReturnToHandTargetEffect(true);
|
||||
effect.setText("Return up to one target artifact card and up to one target enchantment card from your graveyard to your hand");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{W}"));
|
||||
ability.addTarget(new TargetCardInGraveyard(0, 1, StaticFilters.FILTER_CARD_ARTIFACT_FROM_YOUR_GRAVEYARD));
|
||||
ability.addTarget(new TargetCardInGraveyard(0, 1, new FilterEnchantmentCard("enchantment card from your graveyard")));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class RetributionOfTheAncients extends CardImpl {
|
|||
|
||||
// {B}, Remove X +1/+1 counters from among creatures you control: Target creature gets -X/-X until end of turn.
|
||||
DynamicValue xValue = new SignInversionDynamicValue(GetXValue.instance);
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(xValue, xValue, Duration.EndOfTurn, true), new ManaCostsImpl("{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(xValue, xValue, Duration.EndOfTurn, true), new ManaCostsImpl<>("{B}"));
|
||||
ability.addCost(new RemoveVariableCountersTargetCost(StaticFilters.FILTER_CONTROLLED_CREATURES, CounterType.P1P1, "X", 0));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class ReturnedPhalanx extends CardImpl {
|
|||
// Defender
|
||||
this.addAbility(DefenderAbility.getInstance());
|
||||
// {1}{U}: Returned Phalanx can attack this turn as though it didn't have defender.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CanAttackAsThoughItDidntHaveDefenderSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{1}{U}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CanAttackAsThoughItDidntHaveDefenderSourceEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{1}{U}")));
|
||||
}
|
||||
|
||||
private ReturnedPhalanx(final ReturnedPhalanx card) {
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class RevengeOfTheHunted extends CardImpl {
|
|||
this.getSpellAbility().addEffect(effect);
|
||||
|
||||
// Miracle {G}
|
||||
this.addAbility(new MiracleAbility(this, new ManaCostsImpl("{G}")));
|
||||
this.addAbility(new MiracleAbility(this, new ManaCostsImpl<>("{G}")));
|
||||
}
|
||||
|
||||
private RevengeOfTheHunted(final RevengeOfTheHunted card) {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class ReveredDead extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {W}: Regenerate Revered Dead.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{W}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{W}")));
|
||||
}
|
||||
|
||||
private ReveredDead(final ReveredDead card) {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class ReveredElder extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {1}: Prevent the next 1 damage that would be dealt to Revered Elder this turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventDamageToSourceEffect(Duration.EndOfTurn, 1), new ManaCostsImpl("{1}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventDamageToSourceEffect(Duration.EndOfTurn, 1), new ManaCostsImpl<>("{1}")));
|
||||
}
|
||||
|
||||
private ReveredElder(final ReveredElder card) {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class ReveredUnicorn extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// Cumulative upkeep {1}
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{1}")));
|
||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{1}")));
|
||||
// When Revered Unicorn leaves the battlefield, you gain life equal to the number of age counters on it.
|
||||
this.addAbility(new LeavesBattlefieldTriggeredAbility(new GainLifeEffect(new CountersSourceCount(CounterType.AGE)), false));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public final class RhonasTheIndomitable extends CardImpl {
|
|||
// {2}{G}: Another target creature gets +2/+0 and gains trample until end of turn.
|
||||
Effect effect = new BoostTargetEffect(2, 0, Duration.EndOfTurn);
|
||||
effect.setText("Another target creature gets +2/+0");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{2}{G}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{2}{G}"));
|
||||
effect = new GainAbilityTargetEffect(TrampleAbility.getInstance(), Duration.EndOfTurn);
|
||||
effect.setText("and gains trample until end of turn");
|
||||
ability.addEffect(effect);
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class Rhox extends CardImpl {
|
|||
// You may have Rhox assign its combat damage as though it weren't blocked.
|
||||
this.addAbility(DamageAsThoughNotBlockedAbility.getInstance());
|
||||
// {2}{G}: Regenerate Rhox.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{2}{G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{2}{G}")));
|
||||
}
|
||||
|
||||
private Rhox(final Rhox card) {
|
||||
|
|
|
|||
|
|
@ -41,12 +41,12 @@ public final class RhysTheRedeemed extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {2}{GW}, {tap}: Create a 1/1 green and white Elf Warrior creature token.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new GreenWhiteElfWarriorToken()), new ManaCostsImpl("{2}{G/W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new GreenWhiteElfWarriorToken()), new ManaCostsImpl<>("{2}{G/W}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
// {4}{GW}{GW}, {tap}: For each creature token you control, create a token that's a copy of that creature.
|
||||
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RhysTheRedeemedEffect(), new ManaCostsImpl("{4}{G/W}{G/W}"));
|
||||
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RhysTheRedeemedEffect(), new ManaCostsImpl<>("{4}{G/W}{G/W}"));
|
||||
ability2.addCost(new TapSourceCost());
|
||||
this.addAbility(ability2);
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class RhysticCircle extends CardImpl {
|
|||
// {1}: Any player may pay {1}. If no one does, the next time a source of your choice would deal damage to you this turn, prevent that damage.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new DoUnlessAnyPlayerPaysEffect(new PreventNextDamageFromChosenSourceToYouEffect(Duration.EndOfTurn),new GenericManaCost(1)),
|
||||
new ManaCostsImpl("{1}")));
|
||||
new ManaCostsImpl<>("{1}")));
|
||||
}
|
||||
|
||||
private RhysticCircle(final RhysticCircle card) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class RhysticDeluge extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{U}");
|
||||
|
||||
// {U}: Tap target creature unless its controller pays {1}.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DoUnlessTargetPlayerOrTargetsControllerPaysEffect(new TapTargetEffect(), new ManaCostsImpl("{1}")), new ManaCostsImpl("{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DoUnlessTargetPlayerOrTargetsControllerPaysEffect(new TapTargetEffect(), new ManaCostsImpl<>("{1}")), new ManaCostsImpl<>("{U}"));
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public final class RhysticLightning extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{R}");
|
||||
|
||||
// Rhystic Lightning deals 4 damage to any target unless that creature's controller or that player pays {2}. If they do, Rhystic Lightning deals 2 damage to the creature or player.
|
||||
Effect effect = new DoUnlessTargetPlayerOrTargetsControllerPaysEffect(new DamageTargetEffect(4), new DamageTargetEffect(2), new ManaCostsImpl("{2}"),
|
||||
Effect effect = new DoUnlessTargetPlayerOrTargetsControllerPaysEffect(new DamageTargetEffect(4), new DamageTargetEffect(2), new ManaCostsImpl<>("{2}"),
|
||||
"Pay {2} to have {this} deal 2 damage instead of 4 damage?");
|
||||
effect.setText("{this} deals 4 damage to any target unless that creature's controller or that player pays {2}. If they do, {this} deals 2 damage to the creature or player");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class RhysticShield extends CardImpl {
|
|||
|
||||
// Creatures you control get +0/+1 until end of turn. They get an additional +0/+2 until end of turn unless any player pays {2}.
|
||||
this.getSpellAbility().addEffect(new BoostControlledEffect(0, 1, Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURE, false));
|
||||
Effect effect = new DoUnlessAnyPlayerPaysEffect(new BoostControlledEffect(0, 2, Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURE, false), new ManaCostsImpl("{2}"));
|
||||
Effect effect = new DoUnlessAnyPlayerPaysEffect(new BoostControlledEffect(0, 2, Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURE, false), new ManaCostsImpl<>("{2}"));
|
||||
effect.setText("They get an additional +0/+2 until end of turn unless any player pays {2}");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public final class RhysticSyphon extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{B}{B}");
|
||||
|
||||
// Unless target player pays {3}, they lose 5 life and you gain 5 life.
|
||||
DoUnlessTargetPlayerOrTargetsControllerPaysEffect effect = new DoUnlessTargetPlayerOrTargetsControllerPaysEffect(new LoseLifeTargetEffect(5), new ManaCostsImpl("{3}"));
|
||||
DoUnlessTargetPlayerOrTargetsControllerPaysEffect effect = new DoUnlessTargetPlayerOrTargetsControllerPaysEffect(new LoseLifeTargetEffect(5), new ManaCostsImpl<>("{3}"));
|
||||
effect.addEffect(new GainLifeEffect(5));
|
||||
effect.setText("Unless target player pays {3}, they lose 5 life and you gain 5 life");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public final class RhysticTutor extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{B}");
|
||||
|
||||
// Unless any player pays {2}, search your library for a card, put that card into your hand, then shuffle your library.
|
||||
Effect effect = new DoUnlessAnyPlayerPaysEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary()), new ManaCostsImpl("{2}"));
|
||||
Effect effect = new DoUnlessAnyPlayerPaysEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary()), new ManaCostsImpl<>("{2}"));
|
||||
effect.setText("Unless any player pays {2}, search your library for a card, put that card into your hand, then shuffle");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class RibbonSnake extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
// {2}: Ribbon Snake loses flying until end of turn. Any player may activate this ability.
|
||||
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseAbilitySourceEffect(
|
||||
FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{2}"));
|
||||
FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{2}"));
|
||||
ability.setMayActivate(TargetController.ANY);
|
||||
ability.addEffect(new InfoEffect("Any player may activate this ability"));
|
||||
this.addAbility(ability);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class RicochetTrap extends CardImpl {
|
|||
this.subtype.add(SubType.TRAP);
|
||||
|
||||
// If an opponent cast a blue spell this turn, you may pay {R} rather than pay Ricochet Trap's mana cost.
|
||||
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl("{R}"), RicochetTrapCondition.instance), new SpellsCastWatcher());
|
||||
this.addAbility(new AlternativeCostSourceAbility(new ManaCostsImpl<>("{R}"), RicochetTrapCondition.instance), new SpellsCastWatcher());
|
||||
|
||||
// Change the target of target spell with a single target.
|
||||
this.getSpellAbility().addEffect(new ChooseNewTargetsTargetEffect(true, true));
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class Riddleform extends CardImpl {
|
|||
this.addAbility(new SpellCastControllerTriggeredAbility(Zone.BATTLEFIELD, effect, filterNonCreature, true, true));
|
||||
|
||||
// {2}{U}: Scry 1.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ScryEffect(1), new ManaCostsImpl("{2}{U}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ScryEffect(1), new ManaCostsImpl<>("{2}{U}"));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class RidgeRannet extends CardImpl {
|
|||
this.power = new MageInt(6);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||
}
|
||||
|
||||
private RidgeRannet(final RidgeRannet card) {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public final class RidgedKusite extends CardImpl {
|
|||
// {1}{B}, {tap}, Discard a card: Target creature gets +1/+0 and gains first strike until end of turn.
|
||||
Effect effect = new BoostTargetEffect(1, 0, Duration.EndOfTurn);
|
||||
effect.setText("Target creature gets +1/+0");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{B}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{1}{B}"));
|
||||
effect = new GainAbilityTargetEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn);
|
||||
effect.setText("and gains first strike until end of turn");
|
||||
ability.addEffect(effect);
|
||||
|
|
|
|||
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