From 8d1801b628c57a9c7bbc8be4d3c726589d48477f Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 25 Jun 2019 18:49:28 -0400 Subject: [PATCH] Implemented Daggersail Aeronaut --- .../src/mage/cards/d/DaggersailAeronaut.java | 45 +++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2020.java | 1 + 2 files changed, 46 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DaggersailAeronaut.java diff --git a/Mage.Sets/src/mage/cards/d/DaggersailAeronaut.java b/Mage.Sets/src/mage/cards/d/DaggersailAeronaut.java new file mode 100644 index 0000000000..1fec27a9b4 --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DaggersailAeronaut.java @@ -0,0 +1,45 @@ +package mage.cards.d; + +import mage.MageInt; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.common.MyTurnCondition; +import mage.abilities.decorator.ConditionalContinuousEffect; +import mage.abilities.effects.common.continuous.GainAbilitySourceEffect; +import mage.abilities.keyword.FlyingAbility; +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 DaggersailAeronaut extends CardImpl { + + public DaggersailAeronaut(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}"); + + this.subtype.add(SubType.GOBLIN); + this.power = new MageInt(3); + this.toughness = new MageInt(2); + + // As long as it's your turn, Daggersail Aeronaut has flying. + this.addAbility(new SimpleStaticAbility( + new ConditionalContinuousEffect(new GainAbilitySourceEffect( + FlyingAbility.getInstance(), Duration.WhileOnBattlefield + ), MyTurnCondition.instance, "As long as it's your turn, {this} has flying.") + )); + } + + private DaggersailAeronaut(final DaggersailAeronaut card) { + super(card); + } + + @Override + public DaggersailAeronaut copy() { + return new DaggersailAeronaut(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2020.java b/Mage.Sets/src/mage/sets/CoreSet2020.java index a61928b9a7..8dcfa74886 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2020.java +++ b/Mage.Sets/src/mage/sets/CoreSet2020.java @@ -99,6 +99,7 @@ public final class CoreSet2020 extends ExpansionSet { cards.add(new SetCardInfo("Corpse Knight", 206, Rarity.UNCOMMON, mage.cards.c.CorpseKnight.class)); cards.add(new SetCardInfo("Creeping Trailblazer", 207, Rarity.UNCOMMON, mage.cards.c.CreepingTrailblazer.class)); cards.add(new SetCardInfo("Cryptic Caves", 244, Rarity.UNCOMMON, mage.cards.c.CrypticCaves.class)); + cards.add(new SetCardInfo("Daggersail Aeronaut", 133, Rarity.COMMON, mage.cards.d.DaggersailAeronaut.class)); cards.add(new SetCardInfo("Daybreak Chaplain", 12, Rarity.COMMON, mage.cards.d.DaybreakChaplain.class)); cards.add(new SetCardInfo("Destructive Digger", 134, Rarity.COMMON, mage.cards.d.DestructiveDigger.class)); cards.add(new SetCardInfo("Devout Decree", 13, Rarity.UNCOMMON, mage.cards.d.DevoutDecree.class));