From f486f2de22c2b09161bc317f263e2639958c2a21 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 1 Mar 2022 18:04:00 -0500 Subject: [PATCH] [Y22] Implemented Ishkanah, Broodmother --- .../src/mage/cards/i/IshkanahBroodmother.java | 85 +++++++++++++++++++ Mage.Sets/src/mage/sets/AlchemyInnistrad.java | 1 + 2 files changed, 86 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/i/IshkanahBroodmother.java diff --git a/Mage.Sets/src/mage/cards/i/IshkanahBroodmother.java b/Mage.Sets/src/mage/cards/i/IshkanahBroodmother.java new file mode 100644 index 00000000000..22a9c2fdcf6 --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/IshkanahBroodmother.java @@ -0,0 +1,85 @@ +package mage.cards.i; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.costs.common.ExileFromGraveCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.DraftFromSpellbookEffect; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.keyword.ReachAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.filter.StaticFilters; +import mage.filter.common.FilterCreaturePermanent; +import mage.target.common.TargetCardInYourGraveyard; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class IshkanahBroodmother extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent(SubType.SPIDER, "Spiders"); + private static final List spellbook = Collections.unmodifiableList(Arrays.asList( + "Arachnoform", + "Brood Weaver", + "Drider", + // "Glowstone Recluse", mutate card + "Gnottvold Recluse", + "Hatchery Spider", + "Mammoth Spider", + "Netcaster Spider", + "Prey Upon", + "Sentinel Spider", + "Snarespinner", + "Spider Spawning", + "Spidery Grasp", + "Sporecap Spider", + "Twin-Silk Spider" + )); + + public IshkanahBroodmother(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.SPIDER); + this.power = new MageInt(3); + this.toughness = new MageInt(5); + + // Reach + this.addAbility(ReachAbility.getInstance()); + + // Other Spiders you control get +1/+2. + this.addAbility(new SimpleStaticAbility(new BoostControlledEffect( + 1, 2, Duration.WhileOnBattlefield, filter, true + ))); + + // {1}{B/G}, Exile two cards from your graveyard: Draft a card from Ishkanah, Broodmother's spellbook. + Ability ability = new SimpleActivatedAbility( + new DraftFromSpellbookEffect(spellbook), new ManaCostsImpl<>("{1}{B/G}") + ); + ability.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard( + 2, StaticFilters.FILTER_CARD_CARDS + ))); + this.addAbility(ability); + } + + private IshkanahBroodmother(final IshkanahBroodmother card) { + super(card); + } + + @Override + public IshkanahBroodmother copy() { + return new IshkanahBroodmother(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AlchemyInnistrad.java b/Mage.Sets/src/mage/sets/AlchemyInnistrad.java index 866954ad13e..33f811208f8 100644 --- a/Mage.Sets/src/mage/sets/AlchemyInnistrad.java +++ b/Mage.Sets/src/mage/sets/AlchemyInnistrad.java @@ -22,6 +22,7 @@ public final class AlchemyInnistrad extends ExpansionSet { cards.add(new SetCardInfo("Cursebound Witch", 24, Rarity.UNCOMMON, mage.cards.c.CurseboundWitch.class)); cards.add(new SetCardInfo("Faithful Disciple", 7, Rarity.UNCOMMON, mage.cards.f.FaithfulDisciple.class)); + cards.add(new SetCardInfo("Ishkanah, Broodmother", 52, Rarity.MYTHIC, mage.cards.i.IshkanahBroodmother.class)); cards.add(new SetCardInfo("Key to the Archive", 59, Rarity.RARE, mage.cards.k.KeyToTheArchive.class)); cards.add(new SetCardInfo("Soulstealer Axe", 60, Rarity.UNCOMMON, mage.cards.s.SoulstealerAxe.class)); cards.add(new SetCardInfo("Tireless Angler", 23, Rarity.RARE, mage.cards.t.TirelessAngler.class));