diff --git a/Mage.Sets/src/mage/cards/i/ImpossibleInferno.java b/Mage.Sets/src/mage/cards/i/ImpossibleInferno.java new file mode 100644 index 00000000000..e4bc140c07a --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/ImpossibleInferno.java @@ -0,0 +1,48 @@ +package mage.cards.i; + +import mage.abilities.condition.common.DeliriumCondition; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.ExileTopXMayPlayUntilEffect; +import mage.abilities.hint.common.CardTypesInGraveyardHint; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.AbilityWord; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ImpossibleInferno extends CardImpl { + + public ImpossibleInferno(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{4}{R}"); + + // Impossible Inferno deals 6 damage to target creature. + this.getSpellAbility().addEffect(new DamageTargetEffect(6)); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + + // Delirium -- If there are four or more card types among cards in your graveyard, exile the top card of your library. You may play it until the end of your next turn. + this.getSpellAbility().addEffect(new ConditionalOneShotEffect( + new ExileTopXMayPlayUntilEffect(1, Duration.UntilEndOfYourNextTurn), + DeliriumCondition.instance, "
" + AbilityWord.DELIRIUM.formatWord() + "If there are " + + "four or more card types among cards in your graveyard, exile the top card of your library. " + + "You may play it until the end of your next turn" + )); + this.getSpellAbility().setAbilityWord(AbilityWord.DELIRIUM); + this.getSpellAbility().addHint(CardTypesInGraveyardHint.YOU); + } + + private ImpossibleInferno(final ImpossibleInferno card) { + super(card); + } + + @Override + public ImpossibleInferno copy() { + return new ImpossibleInferno(this); + } +} diff --git a/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java b/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java index 659ac4a53cb..4805a8ca0e4 100644 --- a/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java +++ b/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java @@ -80,6 +80,7 @@ public final class DuskmournHouseOfHorror extends ExpansionSet { cards.add(new SetCardInfo("Hand That Feeds", 139, Rarity.COMMON, mage.cards.h.HandThatFeeds.class)); cards.add(new SetCardInfo("House Cartographer", 185, Rarity.UNCOMMON, mage.cards.h.HouseCartographer.class)); cards.add(new SetCardInfo("Hushwood Verge", 261, Rarity.RARE, mage.cards.h.HushwoodVerge.class)); + cards.add(new SetCardInfo("Impossible Inferno", 140, Rarity.COMMON, mage.cards.i.ImpossibleInferno.class)); cards.add(new SetCardInfo("Infernal Phantom", 141, Rarity.UNCOMMON, mage.cards.i.InfernalPhantom.class)); cards.add(new SetCardInfo("Innocuous Rat", 103, Rarity.COMMON, mage.cards.i.InnocuousRat.class)); cards.add(new SetCardInfo("Insidious Fungus", 186, Rarity.UNCOMMON, mage.cards.i.InsidiousFungus.class));