From 136cae01e23abe094d39736e5e9d237316718cea Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 3 Nov 2023 18:46:23 -0400 Subject: [PATCH] [LCI] Implement Disruptor Wanderglyph --- .../mage/cards/d/DisruptorWanderglyph.java | 44 +++++++++++++++++++ .../src/mage/sets/TheLostCavernsOfIxalan.java | 1 + 2 files changed, 45 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DisruptorWanderglyph.java diff --git a/Mage.Sets/src/mage/cards/d/DisruptorWanderglyph.java b/Mage.Sets/src/mage/cards/d/DisruptorWanderglyph.java new file mode 100644 index 00000000000..fb51672f483 --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DisruptorWanderglyph.java @@ -0,0 +1,44 @@ +package mage.cards.d; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.effects.common.ExileTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.FilterCard; +import mage.target.common.TargetCardInOpponentsGraveyard; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DisruptorWanderglyph extends CardImpl { + + private static final FilterCard filter = new FilterCard("card from an opponent's graveyard"); + + public DisruptorWanderglyph(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{4}"); + + this.subtype.add(SubType.GOLEM); + this.power = new MageInt(3); + this.toughness = new MageInt(4); + + // Whenever Disruptor Wanderglyph attacks, exile target card from an opponent's graveyard. + Ability ability = new AttacksTriggeredAbility(new ExileTargetEffect()); + ability.addTarget(new TargetCardInOpponentsGraveyard(filter)); + this.addAbility(ability); + } + + private DisruptorWanderglyph(final DisruptorWanderglyph card) { + super(card); + } + + @Override + public DisruptorWanderglyph copy() { + return new DisruptorWanderglyph(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java index e2af7dfb909..50d63ac540d 100644 --- a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java +++ b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java @@ -70,6 +70,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet { cards.add(new SetCardInfo("Didact Echo", 53, Rarity.COMMON, mage.cards.d.DidactEcho.class)); cards.add(new SetCardInfo("Digsite Conservator", 252, Rarity.UNCOMMON, mage.cards.d.DigsiteConservator.class)); cards.add(new SetCardInfo("Dinotomaton", 144, Rarity.COMMON, mage.cards.d.Dinotomaton.class)); + cards.add(new SetCardInfo("Disruptor Wanderglyph", 253, Rarity.COMMON, mage.cards.d.DisruptorWanderglyph.class)); cards.add(new SetCardInfo("Dowsing Device", 146, Rarity.UNCOMMON, mage.cards.d.DowsingDevice.class)); cards.add(new SetCardInfo("Dreadmaw's Ire", 147, Rarity.UNCOMMON, mage.cards.d.DreadmawsIre.class)); cards.add(new SetCardInfo("Dusk Rose Reliquary", 10, Rarity.UNCOMMON, mage.cards.d.DuskRoseReliquary.class));