From 60e74bb364c3885ef4cdbcb0738b04e5ba021f2a Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 11 Jun 2021 21:40:59 -0400 Subject: [PATCH] [AFR] Implemented Flumph --- Mage.Sets/src/mage/cards/f/Flumph.java | 53 +++++++++++++++++++ .../sets/AdventuresInTheForgottenRealms.java | 1 + Utils/mtg-cards-data.txt | 1 + 3 files changed, 55 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/f/Flumph.java diff --git a/Mage.Sets/src/mage/cards/f/Flumph.java b/Mage.Sets/src/mage/cards/f/Flumph.java new file mode 100644 index 0000000000..40444734fe --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/Flumph.java @@ -0,0 +1,53 @@ +package mage.cards.f; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.DealtDamageToSourceTriggeredAbility; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.DrawCardTargetEffect; +import mage.abilities.keyword.DefenderAbility; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.target.common.TargetOpponent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class Flumph extends CardImpl { + + public Flumph(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}"); + + this.subtype.add(SubType.JELLYFISH); + this.power = new MageInt(0); + this.toughness = new MageInt(4); + + // Defender + this.addAbility(DefenderAbility.getInstance()); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Whenever Flumph is dealt damage, you and target opponent each draw a card. + Ability ability = new DealtDamageToSourceTriggeredAbility( + new DrawCardSourceControllerEffect(1).setText("you"), false + ); + ability.addEffect(new DrawCardTargetEffect(1).setText("and target opponent each draw a card")); + ability.addTarget(new TargetOpponent()); + this.addAbility(ability); + } + + private Flumph(final Flumph card) { + super(card); + } + + @Override + public Flumph copy() { + return new Flumph(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java index ef55cc6f2c..11acb59188 100644 --- a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java +++ b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java @@ -25,6 +25,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet { this.numBoosterRare = 1; this.maxCardNumberInBooster = 275; + cards.add(new SetCardInfo("Flumph", 15, Rarity.RARE, mage.cards.f.Flumph.class)); cards.add(new SetCardInfo("Forest", 281, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Island", 269, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Mountain", 277, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 2aefba9908..7c3fb6e693 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -41320,6 +41320,7 @@ Temple of the False God|Commander 2021|326|U||Land|||{T}: Add {C}{C}. Activate o Temple of Triumph|Commander 2021|327|R||Land|||Temple of Triumph enters the battlefield tapped.$When Temple of Triumph enters the battlefield, scry 1.${T}: Add {R} or {W}.| Tranquil Thicket|Commander 2021|408|C||Land|||Tranquil Thicket enters the battlefield tapped.${T}: Add {G}.$Cycling {G}| Yavimaya Coast|Commander 2021|409|R||Land|||{T}: Add {C}.${T}: Add {G} or {U}. Yavimaya Coast deals 1 damage to you.| +Flumph|Adventures in the Forgotten Realms|15|R|{1}{W}|Creature - Jellyfish|0|4|Defender, flying$Whenever Flumph is dealt damage, you and target opponent each draw a card.| Portable Hole|Adventures in the Forgotten Realms|33|U|{W}|Artifact|||When Portable Hole enters the battlefield, exile target nonland permanent an opponent controls with mana value 2 or less until Portable Hole leaves the battlefield.| Lolth, Spider Queen|Adventures in the Forgotten Realms|112|M|{3}{B}{B}|Legendary Planeswalker - Lolth|4|Whenever a creature you control dies, put a loyalty counter on Lolth, Spider Queen.$0: You draw a card and you lose 1 life.$−3: Create two 2/1 black Spider creature tokens with menace and reach.$−8: You get an emblem with "Whenever an opponent is dealt combat damage by one or more creatures you control, if that player lost less than 8 life this turn, they lose life equal to the difference."| Power Word Kill|Adventures in the Forgotten Realms|114|U|{1}{B}|Instant|||Destroy target non-Angel, non-Demon, non-Devil, non-Dragon creature.|