From 6b160e3da288f4bcd0d570d5786f7a7eb5bbcc0c Mon Sep 17 00:00:00 2001 From: DeepCrimson <98864333+DeepCrimson@users.noreply.github.com> Date: Sun, 12 Jun 2022 09:50:33 -0700 Subject: [PATCH] Refactor: fix raw use of parameterized class ManaCostsImpl - 'X' cards (#9089) --- Mage.Sets/src/mage/cards/x/XWing.java | 2 +- Mage.Sets/src/mage/cards/x/XanthicStatue.java | 2 +- Mage.Sets/src/mage/cards/x/XathridGorgon.java | 2 +- Mage.Sets/src/mage/cards/x/XathridSlyblade.java | 2 +- Mage.Sets/src/mage/cards/x/XiraArien.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/cards/x/XWing.java b/Mage.Sets/src/mage/cards/x/XWing.java index bffb7ca68c..3d494e494f 100644 --- a/Mage.Sets/src/mage/cards/x/XWing.java +++ b/Mage.Sets/src/mage/cards/x/XWing.java @@ -32,7 +32,7 @@ public final class XWing extends CardImpl { this.addAbility(SpaceflightAbility.getInstance()); // {W}: X-Wing gains viginlance until end of turn. - this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(VigilanceAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{W}"))); + this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(VigilanceAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{W}"))); } diff --git a/Mage.Sets/src/mage/cards/x/XanthicStatue.java b/Mage.Sets/src/mage/cards/x/XanthicStatue.java index 32b60dcf00..3bd5d20f41 100644 --- a/Mage.Sets/src/mage/cards/x/XanthicStatue.java +++ b/Mage.Sets/src/mage/cards/x/XanthicStatue.java @@ -25,7 +25,7 @@ public final class XanthicStatue extends CardImpl { // {5}: Until end of turn, Xanthic Statue becomes an 8/8 Golem artifact creature with trample. this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(new XanthicStatueCreature(), - "", Duration.EndOfTurn), new ManaCostsImpl("{5}"))); + "", Duration.EndOfTurn), new ManaCostsImpl<>("{5}"))); } private XanthicStatue(final XanthicStatue card) { diff --git a/Mage.Sets/src/mage/cards/x/XathridGorgon.java b/Mage.Sets/src/mage/cards/x/XathridGorgon.java index 4008b3823f..bf0f65c7be 100644 --- a/Mage.Sets/src/mage/cards/x/XathridGorgon.java +++ b/Mage.Sets/src/mage/cards/x/XathridGorgon.java @@ -43,7 +43,7 @@ public final class XathridGorgon extends CardImpl { this.addAbility(DeathtouchAbility.getInstance()); // {2}{B}, {tap}: Put a petrification counter on target creature. It gains defender and becomes a colorless artifact in addition to its other types. Its activated abilities can't be activated. - Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.PETRIFICATION.createInstance()), new ManaCostsImpl("{2}{B}")); + Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.PETRIFICATION.createInstance()), new ManaCostsImpl<>("{2}{B}")); ability.addCost(new TapSourceCost()); ability.addTarget(new TargetCreaturePermanent()); Effect effect = new GainAbilityTargetEffect(DefenderAbility.getInstance(), Duration.Custom); diff --git a/Mage.Sets/src/mage/cards/x/XathridSlyblade.java b/Mage.Sets/src/mage/cards/x/XathridSlyblade.java index 6804a7c0ea..329549bccb 100644 --- a/Mage.Sets/src/mage/cards/x/XathridSlyblade.java +++ b/Mage.Sets/src/mage/cards/x/XathridSlyblade.java @@ -38,7 +38,7 @@ public final class XathridSlyblade extends CardImpl { // {3}{B}: Until end of turn, Xathrid Slyblade loses hexproof and gains first strike and deathtouch. Effect effect = new LoseAbilitySourceEffect(HexproofAbility.getInstance(), Duration.EndOfTurn); effect.setText("Until end of turn, {this} loses hexproof"); - Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{3}{B}")); + Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{3}{B}")); Effect effect2 = new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn); effect2.setText("and gains first strike"); ability.addEffect(effect2); diff --git a/Mage.Sets/src/mage/cards/x/XiraArien.java b/Mage.Sets/src/mage/cards/x/XiraArien.java index 5dcbbd5c8e..1a1bd9b550 100644 --- a/Mage.Sets/src/mage/cards/x/XiraArien.java +++ b/Mage.Sets/src/mage/cards/x/XiraArien.java @@ -35,7 +35,7 @@ public final class XiraArien extends CardImpl { // Flying this.addAbility(FlyingAbility.getInstance()); // {B}{R}{G}, {tap}: Target player draws a card. - Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(1), new ManaCostsImpl("{B}{R}{G}")); + Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(1), new ManaCostsImpl<>("{B}{R}{G}")); ability.addCost(new TapSourceCost()); ability.addTarget(new TargetPlayer()); this.addAbility(ability);