From d3419bc26d094455ae617092009d2f78789452a7 Mon Sep 17 00:00:00 2001 From: Antoni Date: Wed, 17 Apr 2019 19:16:31 -0400 Subject: [PATCH 1/2] implemented and tested Centaur Nurterer and Contentious Plan --- .../src/mage/cards/c/CentaurNurturer.java | 44 +++++++++++++++++++ .../src/mage/cards/c/ContentiousPlan.java | 34 ++++++++++++++ Mage.Sets/src/mage/sets/WarOfTheSpark.java | 2 + Utils/gen-card.pl | 1 + 4 files changed, 81 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/CentaurNurturer.java create mode 100644 Mage.Sets/src/mage/cards/c/ContentiousPlan.java diff --git a/Mage.Sets/src/mage/cards/c/CentaurNurturer.java b/Mage.Sets/src/mage/cards/c/CentaurNurturer.java new file mode 100644 index 0000000000..e71e56131b --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/CentaurNurturer.java @@ -0,0 +1,44 @@ +package mage.cards.c; + +import java.util.UUID; +import mage.MageInt; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.mana.AnyColorManaAbility; + + +/** + * + * @author antoni-g + */ +public final class CentaurNurturer extends CardImpl { + + public CentaurNurturer(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}"); + + this.subtype.add(SubType.CENTAUR); + this.subtype.add(SubType.DRUID); + this.power = new MageInt(2); + this.toughness = new MageInt(4); + + // When Centaur Nurturer enters the battlefield, you gain 3 life. + this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(3))); + // {T}: Add one mana of any color. + this.addAbility(new AnyColorManaAbility()); + } + + private CentaurNurturer(final CentaurNurturer card) { + super(card); + } + + @Override + public CentaurNurturer copy() { + return new CentaurNurturer(this); + } +} diff --git a/Mage.Sets/src/mage/cards/c/ContentiousPlan.java b/Mage.Sets/src/mage/cards/c/ContentiousPlan.java new file mode 100644 index 0000000000..ec04ee97ba --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/ContentiousPlan.java @@ -0,0 +1,34 @@ +package mage.cards.c; + +import java.util.UUID; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +import mage.abilities.effects.common.counter.ProliferateEffect; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; + +/** + * + * @author antoni-g + */ +public final class ContentiousPlan extends CardImpl { + + public ContentiousPlan(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{U}"); + + // Proliferate. + this.getSpellAbility().addEffect(new ProliferateEffect()); + // Draw a card. + this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1)); + } + + private ContentiousPlan(final ContentiousPlan card) { + super(card); + } + + @Override + public ContentiousPlan copy() { + return new ContentiousPlan(this); + } +} diff --git a/Mage.Sets/src/mage/sets/WarOfTheSpark.java b/Mage.Sets/src/mage/sets/WarOfTheSpark.java index 209f50c57e..3c4ae8b13f 100644 --- a/Mage.Sets/src/mage/sets/WarOfTheSpark.java +++ b/Mage.Sets/src/mage/sets/WarOfTheSpark.java @@ -51,12 +51,14 @@ public final class WarOfTheSpark extends ExpansionSet { cards.add(new SetCardInfo("Bulwark Giant", 7, Rarity.COMMON, mage.cards.b.BulwarkGiant.class)); cards.add(new SetCardInfo("Burning Prophet", 117, Rarity.COMMON, mage.cards.b.BurningProphet.class)); cards.add(new SetCardInfo("Casualties of War", 187, Rarity.RARE, mage.cards.c.CasualtiesOfWar.class)); + cards.add(new SetCardInfo("Centaur Nurturer", 156, Rarity.COMMON, mage.cards.c.CentaurNurturer.class)); cards.add(new SetCardInfo("Chainwhip Cyclops", 118, Rarity.COMMON, mage.cards.c.ChainwhipCyclops.class)); cards.add(new SetCardInfo("Challenger Troll", 157, Rarity.UNCOMMON, mage.cards.c.ChallengerTroll.class)); cards.add(new SetCardInfo("Chandra's Pyrohelix", 120, Rarity.COMMON, mage.cards.c.ChandrasPyrohelix.class)); cards.add(new SetCardInfo("Chandra's Triumph", 121, Rarity.UNCOMMON, mage.cards.c.ChandrasTriumph.class)); cards.add(new SetCardInfo("Chandra, Fire Artisan", 119, Rarity.RARE, mage.cards.c.ChandraFireArtisan.class)); cards.add(new SetCardInfo("Commence the Endgame", 45, Rarity.RARE, mage.cards.c.CommenceTheEndgame.class)); + cards.add(new SetCardInfo("Contentious Plan", 46, Rarity.COMMON, mage.cards.c.ContentiousPlan.class)); cards.add(new SetCardInfo("Courage in Crisis", 158, Rarity.COMMON, mage.cards.c.CourageInCrisis.class)); cards.add(new SetCardInfo("Cruel Celebrant", 188, Rarity.UNCOMMON, mage.cards.c.CruelCelebrant.class)); cards.add(new SetCardInfo("Crush Dissent", 47, Rarity.COMMON, mage.cards.c.CrushDissent.class)); diff --git a/Utils/gen-card.pl b/Utils/gen-card.pl index 44abc4a54c..298f605be2 100755 --- a/Utils/gen-card.pl +++ b/Utils/gen-card.pl @@ -40,6 +40,7 @@ if (-e $authorFile) { $author = 'anonymous'; } + open (DATA, $dataFile) || die "can't open $dataFile"; while(my $line = ) { my @data = split('\\|', $line); From ab548cc01cde9d6758decb67e040ee5a06435526 Mon Sep 17 00:00:00 2001 From: Antoni Gierczak Date: Wed, 17 Apr 2019 19:44:11 -0400 Subject: [PATCH 2/2] Update gen-card.pl --- Utils/gen-card.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/Utils/gen-card.pl b/Utils/gen-card.pl index 298f605be2..44abc4a54c 100755 --- a/Utils/gen-card.pl +++ b/Utils/gen-card.pl @@ -40,7 +40,6 @@ if (-e $authorFile) { $author = 'anonymous'; } - open (DATA, $dataFile) || die "can't open $dataFile"; while(my $line = ) { my @data = split('\\|', $line);