From a16be048092318be1fadf259a7041b0b165db8bc Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 6 Apr 2020 17:32:57 -0400 Subject: [PATCH] Implemented Fierce Guardianship --- .../src/mage/cards/f/FierceGuardianship.java | 38 +++++++++++++++++++ .../src/mage/sets/Commander2020Edition.java | 1 + 2 files changed, 39 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/f/FierceGuardianship.java diff --git a/Mage.Sets/src/mage/cards/f/FierceGuardianship.java b/Mage.Sets/src/mage/cards/f/FierceGuardianship.java new file mode 100644 index 00000000000..4e96a94fe8e --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/FierceGuardianship.java @@ -0,0 +1,38 @@ +package mage.cards.f; + +import mage.abilities.condition.common.ControlACommanderCondition; +import mage.abilities.costs.AlternativeCostSourceAbility; +import mage.abilities.effects.common.CounterTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; +import mage.target.TargetSpell; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class FierceGuardianship extends CardImpl { + + public FierceGuardianship(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}"); + + // If you control a commander, you may cast this spell without paying its mana cost. + this.addAbility(new AlternativeCostSourceAbility(null, ControlACommanderCondition.instance)); + + // Counter target noncreature spell. + this.getSpellAbility().addEffect(new CounterTargetEffect()); + this.getSpellAbility().addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_NON_CREATURE)); + } + + private FierceGuardianship(final FierceGuardianship card) { + super(card); + } + + @Override + public FierceGuardianship copy() { + return new FierceGuardianship(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Commander2020Edition.java b/Mage.Sets/src/mage/sets/Commander2020Edition.java index 05e2d9b8f4b..60e451ebe1f 100644 --- a/Mage.Sets/src/mage/sets/Commander2020Edition.java +++ b/Mage.Sets/src/mage/sets/Commander2020Edition.java @@ -38,6 +38,7 @@ public final class Commander2020Edition extends ExpansionSet { cards.add(new SetCardInfo("Deflecting Swat", 50, Rarity.RARE, mage.cards.d.DeflectingSwat.class)); cards.add(new SetCardInfo("Dismantling Wave", 25, Rarity.RARE, mage.cards.d.DismantlingWave.class)); cards.add(new SetCardInfo("Eternal Dragon", 88, Rarity.RARE, mage.cards.e.EternalDragon.class)); + cards.add(new SetCardInfo("Fierce Guardianship", 35, Rarity.RARE, mage.cards.f.FierceGuardianship.class)); cards.add(new SetCardInfo("Flawless Maneuver", 26, Rarity.RARE, mage.cards.f.FlawlessManeuver.class)); cards.add(new SetCardInfo("Fluctuator", 241, Rarity.RARE, mage.cards.f.Fluctuator.class)); cards.add(new SetCardInfo("Herald of the Forgotten", 27, Rarity.RARE, mage.cards.h.HeraldOfTheForgotten.class));