From 6c304060bd58b01608c076b5cb1dc54d1d7a7e83 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 2 Sep 2020 16:03:08 -0400 Subject: [PATCH] [ZNR] Implemented Demon's Disciple --- .../src/mage/cards/d/DemonsDisciple.java | 50 +++++++++++++++++++ Mage.Sets/src/mage/sets/ZendikarRising.java | 1 + 2 files changed, 51 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DemonsDisciple.java diff --git a/Mage.Sets/src/mage/cards/d/DemonsDisciple.java b/Mage.Sets/src/mage/cards/d/DemonsDisciple.java new file mode 100644 index 0000000000..dad1d6a0b2 --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DemonsDisciple.java @@ -0,0 +1,50 @@ +package mage.cards.d; + +import java.util.UUID; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.SacrificeAllEffect; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.common.FilterControlledPermanent; +import mage.filter.predicate.Predicates; + +/** + * @author TheElk801 + */ +public final class DemonsDisciple extends CardImpl { + + private static final FilterControlledPermanent filter + = new FilterControlledPermanent("a creature or planeswalker"); + + static { + filter.add(Predicates.or( + CardType.CREATURE.getPredicate(), + CardType.PLANESWALKER.getPredicate() + )); + } + + public DemonsDisciple(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.CLERIC); + this.power = new MageInt(3); + this.toughness = new MageInt(1); + + // When Demon's Disciple enters the battlefield, each player sacrifices a creature or planeswalker. + this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeAllEffect(1, filter))); + } + + private DemonsDisciple(final DemonsDisciple card) { + super(card); + } + + @Override + public DemonsDisciple copy() { + return new DemonsDisciple(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ZendikarRising.java b/Mage.Sets/src/mage/sets/ZendikarRising.java index 7d19ddb382..d58ebfe77f 100644 --- a/Mage.Sets/src/mage/sets/ZendikarRising.java +++ b/Mage.Sets/src/mage/sets/ZendikarRising.java @@ -80,6 +80,7 @@ public final class ZendikarRising extends ExpansionSet { cards.add(new SetCardInfo("Clearwater Pathway", 260, Rarity.RARE, mage.cards.c.ClearwaterPathway.class)); cards.add(new SetCardInfo("Cliffhaven Sell-Sword", 8, Rarity.COMMON, mage.cards.c.CliffhavenSellSword.class)); cards.add(new SetCardInfo("Cragcrown Pathway", 261, Rarity.RARE, mage.cards.c.CragcrownPathway.class)); + cards.add(new SetCardInfo("Demon's Disciple", 97, Rarity.UNCOMMON, mage.cards.d.DemonsDisciple.class)); cards.add(new SetCardInfo("Emeria Captain", 11, Rarity.UNCOMMON, mage.cards.e.EmeriaCaptain.class)); cards.add(new SetCardInfo("Farsight Adept", 14, Rarity.COMMON, mage.cards.f.FarsightAdept.class)); cards.add(new SetCardInfo("Forest", 278, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS));