diff --git a/Mage.Sets/src/mage/cards/c/ContactOtherPlane.java b/Mage.Sets/src/mage/cards/c/ContactOtherPlane.java new file mode 100644 index 00000000000..3a8ceee6d4a --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/ContactOtherPlane.java @@ -0,0 +1,48 @@ +package mage.cards.c; + +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.RollDieWithResultTableEffect; +import mage.abilities.effects.keyword.ScryEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ContactOtherPlane extends CardImpl { + + public ContactOtherPlane(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{U}"); + + // Roll a d20. + RollDieWithResultTableEffect effect = new RollDieWithResultTableEffect(); + this.getSpellAbility().addEffect(effect); + + // 1-9 | Draw two cards. + effect.addTableEntry(1, 9, new DrawCardSourceControllerEffect(2)); + + // 10-19 | Scry 2, then draw two cards. + effect.addTableEntry( + 10, 19, new ScryEffect(2, false), + new DrawCardSourceControllerEffect(2).concatBy(", then") + ); + + // 20 | Scry 3, then draw three cards. + effect.addTableEntry( + 20, 20, new ScryEffect(3, false), + new DrawCardSourceControllerEffect(2).concatBy(", then") + ); + } + + private ContactOtherPlane(final ContactOtherPlane card) { + super(card); + } + + @Override + public ContactOtherPlane copy() { + return new ContactOtherPlane(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java index 40f56b27080..d538b85f755 100644 --- a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java +++ b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java @@ -43,6 +43,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet { cards.add(new SetCardInfo("Clattering Skeletons", 93, Rarity.COMMON, mage.cards.c.ClatteringSkeletons.class)); cards.add(new SetCardInfo("Clever Conjurer", 51, Rarity.COMMON, mage.cards.c.CleverConjurer.class)); cards.add(new SetCardInfo("Cloister Gargoyle", 7, Rarity.UNCOMMON, mage.cards.c.CloisterGargoyle.class)); + cards.add(new SetCardInfo("Contact Other Plane", 52, Rarity.COMMON, mage.cards.c.ContactOtherPlane.class)); cards.add(new SetCardInfo("Dawnbringer Cleric", 9, Rarity.COMMON, mage.cards.d.DawnbringerCleric.class)); cards.add(new SetCardInfo("Den of the Bugbear", 254, Rarity.RARE, mage.cards.d.DenOfTheBugbear.class)); cards.add(new SetCardInfo("Devoted Paladin", 11, Rarity.COMMON, mage.cards.d.DevotedPaladin.class));