mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Refactor: fix raw use of parameterized class ManaCostsImpl - 'U' cards (#9086)
This commit is contained in:
parent
3e9cfa1e4b
commit
85e8b978b0
37 changed files with 42 additions and 42 deletions
|
@ -24,7 +24,7 @@ public final class UktabiEfreet extends CardImpl {
|
||||||
this.toughness = new MageInt(4);
|
this.toughness = new MageInt(4);
|
||||||
|
|
||||||
// Cumulative upkeep {G}
|
// Cumulative upkeep {G}
|
||||||
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{G}")));
|
this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl<>("{G}")));
|
||||||
}
|
}
|
||||||
|
|
||||||
private UktabiEfreet(final UktabiEfreet card) {
|
private UktabiEfreet(final UktabiEfreet card) {
|
||||||
|
|
|
@ -32,7 +32,7 @@ public final class UktabiFaerie extends CardImpl {
|
||||||
this.addAbility(FlyingAbility.getInstance());
|
this.addAbility(FlyingAbility.getInstance());
|
||||||
|
|
||||||
// {3}{G}, Sacrifice Uktabi Faerie: Destroy target artifact.
|
// {3}{G}, Sacrifice Uktabi Faerie: Destroy target artifact.
|
||||||
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new ManaCostsImpl("{3}{G}"));
|
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new ManaCostsImpl<>("{3}{G}"));
|
||||||
ability.addCost(new SacrificeSourceCost());
|
ability.addCost(new SacrificeSourceCost());
|
||||||
ability.addTarget(new TargetArtifactPermanent());
|
ability.addTarget(new TargetArtifactPermanent());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
|
@ -45,7 +45,7 @@ public final class UktabiWildcats extends CardImpl {
|
||||||
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new PermanentsOnBattlefieldCount(filter), Duration.EndOfGame)));
|
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new PermanentsOnBattlefieldCount(filter), Duration.EndOfGame)));
|
||||||
|
|
||||||
// {G}, Sacrifice a Forest: Regenerate Uktabi Wildcats.
|
// {G}, Sacrifice a Forest: Regenerate Uktabi Wildcats.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{G}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{G}"));
|
||||||
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(1, 1, sacrificeFilter, true)));
|
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(1, 1, sacrificeFilter, true)));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ public final class UlvenwaldCaptive extends CardImpl {
|
||||||
|
|
||||||
// {5}{G}{G}: Transform Ulvenwald Captive.
|
// {5}{G}{G}: Transform Ulvenwald Captive.
|
||||||
this.addAbility(new TransformAbility());
|
this.addAbility(new TransformAbility());
|
||||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new TransformSourceEffect(), new ManaCostsImpl("{5}{G}{G}")));
|
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new TransformSourceEffect(), new ManaCostsImpl<>("{5}{G}{G}")));
|
||||||
}
|
}
|
||||||
|
|
||||||
private UlvenwaldCaptive(final UlvenwaldCaptive card) {
|
private UlvenwaldCaptive(final UlvenwaldCaptive card) {
|
||||||
|
|
|
@ -29,7 +29,7 @@ public final class UlvenwaldPrimordials extends CardImpl {
|
||||||
this.toughness = new MageInt(5);
|
this.toughness = new MageInt(5);
|
||||||
|
|
||||||
// {G}: Regenerate Ulvenwald Primordials.
|
// {G}: Regenerate Ulvenwald Primordials.
|
||||||
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl("{G}")));
|
this.addAbility(new SimpleActivatedAbility(new RegenerateSourceEffect(), new ManaCostsImpl<>("{G}")));
|
||||||
|
|
||||||
// At the beginning of each upkeep, if a player cast two or more spells last turn, transform Ulvenwald Primordials.
|
// At the beginning of each upkeep, if a player cast two or more spells last turn, transform Ulvenwald Primordials.
|
||||||
this.addAbility(new WerewolfBackTriggeredAbility());
|
this.addAbility(new WerewolfBackTriggeredAbility());
|
||||||
|
|
|
@ -24,7 +24,7 @@ public final class Unburden extends CardImpl {
|
||||||
this.getSpellAbility().addTarget(new TargetPlayer());
|
this.getSpellAbility().addTarget(new TargetPlayer());
|
||||||
|
|
||||||
// Cycling {2}
|
// Cycling {2}
|
||||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Unburden(final Unburden card) {
|
private Unburden(final Unburden card) {
|
||||||
|
|
|
@ -25,7 +25,7 @@ public final class UnburialRites extends CardImpl {
|
||||||
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD));
|
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD));
|
||||||
|
|
||||||
// Flashback {3}{W}
|
// Flashback {3}{W}
|
||||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl("{3}{W}")));
|
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{3}{W}")));
|
||||||
}
|
}
|
||||||
|
|
||||||
private UnburialRites(final UnburialRites card) {
|
private UnburialRites(final UnburialRites card) {
|
||||||
|
|
|
@ -68,7 +68,7 @@ class UnconventionalTacticsTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
public UnconventionalTacticsTriggeredAbility() {
|
public UnconventionalTacticsTriggeredAbility() {
|
||||||
super(Zone.GRAVEYARD, new DoIfCostPaid(new ReturnToHandSourceEffect(), new ManaCostsImpl("{W}")), false);
|
super(Zone.GRAVEYARD, new DoIfCostPaid(new ReturnToHandSourceEffect(), new ManaCostsImpl<>("{W}")), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public UnconventionalTacticsTriggeredAbility(final UnconventionalTacticsTriggeredAbility ability) {
|
public UnconventionalTacticsTriggeredAbility(final UnconventionalTacticsTriggeredAbility ability) {
|
||||||
|
|
|
@ -33,13 +33,13 @@ public final class UndeadGladiator extends CardImpl {
|
||||||
// {1}{B}, Discard a card: Return Undead Gladiator from your graveyard to your hand. Activate this ability only during your upkeep.
|
// {1}{B}, Discard a card: Return Undead Gladiator from your graveyard to your hand. Activate this ability only during your upkeep.
|
||||||
Ability ability = new ConditionalActivatedAbility(Zone.GRAVEYARD,
|
Ability ability = new ConditionalActivatedAbility(Zone.GRAVEYARD,
|
||||||
new ReturnSourceFromGraveyardToHandEffect(),
|
new ReturnSourceFromGraveyardToHandEffect(),
|
||||||
new ManaCostsImpl("{1}{B}"),
|
new ManaCostsImpl<>("{1}{B}"),
|
||||||
new IsStepCondition(PhaseStep.UPKEEP), null);
|
new IsStepCondition(PhaseStep.UPKEEP), null);
|
||||||
ability.addCost(new DiscardCardCost());
|
ability.addCost(new DiscardCardCost());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
||||||
// Cycling {1}{B}
|
// Cycling {1}{B}
|
||||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{B}")));
|
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{1}{B}")));
|
||||||
}
|
}
|
||||||
|
|
||||||
private UndeadGladiator(final UndeadGladiator card) {
|
private UndeadGladiator(final UndeadGladiator card) {
|
||||||
|
|
|
@ -29,10 +29,10 @@ public final class UndeadLeotau extends CardImpl {
|
||||||
this.toughness = new MageInt(4);
|
this.toughness = new MageInt(4);
|
||||||
|
|
||||||
// {R}: Undead Leotau gets +1/-1 until end of turn.
|
// {R}: Undead Leotau gets +1/-1 until end of turn.
|
||||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(+1, -1, Duration.EndOfTurn), new ManaCostsImpl("{R}")));
|
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(+1, -1, Duration.EndOfTurn), new ManaCostsImpl<>("{R}")));
|
||||||
|
|
||||||
// Unearth {2}{B}
|
// Unearth {2}{B}
|
||||||
this.addAbility(new UnearthAbility(new ManaCostsImpl("{2}{B}")));
|
this.addAbility(new UnearthAbility(new ManaCostsImpl<>("{2}{B}")));
|
||||||
}
|
}
|
||||||
|
|
||||||
private UndeadLeotau(final UndeadLeotau card) {
|
private UndeadLeotau(final UndeadLeotau card) {
|
||||||
|
|
|
@ -38,7 +38,7 @@ public final class UndercityInformer extends CardImpl {
|
||||||
this.toughness = new MageInt(3);
|
this.toughness = new MageInt(3);
|
||||||
|
|
||||||
//{1}, Sacrifice a creature: Target player reveals the top card of their library until they reveal a land card, then puts those cards into their graveyard.
|
//{1}, Sacrifice a creature: Target player reveals the top card of their library until they reveal a land card, then puts those cards into their graveyard.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UndercityInformerEffect(), new ManaCostsImpl("{1}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UndercityInformerEffect(), new ManaCostsImpl<>("{1}"));
|
||||||
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
|
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
|
||||||
ability.addTarget(new TargetPlayer());
|
ability.addTarget(new TargetPlayer());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
|
@ -41,7 +41,7 @@ public final class UnderhandedDesigns extends CardImpl {
|
||||||
// {1}{B}, Sacrifice Underhanded Designs: Destroy target creature. Activate this ability only if you control two or more artifacts.
|
// {1}{B}, Sacrifice Underhanded Designs: Destroy target creature. Activate this ability only if you control two or more artifacts.
|
||||||
Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD,
|
Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD,
|
||||||
new DestroyTargetEffect(),
|
new DestroyTargetEffect(),
|
||||||
new ManaCostsImpl("{1}{B}"),
|
new ManaCostsImpl<>("{1}{B}"),
|
||||||
new PermanentsOnTheBattlefieldCondition(new FilterControlledArtifactPermanent("you control two or more artifacts"), ComparisonType.MORE_THAN, 1));
|
new PermanentsOnTheBattlefieldCondition(new FilterControlledArtifactPermanent("you control two or more artifacts"), ComparisonType.MORE_THAN, 1));
|
||||||
ability.addCost(new SacrificeSourceCost());
|
ability.addCost(new SacrificeSourceCost());
|
||||||
ability.addTarget(new TargetCreaturePermanent());
|
ability.addTarget(new TargetCreaturePermanent());
|
||||||
|
|
|
@ -33,7 +33,7 @@ public final class UnderworldCoinsmith extends CardImpl {
|
||||||
// Constellation - Whenever Underworld Coinsmith or an enchantment enters the battlefield under your control, you gain 1 life.
|
// Constellation - Whenever Underworld Coinsmith or an enchantment enters the battlefield under your control, you gain 1 life.
|
||||||
this.addAbility(new ConstellationAbility(new GainLifeEffect(1)));
|
this.addAbility(new ConstellationAbility(new GainLifeEffect(1)));
|
||||||
// {W}{B}, Pay 1 life: Each opponent loses 1 life.
|
// {W}{B}, Pay 1 life: Each opponent loses 1 life.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeOpponentsEffect(1), new ManaCostsImpl("{W}{B}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeOpponentsEffect(1), new ManaCostsImpl<>("{W}{B}"));
|
||||||
ability.addCost(new PayLifeCost(1));
|
ability.addCost(new PayLifeCost(1));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ public final class Unearth extends CardImpl {
|
||||||
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filter));
|
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filter));
|
||||||
|
|
||||||
// Cycling {2}
|
// Cycling {2}
|
||||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Unearth(final Unearth card) {
|
private Unearth(final Unearth card) {
|
||||||
|
|
|
@ -22,7 +22,7 @@ public final class UnfulfilledDesires extends CardImpl {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{U}{B}");
|
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{U}{B}");
|
||||||
|
|
||||||
// {1}, Pay 1 life: Draw a card, then discard a card.
|
// {1}, Pay 1 life: Draw a card, then discard a card.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawDiscardControllerEffect(), new ManaCostsImpl("{1}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawDiscardControllerEffect(), new ManaCostsImpl<>("{1}"));
|
||||||
ability.addCost(new PayLifeCost(1));
|
ability.addCost(new PayLifeCost(1));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@ class UnifyingTheoryEffect extends OneShotEffect {
|
||||||
Player caster = game.getPlayer(targetPointer.getFirst(game, source));
|
Player caster = game.getPlayer(targetPointer.getFirst(game, source));
|
||||||
if (caster != null) {
|
if (caster != null) {
|
||||||
if (caster.chooseUse(Outcome.DrawCard, "Pay {2} to draw a card?", source, game)) {
|
if (caster.chooseUse(Outcome.DrawCard, "Pay {2} to draw a card?", source, game)) {
|
||||||
Cost cost = new ManaCostsImpl("{2}");
|
Cost cost = new ManaCostsImpl<>("{2}");
|
||||||
if (cost.pay(source, game, source, caster.getId(), false, null)) {
|
if (cost.pay(source, game, source, caster.getId(), false, null)) {
|
||||||
caster.drawCards(1, source, game);
|
caster.drawCards(1, source, game);
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ public final class UnlikelyAlliance extends CardImpl {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{W}");
|
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{W}");
|
||||||
|
|
||||||
// {1}{W}: Target nonattacking, nonblocking creature gets +0/+2 until end of turn.
|
// {1}{W}: Target nonattacking, nonblocking creature gets +0/+2 until end of turn.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(0, 2, Duration.EndOfTurn), new ManaCostsImpl("{1}{W}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(0, 2, Duration.EndOfTurn), new ManaCostsImpl<>("{1}{W}"));
|
||||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ public final class UnpredictableCyclone extends CardImpl {
|
||||||
this.addAbility(new SimpleStaticAbility(new UnpredictableCycloneReplacementEffect()));
|
this.addAbility(new SimpleStaticAbility(new UnpredictableCycloneReplacementEffect()));
|
||||||
|
|
||||||
// Cycling {2}
|
// Cycling {2}
|
||||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
||||||
}
|
}
|
||||||
|
|
||||||
private UnpredictableCyclone(final UnpredictableCyclone card) {
|
private UnpredictableCyclone(final UnpredictableCyclone card) {
|
||||||
|
|
|
@ -43,14 +43,14 @@ public final class UnravelingMummy extends CardImpl {
|
||||||
// {1}{W}: Target attacking Zombie gains lifelink until end of turn.
|
// {1}{W}: Target attacking Zombie gains lifelink until end of turn.
|
||||||
Effect effect = new GainAbilityTargetEffect(LifelinkAbility.getInstance(), Duration.EndOfTurn);
|
Effect effect = new GainAbilityTargetEffect(LifelinkAbility.getInstance(), Duration.EndOfTurn);
|
||||||
effect.setText("Target attacking Zombie gains lifelink until end of turn.");
|
effect.setText("Target attacking Zombie gains lifelink until end of turn.");
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{W}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{1}{W}"));
|
||||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
||||||
// {1}{B}: Target attacking Zombie gains deathtouch until end of turn.
|
// {1}{B}: Target attacking Zombie gains deathtouch until end of turn.
|
||||||
effect = new GainAbilityTargetEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn);
|
effect = new GainAbilityTargetEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn);
|
||||||
effect.setText("Target attacking Zombie gains deathtouch until end of turn. <i>(Any amount of damage it deals to a creature is enough to destroy it.)</i>");
|
effect.setText("Target attacking Zombie gains deathtouch until end of turn. <i>(Any amount of damage it deals to a creature is enough to destroy it.)</i>");
|
||||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{B}"));
|
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{1}{B}"));
|
||||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ public final class UnrulySureshot extends CardImpl {
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
||||||
// {3}{R}: Unruly Sureshot deals 2 damage to target creature with a bounty counter on it.
|
// {3}{R}: Unruly Sureshot deals 2 damage to target creature with a bounty counter on it.
|
||||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl("{3}{R}"));
|
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl<>("{3}{R}"));
|
||||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ public final class UnseenWalker extends CardImpl {
|
||||||
// {1}{G}{G}: Target creature gains forestwalk until end of turn.
|
// {1}{G}{G}: Target creature gains forestwalk until end of turn.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||||
new GainAbilityTargetEffect(new ForestwalkAbility(false), Duration.EndOfTurn),
|
new GainAbilityTargetEffect(new ForestwalkAbility(false), Duration.EndOfTurn),
|
||||||
new ManaCostsImpl("{1}{G}{G}"));
|
new ManaCostsImpl<>("{1}{G}{G}"));
|
||||||
ability.addTarget(new TargetCreaturePermanent());
|
ability.addTarget(new TargetCreaturePermanent());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ public final class UnstableHulk extends CardImpl {
|
||||||
this.toughness = new MageInt(2);
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
// Morph {3}{R}{R}
|
// Morph {3}{R}{R}
|
||||||
this.addAbility(new MorphAbility(new ManaCostsImpl("{R}{R}")));
|
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{R}{R}")));
|
||||||
|
|
||||||
//When Unstable Hulk is turned face up, it gets +6/+6 and gains trample until end of turn. You skip your next turn.
|
//When Unstable Hulk is turned face up, it gets +6/+6 and gains trample until end of turn. You skip your next turn.
|
||||||
Effect effect = new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.EndOfTurn);
|
Effect effect = new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.EndOfTurn);
|
||||||
|
|
|
@ -29,7 +29,7 @@ public final class UnwaveringInitiate extends CardImpl {
|
||||||
this.addAbility(VigilanceAbility.getInstance());
|
this.addAbility(VigilanceAbility.getInstance());
|
||||||
|
|
||||||
// Embalm {4}{W}
|
// Embalm {4}{W}
|
||||||
this.addAbility(new EmbalmAbility(new ManaCostsImpl("{4}{W}"), this));
|
this.addAbility(new EmbalmAbility(new ManaCostsImpl<>("{4}{W}"), this));
|
||||||
}
|
}
|
||||||
|
|
||||||
private UnwaveringInitiate(final UnwaveringInitiate card) {
|
private UnwaveringInitiate(final UnwaveringInitiate card) {
|
||||||
|
|
|
@ -36,7 +36,7 @@ public final class UnwillingIngredient extends CardImpl {
|
||||||
Zone.GRAVEYARD,
|
Zone.GRAVEYARD,
|
||||||
new DrawCardSourceControllerEffect(1)
|
new DrawCardSourceControllerEffect(1)
|
||||||
.setText("you draw a card"),
|
.setText("you draw a card"),
|
||||||
new ManaCostsImpl("{2}{B}")
|
new ManaCostsImpl<>("{2}{B}")
|
||||||
);
|
);
|
||||||
ability.addEffect(new LoseLifeSourceControllerEffect(1).concatBy("and"));
|
ability.addEffect(new LoseLifeSourceControllerEffect(1).concatBy("and"));
|
||||||
ability.addCost(new ExileSourceFromGraveCost());
|
ability.addCost(new ExileSourceFromGraveCost());
|
||||||
|
|
|
@ -26,7 +26,7 @@ public final class UnworthyDead extends CardImpl {
|
||||||
|
|
||||||
this.power = new MageInt(1);
|
this.power = new MageInt(1);
|
||||||
this.toughness = new MageInt(1);
|
this.toughness = new MageInt(1);
|
||||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
|
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
|
||||||
}
|
}
|
||||||
|
|
||||||
private UnworthyDead(final UnworthyDead card) {
|
private UnworthyDead(final UnworthyDead card) {
|
||||||
|
|
|
@ -33,9 +33,9 @@ public final class UnyaroBees extends CardImpl {
|
||||||
// Flying
|
// Flying
|
||||||
this.addAbility(FlyingAbility.getInstance());
|
this.addAbility(FlyingAbility.getInstance());
|
||||||
// {G}: Unyaro Bees gets +1/+1 until end of turn.
|
// {G}: Unyaro Bees gets +1/+1 until end of turn.
|
||||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{G}")));
|
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{G}")));
|
||||||
// {3}{G}, Sacrifice Unyaro Bees: Unyaro Bees deals 2 damage to any target.
|
// {3}{G}, Sacrifice Unyaro Bees: Unyaro Bees deals 2 damage to any target.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2, "it"), new ManaCostsImpl("{3}{G}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2, "it"), new ManaCostsImpl<>("{3}{G}"));
|
||||||
ability.addCost(new SacrificeSourceCost());
|
ability.addCost(new SacrificeSourceCost());
|
||||||
ability.addTarget(new TargetAnyTarget());
|
ability.addTarget(new TargetAnyTarget());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
|
@ -29,7 +29,7 @@ public final class UnyieldingKrumar extends CardImpl {
|
||||||
this.toughness = new MageInt(3);
|
this.toughness = new MageInt(3);
|
||||||
|
|
||||||
// {1}{W}: Unyielding Krumar gains first strike until end of turn.
|
// {1}{W}: Unyielding Krumar gains first strike until end of turn.
|
||||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{1}{W}")));
|
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{1}{W}")));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ public final class UrborgMindsucker extends CardImpl {
|
||||||
this.toughness = new MageInt(2);
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
// {B}, Sacrifice Urborg Mindsucker: Target opponent discards a card at random. Activate this ability only any time you could cast a sorcery.
|
// {B}, Sacrifice Urborg Mindsucker: Target opponent discards a card at random. Activate this ability only any time you could cast a sorcery.
|
||||||
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1, true), new ManaCostsImpl("{B}"));
|
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1, true), new ManaCostsImpl<>("{B}"));
|
||||||
ability.addCost(new SacrificeSourceCost());
|
ability.addCost(new SacrificeSourceCost());
|
||||||
ability.addTarget(new TargetOpponent());
|
ability.addTarget(new TargetOpponent());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
|
@ -35,7 +35,7 @@ public final class UrborgPhantom extends CardImpl {
|
||||||
// {U}: Prevent all combat damage that would be dealt to and dealt by Urborg Phantom this turn.
|
// {U}: Prevent all combat damage that would be dealt to and dealt by Urborg Phantom this turn.
|
||||||
Effect effect = new PreventCombatDamageToSourceEffect(Duration.EndOfTurn);
|
Effect effect = new PreventCombatDamageToSourceEffect(Duration.EndOfTurn);
|
||||||
effect.setText("Prevent all combat damage that would be dealt to");
|
effect.setText("Prevent all combat damage that would be dealt to");
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{U}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{U}"));
|
||||||
effect = new PreventCombatDamageBySourceEffect(Duration.EndOfTurn);
|
effect = new PreventCombatDamageBySourceEffect(Duration.EndOfTurn);
|
||||||
effect.setText("and dealt by {this} this turn");
|
effect.setText("and dealt by {this} this turn");
|
||||||
ability.addEffect(effect);
|
ability.addEffect(effect);
|
||||||
|
|
|
@ -37,7 +37,7 @@ public final class UrborgSkeleton extends CardImpl {
|
||||||
this.addAbility(new KickerAbility("{3}"));
|
this.addAbility(new KickerAbility("{3}"));
|
||||||
|
|
||||||
// {B}: Regenerate Urborg Skeleton.
|
// {B}: Regenerate Urborg Skeleton.
|
||||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
|
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{B}")));
|
||||||
|
|
||||||
// If Urborg Skeleton was kicked, it enters the battlefield with a +1/+1 counter on it.
|
// If Urborg Skeleton was kicked, it enters the battlefield with a +1/+1 counter on it.
|
||||||
Ability ability = new EntersBattlefieldAbility(
|
Ability ability = new EntersBattlefieldAbility(
|
||||||
|
|
|
@ -33,7 +33,7 @@ public final class UrborgSyphonMage extends CardImpl {
|
||||||
this.toughness = new MageInt(2);
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
// {2}{B}, {tap}, Discard a card: Each other player loses 2 life. You gain life equal to the life lost this way.
|
// {2}{B}, {tap}, Discard a card: Each other player loses 2 life. You gain life equal to the life lost this way.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UrborgSyphonMageEffect(), new ManaCostsImpl("{2}{B}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UrborgSyphonMageEffect(), new ManaCostsImpl<>("{2}{B}"));
|
||||||
ability.addCost(new TapSourceCost());
|
ability.addCost(new TapSourceCost());
|
||||||
ability.addCost(new DiscardCardCost());
|
ability.addCost(new DiscardCardCost());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
|
@ -32,7 +32,7 @@ public final class UrsineChampion extends CardImpl {
|
||||||
Zone.BATTLEFIELD,
|
Zone.BATTLEFIELD,
|
||||||
new BoostSourceEffect(3, 3, Duration.EndOfTurn)
|
new BoostSourceEffect(3, 3, Duration.EndOfTurn)
|
||||||
.setText("{this} gets +3/+3"),
|
.setText("{this} gets +3/+3"),
|
||||||
new ManaCostsImpl("{5}{G}")
|
new ManaCostsImpl<>("{5}{G}")
|
||||||
);
|
);
|
||||||
ability.addEffect(new UrsineChampionEffect());
|
ability.addEffect(new UrsineChampionEffect());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
|
@ -40,7 +40,7 @@ public final class UrsineFylgja extends CardImpl {
|
||||||
new RemoveCountersSourceCost(CounterType.HEALING.createInstance(1))));
|
new RemoveCountersSourceCost(CounterType.HEALING.createInstance(1))));
|
||||||
// {2}{W}: Put a healing counter on Ursine Fylgja.
|
// {2}{W}: Put a healing counter on Ursine Fylgja.
|
||||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.HEALING.createInstance(1)),
|
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.HEALING.createInstance(1)),
|
||||||
new ManaCostsImpl("{2}{W}")));
|
new ManaCostsImpl<>("{2}{W}")));
|
||||||
}
|
}
|
||||||
|
|
||||||
private UrsineFylgja(final UrsineFylgja card) {
|
private UrsineFylgja(final UrsineFylgja card) {
|
||||||
|
|
|
@ -37,7 +37,7 @@ public final class UrzasAvenger extends CardImpl {
|
||||||
this.toughness = new MageInt(4);
|
this.toughness = new MageInt(4);
|
||||||
|
|
||||||
// {0}: Urza's Avenger gets -1/-1 and gains your choice of banding, flying, first strike, or trample until end of turn.
|
// {0}: Urza's Avenger gets -1/-1 and gains your choice of banding, flying, first strike, or trample until end of turn.
|
||||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UrzasAvengerEffect(), new ManaCostsImpl("{0}")));
|
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UrzasAvengerEffect(), new ManaCostsImpl<>("{0}")));
|
||||||
}
|
}
|
||||||
|
|
||||||
private UrzasAvenger(final UrzasAvenger card) {
|
private UrzasAvenger(final UrzasAvenger card) {
|
||||||
|
|
|
@ -37,10 +37,10 @@ public final class UrzasEngine extends CardImpl {
|
||||||
this.addAbility(TrampleAbility.getInstance());
|
this.addAbility(TrampleAbility.getInstance());
|
||||||
|
|
||||||
// {3}: Urza's Engine gains banding until end of turn.
|
// {3}: Urza's Engine gains banding until end of turn.
|
||||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(BandingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{3}")));
|
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(BandingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{3}")));
|
||||||
|
|
||||||
// {3}: Attacking creatures banded with Urza's Engine gain trample until end of turn.
|
// {3}: Attacking creatures banded with Urza's Engine gain trample until end of turn.
|
||||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UrzasEngineEffect(), new ManaCostsImpl("{3}")));
|
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new UrzasEngineEffect(), new ManaCostsImpl<>("{3}")));
|
||||||
}
|
}
|
||||||
|
|
||||||
public UrzasEngine(final UrzasEngine card) {
|
public UrzasEngine(final UrzasEngine card) {
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class UrzasHotTub extends CardImpl {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||||
|
|
||||||
// {2}, Discard a card: Search your library for a card that shares a complete word in its name with the discarded card, reveal it, put it into your hand, then shuffle your library.
|
// {2}, Discard a card: Search your library for a card that shares a complete word in its name with the discarded card, reveal it, put it into your hand, then shuffle your library.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UrzasHotTubEffect(), new ManaCostsImpl("{2}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UrzasHotTubEffect(), new ManaCostsImpl<>("{2}"));
|
||||||
ability.addCost(new DiscardTargetCost(new TargetCardInHand()));
|
ability.addCost(new DiscardTargetCost(new TargetCardInHand()));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ public final class UthdenTroll extends CardImpl {
|
||||||
this.toughness = new MageInt(2);
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
// {R}: Regenerate Uthden Troll.
|
// {R}: Regenerate Uthden Troll.
|
||||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{R}")));
|
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{R}")));
|
||||||
}
|
}
|
||||||
|
|
||||||
private UthdenTroll(final UthdenTroll card) {
|
private UthdenTroll(final UthdenTroll card) {
|
||||||
|
|
Loading…
Reference in a new issue