Implemented Improbable Alliance

This commit is contained in:
Evan Kranzler 2019-09-19 08:17:12 -04:00
parent a645932c4f
commit 351e8a12b5
2 changed files with 41 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));