Implemented Igneous Elemental

This commit is contained in:
Evan Kranzler 2019-06-01 18:34:47 -04:00
parent 58be739e0c
commit e5b735f404
2 changed files with 58 additions and 0 deletions

View file

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

View file

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