diff --git a/Mage.Sets/src/mage/cards/r/RavenousRobots.java b/Mage.Sets/src/mage/cards/r/RavenousRobots.java new file mode 100644 index 00000000000..0cc15b1056d --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RavenousRobots.java @@ -0,0 +1,56 @@ +package mage.cards.r; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.keyword.HasteAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.StaticFilters; +import mage.game.permanent.token.Robot11Token; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class RavenousRobots extends CardImpl { + + public RavenousRobots(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{1}{R}"); + + this.subtype.add(SubType.ROBOT); + this.power = new MageInt(2); + this.toughness = new MageInt(1); + + // Whenever you cast an artifact spell, create a 1/1 colorless Robot artifact creature token. + this.addAbility(new SpellCastControllerTriggeredAbility( + new CreateTokenEffect(new Robot11Token()), StaticFilters.FILTER_SPELL_AN_ARTIFACT, false + )); + + // {R}, {T}: Creature tokens you control gain haste until end of turn. + Ability ability = new SimpleActivatedAbility(new GainAbilityControlledEffect( + HasteAbility.getInstance(), Duration.EndOfTurn, + StaticFilters.FILTER_CREATURE_TOKENS + ), new ManaCostsImpl<>("{R}")); + ability.addCost(new TapSourceCost()); + this.addAbility(ability); + } + + private RavenousRobots(final RavenousRobots card) { + super(card); + } + + @Override + public RavenousRobots copy() { + return new RavenousRobots(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TeenageMutantNinjaTurtles.java b/Mage.Sets/src/mage/sets/TeenageMutantNinjaTurtles.java index cff93d59d35..5cfaacba5d7 100644 --- a/Mage.Sets/src/mage/sets/TeenageMutantNinjaTurtles.java +++ b/Mage.Sets/src/mage/sets/TeenageMutantNinjaTurtles.java @@ -55,6 +55,7 @@ public final class TeenageMutantNinjaTurtles extends ExpansionSet { cards.add(new SetCardInfo("Prehistoric Pet", 22, Rarity.RARE, mage.cards.p.PrehistoricPet.class)); cards.add(new SetCardInfo("Raphael's Technique", 105, Rarity.RARE, mage.cards.r.RaphaelsTechnique.class)); cards.add(new SetCardInfo("Raphael, the Nightwatcher", 103, Rarity.RARE, mage.cards.r.RaphaelTheNightwatcher.class)); + cards.add(new SetCardInfo("Ravenous Robots", 106, Rarity.RARE, mage.cards.r.RavenousRobots.class)); cards.add(new SetCardInfo("Sally Pride, Lioness Leader", 24, Rarity.RARE, mage.cards.s.SallyPrideLionessLeader.class)); cards.add(new SetCardInfo("Shark Shredder, Killer Clone", 73, Rarity.RARE, mage.cards.s.SharkShredderKillerClone.class)); cards.add(new SetCardInfo("Slash, Reptile Rampager", 108, Rarity.RARE, mage.cards.s.SlashReptileRampager.class)); diff --git a/Mage/src/main/java/mage/game/permanent/token/Robot11Token.java b/Mage/src/main/java/mage/game/permanent/token/Robot11Token.java new file mode 100644 index 00000000000..4067edb4a01 --- /dev/null +++ b/Mage/src/main/java/mage/game/permanent/token/Robot11Token.java @@ -0,0 +1,28 @@ +package mage.game.permanent.token; + +import mage.MageInt; +import mage.constants.CardType; +import mage.constants.SubType; + +/** + * @author TheElk801 + */ +public final class Robot11Token extends TokenImpl { + + public Robot11Token() { + super("Robot Token", "1/1 colorless Robot artifact creature token"); + cardType.add(CardType.ARTIFACT); + cardType.add(CardType.CREATURE); + subtype.add(SubType.ROBOT); + power = new MageInt(1); + toughness = new MageInt(1); + } + + private Robot11Token(final Robot11Token token) { + super(token); + } + + public Robot11Token copy() { + return new Robot11Token(this); + } +}