From 85f6e26c0e28787ba0c869587baa2245c30bf261 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 1 Nov 2022 09:53:48 -0400 Subject: [PATCH] [BRO] Implement Fallaji Dragon Engine --- .../src/mage/cards/f/FallajiDragonEngine.java | 49 +++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 50 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/f/FallajiDragonEngine.java diff --git a/Mage.Sets/src/mage/cards/f/FallajiDragonEngine.java b/Mage.Sets/src/mage/cards/f/FallajiDragonEngine.java new file mode 100644 index 00000000000..4aeb4f7afa1 --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/FallajiDragonEngine.java @@ -0,0 +1,49 @@ +package mage.cards.f; + +import mage.MageInt; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.common.continuous.BoostSourceEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.abilities.keyword.PrototypeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class FallajiDragonEngine extends CardImpl { + + public FallajiDragonEngine(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{8}"); + + this.subtype.add(SubType.DRAGON); + this.power = new MageInt(5); + this.toughness = new MageInt(5); + + // Prototype {2}{R} -- 1/3 + this.addAbility(new PrototypeAbility(this, "{2}{R}", 1, 3)); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // {2}: Fallaji Dragon Engine gets +1/+0 until end of turn. + this.addAbility(new SimpleActivatedAbility( + new BoostSourceEffect(1, 0, Duration.EndOfTurn), new GenericManaCost(2) + )); + } + + private FallajiDragonEngine(final FallajiDragonEngine card) { + super(card); + } + + @Override + public FallajiDragonEngine copy() { + return new FallajiDragonEngine(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index c2c50bc5c9e..b4244cd9288 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -41,6 +41,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Disfigure", 91, Rarity.COMMON, mage.cards.d.Disfigure.class)); cards.add(new SetCardInfo("Drafna, Founder of Lat-Nam", 47, Rarity.RARE, mage.cards.d.DrafnaFounderOfLatNam.class)); cards.add(new SetCardInfo("Fade from History", 177, Rarity.RARE, mage.cards.f.FadeFromHistory.class)); + cards.add(new SetCardInfo("Fallaji Dragon Engine", 159, Rarity.UNCOMMON, mage.cards.f.FallajiDragonEngine.class)); cards.add(new SetCardInfo("Feldon, Ronom Excavator", 135, Rarity.RARE, mage.cards.f.FeldonRonomExcavator.class)); cards.add(new SetCardInfo("Forest", 286, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Gaea's Courser", 181, Rarity.UNCOMMON, mage.cards.g.GaeasCourser.class));