diff --git a/Mage.Sets/src/mage/cards/x/XystonStarDestroyer.java b/Mage.Sets/src/mage/cards/x/XystonStarDestroyer.java index 68a9c4d834..39c6ec290a 100644 --- a/Mage.Sets/src/mage/cards/x/XystonStarDestroyer.java +++ b/Mage.Sets/src/mage/cards/x/XystonStarDestroyer.java @@ -1,4 +1,43 @@ package mage.cards.x; -public class XystonStarDestroyer { +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.DestroyTargetEffect; +import mage.abilities.keyword.SpaceflightAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author Merlingilb + */ +public class XystonStarDestroyer extends CardImpl { + public XystonStarDestroyer(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{6}{B}{B}"); + this.subtype.add(SubType.STARSHIP); + this.power = new MageInt(9); + this.toughness = new MageInt(9); + + //Spaceflight + this.addAbility(SpaceflightAbility.getInstance()); + + //When Xyston Star Destroyer enters the battlefield, destroy target creature. + Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect()); + ability.addTarget(new TargetCreaturePermanent()); + this.addAbility(ability); + } + + public XystonStarDestroyer(final XystonStarDestroyer card) { + super(card); + } + + @Override + public XystonStarDestroyer copy() { + return new XystonStarDestroyer(this); + } }