diff --git a/Mage.Sets/src/mage/cards/i/IgneousElemental.java b/Mage.Sets/src/mage/cards/i/IgneousElemental.java new file mode 100644 index 0000000000..9357464f4e --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/IgneousElemental.java @@ -0,0 +1,57 @@ +package mage.cards.i; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.common.CardsInControllerGraveCondition; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.cost.SpellCostReductionSourceEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.Zone; +import mage.filter.StaticFilters; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class IgneousElemental extends CardImpl { + + public IgneousElemental(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{R}{R}"); + + this.subtype.add(SubType.ELEMENTAL); + this.power = new MageInt(4); + this.toughness = new MageInt(3); + + // This spell costs {2} less to cast if there is a land card in your graveyard. + Ability ability = new SimpleStaticAbility(Zone.STACK, new SpellCostReductionSourceEffect( + 1, new CardsInControllerGraveCondition(1, StaticFilters.FILTER_CARD_LAND) + ).setText("This spell costs {2} less to cast if there is a land card in your graveyard.")); + ability.setRuleAtTheTop(true); + this.addAbility(ability); + + // When Igneous Elemental enters the battlefield, you may have it deal 2 damage to target creature. + ability = new EntersBattlefieldTriggeredAbility( + new DamageTargetEffect(2) + .setText("have it deal 2 damage to target creature"), + true + ); + ability.addTarget(new TargetCreaturePermanent()); + this.addAbility(ability); + } + + private IgneousElemental(final IgneousElemental card) { + super(card); + } + + @Override + public IgneousElemental copy() { + return new IgneousElemental(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index 1b414b65dd..19b0eae36a 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -118,6 +118,7 @@ public final class ModernHorizons extends ExpansionSet { cards.add(new SetCardInfo("Ice-Fang Coatl", 203, Rarity.RARE, mage.cards.i.IceFangCoatl.class)); cards.add(new SetCardInfo("Iceberg Cancrix", 54, Rarity.COMMON, mage.cards.i.IcebergCancrix.class)); cards.add(new SetCardInfo("Icehide Golem", 224, Rarity.UNCOMMON, mage.cards.i.IcehideGolem.class)); + cards.add(new SetCardInfo("Igneous Elemental", 133, Rarity.COMMON, mage.cards.i.IgneousElemental.class)); cards.add(new SetCardInfo("Impostor of the Sixth Pride", 14, Rarity.COMMON, mage.cards.i.ImpostorOfTheSixthPride.class)); cards.add(new SetCardInfo("Ingenious Infiltrator", 204, Rarity.UNCOMMON, mage.cards.i.IngeniousInfiltrator.class)); cards.add(new SetCardInfo("Irregular Cohort", 15, Rarity.COMMON, mage.cards.i.IrregularCohort.class));