From d4c633dd70e73e830ae597dab4278b4ead7adf16 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 27 May 2019 20:47:07 -0400 Subject: [PATCH] Implemented Webweaver Changeling --- .../src/mage/cards/w/WebweaverChangeling.java | 54 +++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons.java | 1 + 2 files changed, 55 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/w/WebweaverChangeling.java diff --git a/Mage.Sets/src/mage/cards/w/WebweaverChangeling.java b/Mage.Sets/src/mage/cards/w/WebweaverChangeling.java new file mode 100644 index 0000000000..3dc320e565 --- /dev/null +++ b/Mage.Sets/src/mage/cards/w/WebweaverChangeling.java @@ -0,0 +1,54 @@ +package mage.cards.w; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.condition.common.CardsInControllerGraveCondition; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.keyword.ChangelingAbility; +import mage.abilities.keyword.ReachAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class WebweaverChangeling extends CardImpl { + + public WebweaverChangeling(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}{G}"); + + this.subtype.add(SubType.SHAPESHIFTER); + this.power = new MageInt(3); + this.toughness = new MageInt(5); + + // Changeling + this.addAbility(ChangelingAbility.getInstance()); + + // Reach + this.addAbility(ReachAbility.getInstance()); + + // When Webweaver Changeling enters the battlefield, if there are three or more creature cards in your graveyard, you gain 5 life. + this.addAbility(new EntersBattlefieldTriggeredAbility(new ConditionalOneShotEffect( + new GainLifeEffect(5), + new CardsInControllerGraveCondition( + 3, StaticFilters.FILTER_CARD_CREATURE + ), "When {this} enters the battlefield, if there are three or more " + + "creature cards in your graveyard, you gain 5 life." + ))); + } + + private WebweaverChangeling(final WebweaverChangeling card) { + super(card); + } + + @Override + public WebweaverChangeling copy() { + return new WebweaverChangeling(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index bb42909959..cff73b770b 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -153,6 +153,7 @@ public final class ModernHorizons extends ExpansionSet { cards.add(new SetCardInfo("Wall of One Thousand Cuts", 36, Rarity.COMMON, mage.cards.w.WallOfOneThousandCuts.class)); cards.add(new SetCardInfo("Waterlogged Grove", 249, Rarity.RARE, mage.cards.w.WaterloggedGrove.class)); cards.add(new SetCardInfo("Weather the Storm", 191, Rarity.COMMON, mage.cards.w.WeatherTheStorm.class)); + cards.add(new SetCardInfo("Webweaver Changeling", 192, Rarity.UNCOMMON, mage.cards.w.WebweaverChangeling.class)); cards.add(new SetCardInfo("Winds of Abandon", 37, Rarity.RARE, mage.cards.w.WindsOfAbandon.class)); cards.add(new SetCardInfo("Wing Shards", 38, Rarity.UNCOMMON, mage.cards.w.WingShards.class)); cards.add(new SetCardInfo("Wrenn and Six", 217, Rarity.MYTHIC, mage.cards.w.WrennAndSix.class));