From 8c890a9ea8a79e6ed5bd7e3e55c2062b00c97f54 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 31 May 2022 18:45:08 -0400 Subject: [PATCH] [CLB] Implemented Astral Dragon --- Mage.Sets/src/mage/cards/a/AstralDragon.java | 57 +++++++++++++++++++ .../CommanderLegendsBattleForBaldursGate.java | 1 + 2 files changed, 58 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AstralDragon.java diff --git a/Mage.Sets/src/mage/cards/a/AstralDragon.java b/Mage.Sets/src/mage/cards/a/AstralDragon.java new file mode 100644 index 00000000000..2565edc92b3 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AstralDragon.java @@ -0,0 +1,57 @@ +package mage.cards.a; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.CreateTokenCopyTargetEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.predicate.Predicates; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class AstralDragon extends CardImpl { + + private static final FilterPermanent filter = new FilterPermanent("noncreature permanent"); + + static { + filter.add(Predicates.not(CardType.CREATURE.getPredicate())); + } + + public AstralDragon(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{6}{U}{U}"); + + this.subtype.add(SubType.DRAGON); + this.power = new MageInt(4); + this.toughness = new MageInt(4); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Project Image — When Astral Dragon enters the battlefield, create two tokens that are copies of target noncreature permanent, except they're 3/3 Dragon creatures in addition to their other types, and they have flying. + Ability ability = new EntersBattlefieldTriggeredAbility(new CreateTokenCopyTargetEffect( + null, CardType.CREATURE, false, 2, false, + false, null, 3, 3, true + ).setText("create two tokens that are copies of target noncreature permanent, " + + "except they're 3/3 Dragon creatures in addition to their other types, and they have flying")); + ability.addTarget(new TargetPermanent(filter)); + this.addAbility(ability.withFlavorWord("Project Image")); + } + + private AstralDragon(final AstralDragon card) { + super(card); + } + + @Override + public AstralDragon copy() { + return new AstralDragon(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java b/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java index 356b61326a7..27955f0c64f 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java +++ b/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java @@ -43,6 +43,7 @@ public final class CommanderLegendsBattleForBaldursGate extends ExpansionSet { cards.add(new SetCardInfo("Astarion's Thirst", 114, Rarity.RARE, mage.cards.a.AstarionsThirst.class)); cards.add(new SetCardInfo("Astarion, the Decadent", 265, Rarity.RARE, mage.cards.a.AstarionTheDecadent.class)); cards.add(new SetCardInfo("Astral Confrontation", 6, Rarity.COMMON, mage.cards.a.AstralConfrontation.class)); + cards.add(new SetCardInfo("Astral Dragon", 664, Rarity.RARE, mage.cards.a.AstralDragon.class)); cards.add(new SetCardInfo("Atrocious Experiment", 115, Rarity.COMMON, mage.cards.a.AtrociousExperiment.class)); cards.add(new SetCardInfo("Avenging Hunter", 215, Rarity.COMMON, mage.cards.a.AvengingHunter.class)); cards.add(new SetCardInfo("Baba Lysaga, Night Witch", 266, Rarity.RARE, mage.cards.b.BabaLysagaNightWitch.class));