From c4f65177e3b3344518485dbf347b32ea86dce6e7 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 25 Mar 2021 20:05:07 -0400 Subject: [PATCH] [STX] Implemented Storm-Kiln Artist --- .../src/mage/cards/s/StormKilnArtist.java | 50 +++++++++++++++++++ .../mage/sets/StrixhavenSchoolOfMages.java | 1 + 2 files changed, 51 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/StormKilnArtist.java diff --git a/Mage.Sets/src/mage/cards/s/StormKilnArtist.java b/Mage.Sets/src/mage/cards/s/StormKilnArtist.java new file mode 100644 index 0000000000..c6eae9a9d4 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/StormKilnArtist.java @@ -0,0 +1,50 @@ +package mage.cards.s; + +import mage.MageInt; +import mage.abilities.common.MagecraftAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.dynamicvalue.common.ArtifactYouControlCount; +import mage.abilities.dynamicvalue.common.StaticValue; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.continuous.BoostSourceEffect; +import mage.abilities.hint.common.ArtifactYouControlHint; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.game.permanent.token.TreasureToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class StormKilnArtist extends CardImpl { + + public StormKilnArtist(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}"); + + this.subtype.add(SubType.DWARF); + this.subtype.add(SubType.SHAMAN); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Storm-Kiln Artist gets +1/+0 for each artifact you control. + this.addAbility(new SimpleStaticAbility(new BoostSourceEffect( + ArtifactYouControlCount.instance, StaticValue.get(0), Duration.WhileOnBattlefield + ).setText("{this} gets +1/+0 for each artifact you control")).addHint(ArtifactYouControlHint.instance)); + + // Magecraft — Whenever you cast or copy an instant or sorcery spell, create a Treasure token. + this.addAbility(new MagecraftAbility(new CreateTokenEffect(new TreasureToken()))); + } + + private StormKilnArtist(final StormKilnArtist card) { + super(card); + } + + @Override + public StormKilnArtist copy() { + return new StormKilnArtist(this); + } +} diff --git a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java index b1d5477203..b1e3495acf 100644 --- a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java +++ b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java @@ -38,6 +38,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet { cards.add(new SetCardInfo("Quandrix Command", 217, Rarity.RARE, mage.cards.q.QuandrixCommand.class)); cards.add(new SetCardInfo("Silverquill Apprentice", 231, Rarity.UNCOMMON, mage.cards.s.SilverquillApprentice.class)); cards.add(new SetCardInfo("Silverquill Command", 232, Rarity.RARE, mage.cards.s.SilverquillCommand.class)); + cards.add(new SetCardInfo("Storm-Kiln Artist", 115, Rarity.UNCOMMON, mage.cards.s.StormKilnArtist.class)); cards.add(new SetCardInfo("Witherbloom Command", 248, Rarity.RARE, mage.cards.w.WitherbloomCommand.class)); } }