diff --git a/Mage.Sets/src/mage/cards/i/InspiredInventor.java b/Mage.Sets/src/mage/cards/i/InspiredInventor.java new file mode 100644 index 00000000000..b1384e086c1 --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/InspiredInventor.java @@ -0,0 +1,54 @@ +package mage.cards.i; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.Mode; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.counter.AddCountersTargetEffect; +import mage.abilities.effects.common.counter.GetEnergyCountersControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.game.permanent.token.ServoToken; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class InspiredInventor extends CardImpl { + + public InspiredInventor(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.ARTIFICER); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // When Inspired Inventor enters the battlefield, choose one -- + // * You get {E}{E}{E}. + Ability ability = new EntersBattlefieldTriggeredAbility(new GetEnergyCountersControllerEffect(3)); + + // * Put a +1/+1 counter on target creature. + ability.addMode(new Mode(new AddCountersTargetEffect(CounterType.P1P1.createInstance())) + .addTarget(new TargetCreaturePermanent())); + + // * Create a 1/1 colorless Servo artifact creature token. + ability.addMode(new Mode(new CreateTokenEffect(new ServoToken()))); + this.addAbility(ability); + } + + private InspiredInventor(final InspiredInventor card) { + super(card); + } + + @Override + public InspiredInventor copy() { + return new InspiredInventor(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons3.java b/Mage.Sets/src/mage/sets/ModernHorizons3.java index da143d87dc8..3f2c6618ea9 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons3.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons3.java @@ -119,6 +119,7 @@ public final class ModernHorizons3 extends ExpansionSet { cards.add(new SetCardInfo("Hydra Trainer", 159, Rarity.UNCOMMON, mage.cards.h.HydraTrainer.class)); cards.add(new SetCardInfo("Idol of False Gods", 210, Rarity.UNCOMMON, mage.cards.i.IdolOfFalseGods.class)); cards.add(new SetCardInfo("Infernal Captor", 125, Rarity.COMMON, mage.cards.i.InfernalCaptor.class)); + cards.add(new SetCardInfo("Inspired Inventor", 32, Rarity.COMMON, mage.cards.i.InspiredInventor.class)); cards.add(new SetCardInfo("Island", 305, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("It That Heralds the End", 9, Rarity.UNCOMMON, mage.cards.i.ItThatHeraldsTheEnd.class)); cards.add(new SetCardInfo("Izzet Generatorium", 191, Rarity.UNCOMMON, mage.cards.i.IzzetGeneratorium.class));