mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
[AFR] Implemented Contact Other Plane
This commit is contained in:
parent
ed1c3ef7c6
commit
05f19a56df
2 changed files with 49 additions and 0 deletions
48
Mage.Sets/src/mage/cards/c/ContactOtherPlane.java
Normal file
48
Mage.Sets/src/mage/cards/c/ContactOtherPlane.java
Normal file
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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("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("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("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("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("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));
|
cards.add(new SetCardInfo("Devoted Paladin", 11, Rarity.COMMON, mage.cards.d.DevotedPaladin.class));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue