From bb827eafbf4b01e1f7c98ba9439fd6af790e4303 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 8 Jan 2021 08:49:08 -0500 Subject: [PATCH] [KHM] added Foretell placeholder ability --- Mage.Sets/src/mage/sets/Kaldheim.java | 13 ++++++++ .../abilities/keyword/ForetellAbility.java | 30 +++++++++++++++++++ Utils/keywords.txt | 1 + 3 files changed, 44 insertions(+) create mode 100644 Mage/src/main/java/mage/abilities/keyword/ForetellAbility.java diff --git a/Mage.Sets/src/mage/sets/Kaldheim.java b/Mage.Sets/src/mage/sets/Kaldheim.java index d5cae9ccde4..109e2f1a395 100644 --- a/Mage.Sets/src/mage/sets/Kaldheim.java +++ b/Mage.Sets/src/mage/sets/Kaldheim.java @@ -4,11 +4,22 @@ import mage.cards.ExpansionSet; import mage.constants.Rarity; import mage.constants.SetType; +import java.util.Arrays; +import java.util.List; + /** * @author TheElk801 */ public final class Kaldheim extends ExpansionSet { + private static final List unfinished = Arrays.asList( + "Alrund's Epiphany", + "Augury Raven", + "Behold the Multiverse", + "Ranar the Ever-Watchful", + "Sarulf's Packmate" + ); + private static final Kaldheim instance = new Kaldheim(); public static Kaldheim getInstance() { @@ -78,5 +89,7 @@ public final class Kaldheim extends ExpansionSet { cards.add(new SetCardInfo("Warchanter Skald", 381, Rarity.UNCOMMON, mage.cards.w.WarchanterSkald.class)); cards.add(new SetCardInfo("Woodland Chasm", 274, Rarity.COMMON, mage.cards.w.WoodlandChasm.class)); cards.add(new SetCardInfo("Youthful Valkyrie", 382, Rarity.UNCOMMON, mage.cards.y.YouthfulValkyrie.class)); + + cards.removeIf(setCardInfo -> unfinished.contains(setCardInfo.getName())); // remove when mechanic is fully implemented } } diff --git a/Mage/src/main/java/mage/abilities/keyword/ForetellAbility.java b/Mage/src/main/java/mage/abilities/keyword/ForetellAbility.java new file mode 100644 index 00000000000..e37d7b181b3 --- /dev/null +++ b/Mage/src/main/java/mage/abilities/keyword/ForetellAbility.java @@ -0,0 +1,30 @@ +package mage.abilities.keyword; + +import mage.abilities.SpecialAction; +import mage.cards.Card; +import mage.constants.Zone; + +/** + * @author TheElk801 + */ +public class ForetellAbility extends SpecialAction { + + // TODO: Implement this + public ForetellAbility(Card card, String manaCost) { + super(Zone.HAND); + } + + private ForetellAbility(ForetellAbility ability) { + super(ability); + } + + @Override + public String getRule() { + return ""; + } + + @Override + public ForetellAbility copy() { + return new ForetellAbility(this); + } +} diff --git a/Utils/keywords.txt b/Utils/keywords.txt index 83e571e07d3..3b75c7c86b5 100644 --- a/Utils/keywords.txt +++ b/Utils/keywords.txt @@ -44,6 +44,7 @@ Flashback|cost| Flying|instance| Forestcycling|cost| Forestwalk|new| +Foretell|card, manaString| Haste|instance| Hexproof|instance| Improvise|new|