mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 20:59:14 -08:00
[refactor] removed generic parameter from remaining Abilities
This commit is contained in:
parent
a2e086a152
commit
4fd248c4f8
69 changed files with 73 additions and 77 deletions
|
|
@ -93,7 +93,7 @@ public class TraceOfAbundance extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class TraceOfAbundanceTriggeredAbility extends TriggeredManaAbility<TraceOfAbundanceTriggeredAbility> {
|
||||
class TraceOfAbundanceTriggeredAbility extends TriggeredManaAbility {
|
||||
|
||||
public TraceOfAbundanceTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new TraceOfAbundanceEffect());
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ public class TreacherousPitDweller extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class TreacherousPitDwellerTriggeredAbility extends ZoneChangeTriggeredAbility<TreacherousPitDwellerTriggeredAbility> {
|
||||
class TreacherousPitDwellerTriggeredAbility extends ZoneChangeTriggeredAbility {
|
||||
|
||||
private static final String ruleText = "When {this} enters the battlefield from a graveyard, ";
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ public class ClashOfRealities extends CardImpl {
|
|||
return new ClashOfRealities(this);
|
||||
}
|
||||
|
||||
private class ClashOfRealitiesTriggeredAbility extends ZoneChangeTriggeredAbility<ClashOfRealitiesTriggeredAbility> {
|
||||
private class ClashOfRealitiesTriggeredAbility extends ZoneChangeTriggeredAbility {
|
||||
|
||||
public ClashOfRealitiesTriggeredAbility(Effect effect, String rule) {
|
||||
super(Zone.BATTLEFIELD, effect, rule, true);
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ public class PetalmaneBaku extends CardImpl {
|
|||
return new PetalmaneBaku(this);
|
||||
}
|
||||
|
||||
private class PetalmaneBakuManaAbility extends BasicManaAbility<PetalmaneBakuManaAbility> {
|
||||
private class PetalmaneBakuManaAbility extends BasicManaAbility {
|
||||
PetalmaneBakuManaAbility() {
|
||||
super(new PetalmaneBakuManaEffect());
|
||||
this.addChoice(new ChoiceColor());
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ class AstralCornucopiaEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
|
||||
class AstralCornucopiaManaAbility extends ManaAbility<AstralCornucopiaManaAbility> {
|
||||
class AstralCornucopiaManaAbility extends ManaAbility {
|
||||
|
||||
public AstralCornucopiaManaAbility() {
|
||||
super(Zone.BATTLEFIELD, new AstralCornucopiaManaEffect(), new TapSourceCost());
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ public class HeartbeatOfSpring extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class HeartbeatOfSpringAbility extends TriggeredManaAbility<HeartbeatOfSpringAbility> {
|
||||
class HeartbeatOfSpringAbility extends TriggeredManaAbility {
|
||||
|
||||
private static final String staticText = "Whenever a player taps a land for mana, that player adds one mana to his or her mana pool of any type that land produced.";
|
||||
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ public class KnotvineMystic extends CardImpl{
|
|||
|
||||
}
|
||||
|
||||
class KnotvineMysticManaAbility extends BasicManaAbility<KnotvineMysticManaAbility> {
|
||||
class KnotvineMysticManaAbility extends BasicManaAbility {
|
||||
|
||||
public KnotvineMysticManaAbility() {
|
||||
super(new BasicManaEffect(new Mana(1, 1, 0, 1, 0, 0, 0)));
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ class QuenchableFireDelayedTriggeredAbility extends DelayedTriggeredAbility {
|
|||
|
||||
}
|
||||
|
||||
class QuenchableFireSpecialAction extends SpecialAction<QuenchableFireSpecialAction> {
|
||||
class QuenchableFireSpecialAction extends SpecialAction {
|
||||
|
||||
public QuenchableFireSpecialAction(UUID effectId) {
|
||||
this.addCost(new ManaCostsImpl("{U}"));
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ public class UrGolemsEye extends CardImpl {
|
|||
|
||||
}
|
||||
|
||||
class UrGolemsEyeAbility extends BasicManaAbility<UrGolemsEyeAbility> {
|
||||
class UrGolemsEyeAbility extends BasicManaAbility {
|
||||
|
||||
public UrGolemsEyeAbility() {
|
||||
super(new BasicManaEffect(new Mana(0, 0, 0, 0, 0, 2, 0)));
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ class ChooseColorEffect extends OneShotEffect {
|
|||
|
||||
}
|
||||
|
||||
class UtopiaSprawlTriggeredAbility extends TriggeredManaAbility<UtopiaSprawlTriggeredAbility> {
|
||||
class UtopiaSprawlTriggeredAbility extends TriggeredManaAbility {
|
||||
|
||||
|
||||
public UtopiaSprawlTriggeredAbility() {
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public class ZhurTaaAncient extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class ZhurTaaAncientAbility extends TriggeredManaAbility<ZhurTaaAncientAbility> {
|
||||
class ZhurTaaAncientAbility extends TriggeredManaAbility {
|
||||
|
||||
private static final String staticText = "Whenever a player taps a land for mana, that player adds one mana to his or her mana pool of any type that land produced.";
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ public class HighTide extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class HighTideTriggeredAbility extends DelayedTriggeredManaAbility<HighTideTriggeredAbility> {
|
||||
class HighTideTriggeredAbility extends DelayedTriggeredManaAbility {
|
||||
|
||||
private static final FilterLandPermanent filter = new FilterLandPermanent("Island");
|
||||
static {
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ public class DawnsReflection extends CardImpl {
|
|||
return new DawnsReflection(this);
|
||||
}
|
||||
}
|
||||
class DawnsReflectionTriggeredAbility extends TriggeredManaAbility<DawnsReflectionTriggeredAbility> {
|
||||
class DawnsReflectionTriggeredAbility extends TriggeredManaAbility {
|
||||
|
||||
public DawnsReflectionTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new DawnsReflectionManaEffect());
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ public class Narcomoeba extends CardImpl {
|
|||
}
|
||||
|
||||
|
||||
class NarcomoebaAbility extends ZoneChangeTriggeredAbility<NarcomoebaAbility> {
|
||||
class NarcomoebaAbility extends ZoneChangeTriggeredAbility {
|
||||
public NarcomoebaAbility() {
|
||||
super(Zone.LIBRARY, Zone.GRAVEYARD, new ReturnSourceFromGraveyardToBattlefieldEffect(), "", true);
|
||||
this.zone = Zone.ALL;
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ public class CryptGhast extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class CryptGhastTriggeredAbility extends TriggeredManaAbility<CryptGhastTriggeredAbility> {
|
||||
class CryptGhastTriggeredAbility extends TriggeredManaAbility {
|
||||
|
||||
private static final FilterControlledLandPermanent filter = new FilterControlledLandPermanent("Swamp");
|
||||
static {
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ public class VerdantHaven extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class VerdantHavenTriggeredAbility extends TriggeredManaAbility<VerdantHavenTriggeredAbility> {
|
||||
class VerdantHavenTriggeredAbility extends TriggeredManaAbility {
|
||||
|
||||
public VerdantHavenTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new VerdantHavenManaEffect());
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ public class WildGrowth extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class WildGrowthTriggeredAbility extends TriggeredManaAbility<WildGrowthTriggeredAbility> {
|
||||
class WildGrowthTriggeredAbility extends TriggeredManaAbility {
|
||||
|
||||
|
||||
public WildGrowthTriggeredAbility() {
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ public class MarketFestival extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class MarketFestivalTriggeredAbility extends TriggeredManaAbility<MarketFestivalTriggeredAbility> {
|
||||
class MarketFestivalTriggeredAbility extends TriggeredManaAbility {
|
||||
|
||||
public MarketFestivalTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new MarketFestivalManaEffect());
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ public class MistbindClique extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class MistbindCliqueAbility extends ZoneChangeTriggeredAbility<MistbindCliqueAbility> {
|
||||
class MistbindCliqueAbility extends ZoneChangeTriggeredAbility {
|
||||
|
||||
public MistbindCliqueAbility() {
|
||||
super(Zone.BATTLEFIELD, Zone.EXILED, new MistbindCliqueTapEffect(), "When a Faerie is championed with {this}, ", false);
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ public class KyrenToy extends CardImpl {
|
|||
return new KyrenToy(this);
|
||||
}
|
||||
|
||||
private class KyrenToyManaAbility extends BasicManaAbility<KyrenToyManaAbility> {
|
||||
private class KyrenToyManaAbility extends BasicManaAbility {
|
||||
KyrenToyManaAbility() {
|
||||
super(new KyrenToyManaEffect());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ public class LionsEyeDiamond extends CardImpl {
|
|||
}
|
||||
|
||||
|
||||
class LionsEyeDiamondAbility extends ManaAbility<LionsEyeDiamondAbility> {
|
||||
class LionsEyeDiamondAbility extends ManaAbility {
|
||||
|
||||
public LionsEyeDiamondAbility() {
|
||||
super(Zone.BATTLEFIELD, new AddManaOfAnyColorEffect(3), new SacrificeSourceCost());
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ class CagedSunEffect2 extends ContinuousEffectImpl {
|
|||
|
||||
}
|
||||
|
||||
class CagedSunTriggeredAbility extends TriggeredManaAbility<CagedSunTriggeredAbility> {
|
||||
class CagedSunTriggeredAbility extends TriggeredManaAbility {
|
||||
|
||||
private static final String staticText = "Whenever a land's ability adds one or more mana of the chosen color to your mana pool, add one additional mana of that color to your mana pool.";
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ public class CathedralMembrane extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class CathedralMembraneAbility extends ZoneChangeTriggeredAbility<CathedralMembraneAbility> {
|
||||
class CathedralMembraneAbility extends ZoneChangeTriggeredAbility {
|
||||
|
||||
public CathedralMembraneAbility() {
|
||||
super(Zone.BATTLEFIELD, Zone.GRAVEYARD, new CathedralMembraneEffect(), "When {this} dies during combat, ", false);
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ public class VorinclexVoiceOfHunger extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class VorinclexTriggeredAbility1 extends TriggeredManaAbility<VorinclexTriggeredAbility1> {
|
||||
class VorinclexTriggeredAbility1 extends TriggeredManaAbility {
|
||||
|
||||
private static final String staticText = "Whenever you tap a land for mana, add one mana to your mana pool of any type that land produced.";
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ class VedalkenEngineerManaCondition implements Condition {
|
|||
}
|
||||
}
|
||||
|
||||
class VedalkenEngineerAbility extends ManaAbility<VedalkenEngineerAbility> {
|
||||
class VedalkenEngineerAbility extends ManaAbility {
|
||||
|
||||
public VedalkenEngineerAbility(Cost cost, int amount, ConditionalManaBuilder manaBuilder) {
|
||||
super(Zone.BATTLEFIELD, new VedalkenEngineerEffect(amount, manaBuilder), cost);
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ public class AngelOfSerenity extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class AngelOfSerenityTriggeredAbility extends ZoneChangeTriggeredAbility<AngelOfSerenityTriggeredAbility> {
|
||||
class AngelOfSerenityTriggeredAbility extends ZoneChangeTriggeredAbility {
|
||||
|
||||
public AngelOfSerenityTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new AngelOfSerenityEnterEffect(), "When {this} enters the battlefield, ", true);
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public class SolRing extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class SolRingAbility extends BasicManaAbility<SolRingAbility> {
|
||||
class SolRingAbility extends BasicManaAbility {
|
||||
|
||||
public SolRingAbility() {
|
||||
super(new BasicManaEffect(Mana.ColorlessMana(2)));
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ public class DreamstoneHedron extends CardImpl {
|
|||
return new DreamstoneHedron(this);
|
||||
}
|
||||
|
||||
class DreamstoneHedronFirstManaAbility extends BasicManaAbility<DreamstoneHedronFirstManaAbility> {
|
||||
class DreamstoneHedronFirstManaAbility extends BasicManaAbility {
|
||||
|
||||
public DreamstoneHedronFirstManaAbility() {
|
||||
super(new BasicManaEffect(new Mana(0, 0, 0, 0, 0, 3, 0)));
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ public class EldraziTemple extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class EldraziTempleManaAbility extends BasicManaAbility<EldraziTempleManaAbility> {
|
||||
class EldraziTempleManaAbility extends BasicManaAbility {
|
||||
|
||||
EldraziTempleManaAbility ( ) {
|
||||
super(new BasicManaEffect(new EldraziConditionalMana()));
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ public class MulDayaChannelers extends CardImpl {
|
|||
}
|
||||
|
||||
|
||||
class MulDayaChannelersActivateIfConditionManaAbility extends ManaAbility<MulDayaChannelersActivateIfConditionManaAbility> {
|
||||
class MulDayaChannelersActivateIfConditionManaAbility extends ManaAbility {
|
||||
|
||||
private Condition condition;
|
||||
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ class GrandArchitectEffect extends ContinuousEffectImpl {
|
|||
|
||||
}
|
||||
|
||||
class GrandArchitectManaAbility extends ManaAbility<GrandArchitectManaAbility> {
|
||||
class GrandArchitectManaAbility extends ManaAbility {
|
||||
|
||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("untapped blue creature");
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ public class MyrReservoir extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class MyrReservoirManaAbility extends BasicManaAbility<MyrReservoirManaAbility> {
|
||||
class MyrReservoirManaAbility extends BasicManaAbility {
|
||||
|
||||
MyrReservoirManaAbility() {
|
||||
super(new BasicManaEffect(new MyrConditionalMana()));
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public class PalladiumMyr extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class PalladiumMyrAbility extends BasicManaAbility<PalladiumMyrAbility> {
|
||||
class PalladiumMyrAbility extends BasicManaAbility {
|
||||
|
||||
public PalladiumMyrAbility() {
|
||||
super(new BasicManaEffect(Mana.ColorlessMana(2)));
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ public class KeeperOfProgenitus extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class HeartbeatOfSpringAbility extends TriggeredManaAbility<HeartbeatOfSpringAbility> {
|
||||
class HeartbeatOfSpringAbility extends TriggeredManaAbility {
|
||||
|
||||
private static final String staticText = "Whenever a player taps a Mountain, Forest, or Plains for mana, that player adds one mana to his or her mana pool of any type that land produced.";
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ public class KnightOfTheWhiteOrchid extends CardImpl {
|
|||
|
||||
}
|
||||
|
||||
class KnightOfTheWhiteOrchidAbility extends ZoneChangeTriggeredAbility<KnightOfTheWhiteOrchidAbility> {
|
||||
class KnightOfTheWhiteOrchidAbility extends ZoneChangeTriggeredAbility {
|
||||
|
||||
private static final FilterCard filter1 = new FilterCard("Plains");
|
||||
private static final FilterLandPermanent filter2 = new FilterLandPermanent();
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ public class Overgrowth extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class OvergrowthTriggeredAbility extends TriggeredManaAbility<OvergrowthTriggeredAbility> {
|
||||
class OvergrowthTriggeredAbility extends TriggeredManaAbility {
|
||||
|
||||
|
||||
public OvergrowthTriggeredAbility() {
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ public class MongrelPack extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class MongrelPackAbility extends ZoneChangeTriggeredAbility<MongrelPackAbility> {
|
||||
class MongrelPackAbility extends ZoneChangeTriggeredAbility {
|
||||
|
||||
public MongrelPackAbility() {
|
||||
super(Zone.BATTLEFIELD, Zone.GRAVEYARD, new CreateTokenEffect(new HoundToken(), 4), "When {this} dies during combat, ", false);
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ public class NykthosShrineToNyx extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class NykthosShrineToNyxManaAbility extends ManaAbility<NykthosShrineToNyxManaAbility> {
|
||||
class NykthosShrineToNyxManaAbility extends ManaAbility {
|
||||
|
||||
public NykthosShrineToNyxManaAbility() {
|
||||
super(Zone.BATTLEFIELD, new NykthosDynamicManaEffect(), new GenericManaCost(2));
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ class GaeasBlessingTarget extends TargetCard {
|
|||
}
|
||||
}
|
||||
|
||||
class GaeasBlessingTriggeredAbility extends ZoneChangeTriggeredAbility<GaeasBlessingTriggeredAbility> {
|
||||
class GaeasBlessingTriggeredAbility extends ZoneChangeTriggeredAbility {
|
||||
public GaeasBlessingTriggeredAbility() {
|
||||
super(Zone.LIBRARY, Zone.GRAVEYARD, new GaeasBlessingGraveToLibraryEffect(), "", false);
|
||||
this.zone = Zone.ALL;
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public class FertileGround extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class FertileGroundTriggeredAbility extends TriggeredManaAbility<FertileGroundTriggeredAbility> {
|
||||
class FertileGroundTriggeredAbility extends TriggeredManaAbility {
|
||||
|
||||
|
||||
public FertileGroundTriggeredAbility() {
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ public class VernalBloom extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class VernalBloomTriggeredAbility extends TriggeredManaAbility<VernalBloomTriggeredAbility> {
|
||||
class VernalBloomTriggeredAbility extends TriggeredManaAbility {
|
||||
|
||||
private static final FilterLandPermanent filter = new FilterLandPermanent("Forest");
|
||||
static {
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ public class WornPowerstone extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class WornPowerstoneAbility extends BasicManaAbility<WornPowerstoneAbility> {
|
||||
class WornPowerstoneAbility extends BasicManaAbility {
|
||||
|
||||
public WornPowerstoneAbility() {
|
||||
super(new BasicManaEffect(Mana.ColorlessMana(2)));
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ public class HarabazDruid extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class HarabazDruidManaAbility extends BasicManaAbility<HarabazDruidManaAbility> {
|
||||
class HarabazDruidManaAbility extends BasicManaAbility {
|
||||
HarabazDruidManaAbility() {
|
||||
super(new HarabazDruidManaEffect());
|
||||
this.addChoice(new ChoiceColor());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue