From 11c14fb1a2be16011ce70be83006939b02125709 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 29 May 2022 21:21:25 -0400 Subject: [PATCH] [CLB] Implemented Pseudodragon Familiar --- .../mage/cards/p/PseudodragonFamiliar.java | 48 +++++++++++++++++++ .../CommanderLegendsBattleForBaldursGate.java | 1 + 2 files changed, 49 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/p/PseudodragonFamiliar.java diff --git a/Mage.Sets/src/mage/cards/p/PseudodragonFamiliar.java b/Mage.Sets/src/mage/cards/p/PseudodragonFamiliar.java new file mode 100644 index 0000000000..9e42cb9c47 --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/PseudodragonFamiliar.java @@ -0,0 +1,48 @@ +package mage.cards.p; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +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.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class PseudodragonFamiliar extends CardImpl { + + public PseudodragonFamiliar(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}"); + + this.subtype.add(SubType.DRAGON); + this.power = new MageInt(2); + this.toughness = new MageInt(1); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // {2}{U}: Target creature gains flying until end of turn. + Ability ability = new SimpleActivatedAbility( + new GainAbilityTargetEffect(FlyingAbility.getInstance()), new ManaCostsImpl<>("{2}{U}") + ); + ability.addTarget(new TargetCreaturePermanent()); + this.addAbility(ability); + } + + private PseudodragonFamiliar(final PseudodragonFamiliar card) { + super(card); + } + + @Override + public PseudodragonFamiliar copy() { + return new PseudodragonFamiliar(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java b/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java index 356d4454d8..463b097fc3 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java +++ b/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java @@ -198,6 +198,7 @@ public final class CommanderLegendsBattleForBaldursGate extends ExpansionSet { cards.add(new SetCardInfo("Poison the Blade", 248, Rarity.COMMON, mage.cards.p.PoisonTheBlade.class)); cards.add(new SetCardInfo("Predatory Impetus", 249, Rarity.COMMON, mage.cards.p.PredatoryImpetus.class)); cards.add(new SetCardInfo("Prophetic Prism", 335, Rarity.COMMON, mage.cards.p.PropheticPrism.class)); + cards.add(new SetCardInfo("Pseudodragon Familiar", 88, Rarity.COMMON, mage.cards.p.PseudodragonFamiliar.class)); cards.add(new SetCardInfo("Psychic Impetus", 89, Rarity.COMMON, mage.cards.p.PsychicImpetus.class)); cards.add(new SetCardInfo("Raised by Giants", 250, Rarity.RARE, mage.cards.r.RaisedByGiants.class)); cards.add(new SetCardInfo("Raphael, Fiendish Savior", 292, Rarity.RARE, mage.cards.r.RaphaelFiendishSavior.class));