From 755af0d54036c8e71ea15b09e2d0d50f55747597 Mon Sep 17 00:00:00 2001 From: Daniel Eberhard Date: Sun, 18 Dec 2022 01:16:05 +0100 Subject: [PATCH] Added card "Xyston Star Destroyer" and its abilities and effects --- .../src/mage/cards/x/XystonStarDestroyer.java | 41 ++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) 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); + } }