From 1e0d935d8ff081eb582ee53bce25df6e91d801e8 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Tue, 22 Aug 2023 19:40:14 -0400 Subject: [PATCH] [WOE] Implement Storyteller Pixie --- .../src/mage/cards/s/StorytellerPixie.java | 51 +++++++++++++++++++ Mage.Sets/src/mage/sets/WildsOfEldraine.java | 1 + 2 files changed, 52 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/StorytellerPixie.java diff --git a/Mage.Sets/src/mage/cards/s/StorytellerPixie.java b/Mage.Sets/src/mage/cards/s/StorytellerPixie.java new file mode 100644 index 00000000000..b20faa79d79 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/StorytellerPixie.java @@ -0,0 +1,51 @@ +package mage.cards.s; + +import mage.MageInt; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.FilterSpell; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class StorytellerPixie extends CardImpl { + + private static final FilterSpell filter = new FilterSpell("an Adventure spell"); + + static { + filter.add(SubType.ADVENTURE.getPredicate()); + } + + public StorytellerPixie(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}"); + + this.subtype.add(SubType.FAERIE); + this.subtype.add(SubType.WIZARD); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Whenever you cast an Adventure spell, draw a card. + this.addAbility(new SpellCastControllerTriggeredAbility( + new DrawCardSourceControllerEffect(1), filter, false + )); + } + + private StorytellerPixie(final StorytellerPixie card) { + super(card); + } + + @Override + public StorytellerPixie copy() { + return new StorytellerPixie(this); + } +} diff --git a/Mage.Sets/src/mage/sets/WildsOfEldraine.java b/Mage.Sets/src/mage/sets/WildsOfEldraine.java index 160254649db..949b0d680f4 100644 --- a/Mage.Sets/src/mage/sets/WildsOfEldraine.java +++ b/Mage.Sets/src/mage/sets/WildsOfEldraine.java @@ -138,6 +138,7 @@ public final class WildsOfEldraine extends ExpansionSet { cards.add(new SetCardInfo("Splashy Spellcaster", 70, Rarity.UNCOMMON, mage.cards.s.SplashySpellcaster.class)); cards.add(new SetCardInfo("Stonesplitter Bolt", 151, Rarity.UNCOMMON, mage.cards.s.StonesplitterBolt.class)); cards.add(new SetCardInfo("Stormkeld Vanguard", 187, Rarity.UNCOMMON, mage.cards.s.StormkeldVanguard.class)); + cards.add(new SetCardInfo("Storyteller Pixie", 313, Rarity.UNCOMMON, mage.cards.s.StorytellerPixie.class)); cards.add(new SetCardInfo("Stroke of Midnight", 33, Rarity.UNCOMMON, mage.cards.s.StrokeOfMidnight.class)); cards.add(new SetCardInfo("Swamp", 264, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Sweettooth Witch", 111, Rarity.COMMON, mage.cards.s.SweettoothWitch.class));