diff --git a/Mage.Sets/src/mage/cards/i/InfernalIdol.java b/Mage.Sets/src/mage/cards/i/InfernalIdol.java new file mode 100644 index 0000000000..52696eab5d --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/InfernalIdol.java @@ -0,0 +1,46 @@ +package mage.cards.i; + +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.LoseLifeSourceControllerEffect; +import mage.abilities.mana.BlackManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class InfernalIdol extends CardImpl { + + public InfernalIdol(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}"); + + // {T}: Add {B}. + this.addAbility(new BlackManaAbility()); + + // {1}{B}{B}, {T}, Sacrifice Infernal Idol: You draw two cards and you lose 2 life. + Ability ability = new SimpleActivatedAbility( + new DrawCardSourceControllerEffect(2, "you"), new ManaCostsImpl<>("{1}{B}{B}") + ); + ability.addCost(new TapSourceCost()); + ability.addCost(new SacrificeSourceCost()); + ability.addEffect(new LoseLifeSourceControllerEffect(2).concatBy("and")); + this.addAbility(ability); + } + + private InfernalIdol(final InfernalIdol card) { + super(card); + } + + @Override + public InfernalIdol copy() { + return new InfernalIdol(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Jumpstart2022.java b/Mage.Sets/src/mage/sets/Jumpstart2022.java index dc76666948..104428db4c 100644 --- a/Mage.Sets/src/mage/sets/Jumpstart2022.java +++ b/Mage.Sets/src/mage/sets/Jumpstart2022.java @@ -41,6 +41,7 @@ public final class Jumpstart2022 extends ExpansionSet { cards.add(new SetCardInfo("Felidar Retreat", 184, Rarity.RARE, mage.cards.f.FelidarRetreat.class)); cards.add(new SetCardInfo("Festering Evil", 119, Rarity.UNCOMMON, mage.cards.f.FesteringEvil.class)); cards.add(new SetCardInfo("Flicker of Fate", 56, Rarity.COMMON, mage.cards.f.FlickerOfFate.class)); + cards.add(new SetCardInfo("Infernal Idol", 49, Rarity.COMMON, mage.cards.i.InfernalIdol.class)); cards.add(new SetCardInfo("Isu the Abominable", 12, Rarity.MYTHIC, mage.cards.i.IsuTheAbominable.class)); cards.add(new SetCardInfo("Karn Liberated", 97, Rarity.MYTHIC, mage.cards.k.KarnLiberated.class)); cards.add(new SetCardInfo("Kibo, Uktabi Prince", 40, Rarity.MYTHIC, mage.cards.k.KiboUktabiPrince.class));