From 351e8a12b52c5ca4185348a4360e03b40de52d8c Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 19 Sep 2019 08:17:12 -0400 Subject: [PATCH] Implemented Improbable Alliance --- .../src/mage/cards/i/ImprobableAlliance.java | 40 +++++++++++++++++++ Mage.Sets/src/mage/sets/ThroneOfEldraine.java | 1 + 2 files changed, 41 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/i/ImprobableAlliance.java diff --git a/Mage.Sets/src/mage/cards/i/ImprobableAlliance.java b/Mage.Sets/src/mage/cards/i/ImprobableAlliance.java new file mode 100644 index 0000000000..85c917a197 --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/ImprobableAlliance.java @@ -0,0 +1,40 @@ +package mage.cards.i; + +import mage.abilities.common.DrawSecondCardTriggeredAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.DrawDiscardControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.FaerieToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ImprobableAlliance extends CardImpl { + + public ImprobableAlliance(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{U}{R}"); + + // Whenever you draw your second card each turn, create a 1/1 blue Faerie creature token with flying. + this.addAbility(new DrawSecondCardTriggeredAbility(new CreateTokenEffect(new FaerieToken()), false)); + + // {4}{U}{R}: Draw a card, then discard a card. + this.addAbility(new SimpleActivatedAbility( + new DrawDiscardControllerEffect(1, 1), new ManaCostsImpl("{4}{U}{R}") + )); + } + + private ImprobableAlliance(final ImprobableAlliance card) { + super(card); + } + + @Override + public ImprobableAlliance copy() { + return new ImprobableAlliance(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ThroneOfEldraine.java b/Mage.Sets/src/mage/sets/ThroneOfEldraine.java index c6e5bce55a..415bfa396b 100644 --- a/Mage.Sets/src/mage/sets/ThroneOfEldraine.java +++ b/Mage.Sets/src/mage/sets/ThroneOfEldraine.java @@ -121,6 +121,7 @@ public final class ThroneOfEldraine extends ExpansionSet { cards.add(new SetCardInfo("Heraldic Banner", 222, Rarity.UNCOMMON, mage.cards.h.HeraldicBanner.class)); cards.add(new SetCardInfo("Hypnotic Sprite", 49, Rarity.UNCOMMON, mage.cards.h.HypnoticSprite.class)); cards.add(new SetCardInfo("Idyllic Grange", 246, Rarity.COMMON, mage.cards.i.IdyllicGrange.class)); + cards.add(new SetCardInfo("Improbable Alliance", 193, Rarity.UNCOMMON, mage.cards.i.ImprobableAlliance.class)); cards.add(new SetCardInfo("Inquisitive Puppet", 223, Rarity.UNCOMMON, mage.cards.i.InquisitivePuppet.class)); cards.add(new SetCardInfo("Insatiable Appetite", 162, Rarity.COMMON, mage.cards.i.InsatiableAppetite.class)); cards.add(new SetCardInfo("Inspiring Veteran", 194, Rarity.UNCOMMON, mage.cards.i.InspiringVeteran.class));