From d0e4ecaba1de1eb283d5e300cae9027845553c8d Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 17 Dec 2018 22:36:05 -0500 Subject: [PATCH] Implemented The Haunt of Hightower --- .../src/mage/cards/t/TheHauntOfHightower.java | 57 +++++++++++++++++++ .../src/mage/sets/RavnicaAllegiance.java | 1 + 2 files changed, 58 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TheHauntOfHightower.java diff --git a/Mage.Sets/src/mage/cards/t/TheHauntOfHightower.java b/Mage.Sets/src/mage/cards/t/TheHauntOfHightower.java new file mode 100644 index 0000000000..d759f6d49c --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TheHauntOfHightower.java @@ -0,0 +1,57 @@ +package mage.cards.t; + +import mage.MageInt; +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.common.PutCardIntoGraveFromAnywhereAllTriggeredAbility; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.effects.common.discard.DiscardTargetEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.abilities.keyword.LifelinkAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.*; +import mage.counters.CounterType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TheHauntOfHightower extends CardImpl { + + public TheHauntOfHightower(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}{B}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.VAMPIRE); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Lifelink + this.addAbility(LifelinkAbility.getInstance()); + + // Whenever The Haunt of Hightower attacks, defending player discards a card. + this.addAbility(new AttacksTriggeredAbility( + new DiscardTargetEffect(1), false, + "Whenever {this} attacks, defending player discards a card", SetTargetPointer.PLAYER + )); + + // Whenever a card is put into an opponent's graveyard from anywhere, put a +1/+1 counter on The Haunt of Hightower. + this.addAbility(new PutCardIntoGraveFromAnywhereAllTriggeredAbility( + new AddCountersSourceEffect(CounterType.P1P1.createInstance()), + false, TargetController.OPPONENT + )); + } + + public TheHauntOfHightower(final TheHauntOfHightower card) { + super(card); + } + + @Override + public TheHauntOfHightower copy() { + return new TheHauntOfHightower(this); + } +} diff --git a/Mage.Sets/src/mage/sets/RavnicaAllegiance.java b/Mage.Sets/src/mage/sets/RavnicaAllegiance.java index cbd956a096..9c183b651a 100644 --- a/Mage.Sets/src/mage/sets/RavnicaAllegiance.java +++ b/Mage.Sets/src/mage/sets/RavnicaAllegiance.java @@ -34,6 +34,7 @@ public final class RavnicaAllegiance extends ExpansionSet { cards.add(new SetCardInfo("Growth Spiral", 178, Rarity.COMMON, mage.cards.g.GrowthSpiral.class)); cards.add(new SetCardInfo("Mortify", 192, Rarity.UNCOMMON, mage.cards.m.Mortify.class)); + cards.add(new SetCardInfo("The Haunt of Hightower", 273, Rarity.MYTHIC, mage.cards.t.TheHauntOfHightower.class)); } @Override