[FIC] Implement Protection Magic

This commit is contained in:
theelk801 2025-05-13 07:55:06 -04:00
parent 616862dc56
commit 25a94f0159
2 changed files with 34 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));