diff --git a/Mage.Sets/src/mage/cards/p/PinnacleEmissary.java b/Mage.Sets/src/mage/cards/p/PinnacleEmissary.java new file mode 100644 index 00000000000..8c356c63b6d --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/PinnacleEmissary.java @@ -0,0 +1,45 @@ +package mage.cards.p; + +import mage.MageInt; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.keyword.WarpAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.StaticFilters; +import mage.game.permanent.token.DroneToken2; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class PinnacleEmissary extends CardImpl { + + public PinnacleEmissary(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{1}{U}{R}"); + + this.subtype.add(SubType.ROBOT); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Whenever you cast an artifact spell, create a 1/1 colorless Drone artifact creature token with flying and "This token can block only creatures with flying." + this.addAbility(new SpellCastControllerTriggeredAbility( + new CreateTokenEffect(new DroneToken2()), StaticFilters.FILTER_SPELL_AN_ARTIFACT, false + )); + + // Warp {U/R} + this.addAbility(new WarpAbility(this, "{U/R}")); + } + + private PinnacleEmissary(final PinnacleEmissary card) { + super(card); + } + + @Override + public PinnacleEmissary copy() { + return new PinnacleEmissary(this); + } +} diff --git a/Mage.Sets/src/mage/sets/EdgeOfEternities.java b/Mage.Sets/src/mage/sets/EdgeOfEternities.java index a914e43df12..c17023b2690 100644 --- a/Mage.Sets/src/mage/sets/EdgeOfEternities.java +++ b/Mage.Sets/src/mage/sets/EdgeOfEternities.java @@ -162,6 +162,7 @@ public final class EdgeOfEternities extends ExpansionSet { cards.add(new SetCardInfo("Ouroboroid", 345, Rarity.MYTHIC, mage.cards.o.Ouroboroid.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Pain for All", 151, Rarity.RARE, mage.cards.p.PainForAll.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Pain for All", 337, Rarity.RARE, mage.cards.p.PainForAll.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Pinnacle Emissary", 223, Rarity.RARE, mage.cards.p.PinnacleEmissary.class)); cards.add(new SetCardInfo("Plains", 262, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Plains", 267, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Plains", 268, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS)); diff --git a/Mage/src/main/java/mage/game/permanent/token/DroneToken2.java b/Mage/src/main/java/mage/game/permanent/token/DroneToken2.java new file mode 100644 index 00000000000..99afb0362fd --- /dev/null +++ b/Mage/src/main/java/mage/game/permanent/token/DroneToken2.java @@ -0,0 +1,34 @@ +package mage.game.permanent.token; + +import mage.MageInt; +import mage.abilities.common.CanBlockOnlyFlyingAbility; +import mage.abilities.keyword.FlyingAbility; +import mage.constants.CardType; +import mage.constants.SubType; + +/** + * @author TheElk801 + */ +public final class DroneToken2 extends TokenImpl { + + public DroneToken2() { + super("Drone Token", "1/1 colorless Drone artifact creature token with flying and \"This token can block only creatures with flying.\""); + cardType.add(CardType.ARTIFACT); + cardType.add(CardType.CREATURE); + subtype.add(SubType.DRONE); + power = new MageInt(1); + toughness = new MageInt(1); + + addAbility(FlyingAbility.getInstance()); + addAbility(new CanBlockOnlyFlyingAbility()); + } + + private DroneToken2(final DroneToken2 token) { + super(token); + } + + @Override + public DroneToken2 copy() { + return new DroneToken2(this); + } +}