From 4ee219e787d48865a9203f7f48a9e05728e70d52 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 10 Sep 2021 09:40:50 -0400 Subject: [PATCH] [MID] Implemented Baithook Angler / Hook-Haunt Drifter --- .../src/mage/cards/b/BaithookAngler.java | 40 +++++++++++++++++ .../src/mage/cards/h/HookHauntDrifter.java | 44 +++++++++++++++++++ .../src/mage/sets/InnistradMidnightHunt.java | 2 + .../abilities/keyword/DisturbAbility.java | 4 ++ 4 files changed, 90 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/BaithookAngler.java create mode 100644 Mage.Sets/src/mage/cards/h/HookHauntDrifter.java diff --git a/Mage.Sets/src/mage/cards/b/BaithookAngler.java b/Mage.Sets/src/mage/cards/b/BaithookAngler.java new file mode 100644 index 00000000000..2549bd9dd13 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BaithookAngler.java @@ -0,0 +1,40 @@ +package mage.cards.b; + +import mage.MageInt; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.keyword.DisturbAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BaithookAngler extends CardImpl { + + public BaithookAngler(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.PEASANT); + this.power = new MageInt(2); + this.toughness = new MageInt(1); + this.transformable = true; + this.secondSideCardClazz = mage.cards.h.HookHauntDrifter.class; + + // Disturb {1}{U} + this.addAbility(new DisturbAbility(new ManaCostsImpl<>("{1}{U}"))); + } + + private BaithookAngler(final BaithookAngler card) { + super(card); + } + + @Override + public BaithookAngler copy() { + return new BaithookAngler(this); + } +} diff --git a/Mage.Sets/src/mage/cards/h/HookHauntDrifter.java b/Mage.Sets/src/mage/cards/h/HookHauntDrifter.java new file mode 100644 index 00000000000..bd3eaf73dd4 --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HookHauntDrifter.java @@ -0,0 +1,44 @@ +package mage.cards.h; + +import mage.MageInt; +import mage.abilities.common.PutIntoGraveFromAnywhereSourceAbility; +import mage.abilities.effects.common.ExileSourceEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HookHauntDrifter extends CardImpl { + + public HookHauntDrifter(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, ""); + + this.subtype.add(SubType.SPIRIT); + this.power = new MageInt(1); + this.toughness = new MageInt(2); + this.color.setBlue(true); + this.transformable = true; + this.nightCard = true; + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // If Hook-Haunt Drifter would be put into a graveyard from anywhere, exile it instead. + this.addAbility(new PutIntoGraveFromAnywhereSourceAbility(new ExileSourceEffect().setText("exile it instead"))); + } + + private HookHauntDrifter(final HookHauntDrifter card) { + super(card); + } + + @Override + public HookHauntDrifter copy() { + return new HookHauntDrifter(this); + } +} diff --git a/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java b/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java index f0fca415d4b..6e84c05b77b 100644 --- a/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java +++ b/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java @@ -35,6 +35,7 @@ public final class InnistradMidnightHunt extends ExpansionSet { cards.add(new SetCardInfo("Arcane Infusion", 210, Rarity.UNCOMMON, mage.cards.a.ArcaneInfusion.class)); cards.add(new SetCardInfo("Arrogant Outlaw", 84, Rarity.COMMON, mage.cards.a.ArrogantOutlaw.class)); cards.add(new SetCardInfo("Augur of Autumn", 168, Rarity.RARE, mage.cards.a.AugurOfAutumn.class)); + cards.add(new SetCardInfo("Baithook Angler", 42, Rarity.COMMON, mage.cards.b.BaithookAngler.class)); cards.add(new SetCardInfo("Bird Admirer", 169, Rarity.COMMON, mage.cards.b.BirdAdmirer.class)); cards.add(new SetCardInfo("Bladebrand", 87, Rarity.COMMON, mage.cards.b.Bladebrand.class)); cards.add(new SetCardInfo("Bladestitched Skaab", 212, Rarity.UNCOMMON, mage.cards.b.BladestitchedSkaab.class)); @@ -99,6 +100,7 @@ public final class InnistradMidnightHunt extends ExpansionSet { cards.add(new SetCardInfo("Hedgewitch's Mask", 23, Rarity.COMMON, mage.cards.h.HedgewitchsMask.class)); cards.add(new SetCardInfo("Heirloom Mirror", 105, Rarity.UNCOMMON, mage.cards.h.HeirloomMirror.class)); cards.add(new SetCardInfo("Hobbling Zombie", 106, Rarity.COMMON, mage.cards.h.HobblingZombie.class)); + cards.add(new SetCardInfo("Hook-Haunt Drifter", 42, Rarity.COMMON, mage.cards.h.HookHauntDrifter.class)); cards.add(new SetCardInfo("Hound Tamer", 187, Rarity.UNCOMMON, mage.cards.h.HoundTamer.class)); cards.add(new SetCardInfo("Howl of the Hunt", 188, Rarity.COMMON, mage.cards.h.HowlOfTheHunt.class)); cards.add(new SetCardInfo("Hungry for More", 228, Rarity.UNCOMMON, mage.cards.h.HungryForMore.class)); diff --git a/Mage/src/main/java/mage/abilities/keyword/DisturbAbility.java b/Mage/src/main/java/mage/abilities/keyword/DisturbAbility.java index 302e364730f..be956cf33d7 100644 --- a/Mage/src/main/java/mage/abilities/keyword/DisturbAbility.java +++ b/Mage/src/main/java/mage/abilities/keyword/DisturbAbility.java @@ -12,6 +12,10 @@ import mage.constants.Zone; */ public class DisturbAbility extends SpellAbility { + public DisturbAbility(Cost cost) { + this(cost, TimingRule.SORCERY); + } + public DisturbAbility(Cost cost, TimingRule timingRule) { super(null, "", Zone.GRAVEYARD, SpellAbilityType.BASE_ALTERNATE); }