From efc1ad056d72ae2cc1cca93028572c0170425663 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 4 Nov 2021 09:30:35 -0400 Subject: [PATCH] [VOW] Implemented Dawnhart Disciple --- .../src/mage/cards/d/DawnhartDisciple.java | 49 +++++++++++++++++++ .../src/mage/sets/InnistradCrimsonVow.java | 1 + 2 files changed, 50 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DawnhartDisciple.java diff --git a/Mage.Sets/src/mage/cards/d/DawnhartDisciple.java b/Mage.Sets/src/mage/cards/d/DawnhartDisciple.java new file mode 100644 index 0000000000..963698ca44 --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DawnhartDisciple.java @@ -0,0 +1,49 @@ +package mage.cards.d; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility; +import mage.abilities.effects.common.continuous.BoostSourceEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.predicate.mageobject.AnotherPredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DawnhartDisciple extends CardImpl { + + private static final FilterPermanent filter = new FilterPermanent(SubType.HUMAN, "another Human"); + + static { + filter.add(AnotherPredicate.instance); + } + + public DawnhartDisciple(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.WARLOCK); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Whenever another Human enters the battlefield under your control, Dawnhart Disciple gets +1/+1 until end of turn. + this.addAbility(new EntersBattlefieldControlledTriggeredAbility( + new BoostSourceEffect(1, 1, Duration.EndOfTurn), filter + )); + } + + private DawnhartDisciple(final DawnhartDisciple card) { + super(card); + } + + @Override + public DawnhartDisciple copy() { + return new DawnhartDisciple(this); + } +} diff --git a/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java b/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java index 5fc884aba0..f21d3f5357 100644 --- a/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java +++ b/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java @@ -54,6 +54,7 @@ public final class InnistradCrimsonVow extends ExpansionSet { cards.add(new SetCardInfo("Clever Distraction", 9, Rarity.UNCOMMON, mage.cards.c.CleverDistraction.class)); cards.add(new SetCardInfo("Cloaked Cadet", 192, Rarity.UNCOMMON, mage.cards.c.CloakedCadet.class)); cards.add(new SetCardInfo("Consuming Tide", 53, Rarity.RARE, mage.cards.c.ConsumingTide.class)); + cards.add(new SetCardInfo("Dawnhart Disciple", 196, Rarity.COMMON, mage.cards.d.DawnhartDisciple.class)); cards.add(new SetCardInfo("Dawnhart Geist", 8, Rarity.UNCOMMON, mage.cards.d.DawnhartGeist.class)); cards.add(new SetCardInfo("Daybreak Combatants", 153, Rarity.COMMON, mage.cards.d.DaybreakCombatants.class)); cards.add(new SetCardInfo("Deathcap Glade", 261, Rarity.RARE, mage.cards.d.DeathcapGlade.class));