From 25a94f0159381f65017b05a4384406b76da07e8a Mon Sep 17 00:00:00 2001 From: theelk801 Date: Tue, 13 May 2025 07:55:06 -0400 Subject: [PATCH] [FIC] Implement Protection Magic --- .../src/mage/cards/p/ProtectionMagic.java | 33 +++++++++++++++++++ .../src/mage/sets/FinalFantasyCommander.java | 1 + 2 files changed, 34 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/p/ProtectionMagic.java diff --git a/Mage.Sets/src/mage/cards/p/ProtectionMagic.java b/Mage.Sets/src/mage/cards/p/ProtectionMagic.java new file mode 100644 index 00000000000..7f7df7a4896 --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/ProtectionMagic.java @@ -0,0 +1,33 @@ +package mage.cards.p; + +import mage.abilities.effects.common.counter.AddCountersTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.counters.CounterType; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ProtectionMagic extends CardImpl { + + public ProtectionMagic(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}"); + + // Put a shield counter on each of up to three target creatures. + this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.SHIELD.createInstance())); + this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 3)); + } + + private ProtectionMagic(final ProtectionMagic card) { + super(card); + } + + @Override + public ProtectionMagic copy() { + return new ProtectionMagic(this); + } +} diff --git a/Mage.Sets/src/mage/sets/FinalFantasyCommander.java b/Mage.Sets/src/mage/sets/FinalFantasyCommander.java index fe13e775d30..7d97071cf80 100644 --- a/Mage.Sets/src/mage/sets/FinalFantasyCommander.java +++ b/Mage.Sets/src/mage/sets/FinalFantasyCommander.java @@ -175,6 +175,7 @@ public final class FinalFantasyCommander extends ExpansionSet { cards.add(new SetCardInfo("Professional Face-Breaker", 296, Rarity.RARE, mage.cards.p.ProfessionalFaceBreaker.class)); cards.add(new SetCardInfo("Promise of Loyalty", 249, Rarity.RARE, mage.cards.p.PromiseOfLoyalty.class)); cards.add(new SetCardInfo("Propaganda", 268, Rarity.UNCOMMON, mage.cards.p.Propaganda.class)); + cards.add(new SetCardInfo("Protection Magic", 24, Rarity.RARE, mage.cards.p.ProtectionMagic.class)); cards.add(new SetCardInfo("Pull from Tomorrow", 269, Rarity.RARE, mage.cards.p.PullFromTomorrow.class)); cards.add(new SetCardInfo("Puresteel Paladin", 250, Rarity.RARE, mage.cards.p.PuresteelPaladin.class)); cards.add(new SetCardInfo("Radiant Grove", 414, Rarity.COMMON, mage.cards.r.RadiantGrove.class));