From 0a0d6db742274c93e1813caee9e1f121b5a950ac Mon Sep 17 00:00:00 2001 From: theelk801 Date: Tue, 13 May 2025 21:43:42 -0400 Subject: [PATCH] [FIC] Implement Sphere Grid --- Mage.Sets/src/mage/cards/s/SphereGrid.java | 57 +++++++++++++++++++ .../src/mage/sets/FinalFantasyCommander.java | 2 + 2 files changed, 59 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/SphereGrid.java diff --git a/Mage.Sets/src/mage/cards/s/SphereGrid.java b/Mage.Sets/src/mage/cards/s/SphereGrid.java new file mode 100644 index 00000000000..11c76b7f273 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SphereGrid.java @@ -0,0 +1,57 @@ +package mage.cards.s; + +import mage.abilities.Ability; +import mage.abilities.common.DealsDamageToAPlayerAllTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.continuous.GainAbilityAllEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.effects.common.counter.AddCountersTargetEffect; +import mage.abilities.keyword.ReachAbility; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SetTargetPointer; +import mage.counters.CounterType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class SphereGrid extends CardImpl { + + public SphereGrid(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{G}"); + + // Whenever a creature you control deals combat damage to a player, put a +1/+1 counter on that creature. + this.addAbility(new DealsDamageToAPlayerAllTriggeredAbility( + new AddCountersTargetEffect(CounterType.P1P1.createInstance()) + .setText("put a +1/+1 counter on that creature"), + StaticFilters.FILTER_CONTROLLED_CREATURE, false, + SetTargetPointer.PERMANENT, true + )); + + // Unlock Ability -- Creatures you control with +1/+1 counters on them have reach and trample. + Ability ability = new SimpleStaticAbility(new GainAbilityAllEffect( + ReachAbility.getInstance(), Duration.WhileOnBattlefield, + StaticFilters.FILTER_CONTROLLED_CREATURE_P1P1 + ).setText("creatures you control with +1/+1 counters on them have reach")); + ability.addEffect(new GainAbilityControlledEffect( + TrampleAbility.getInstance(), Duration.WhileOnBattlefield, + StaticFilters.FILTER_CONTROLLED_CREATURE_P1P1 + ).setText("and trample")); + this.addAbility(ability.withFlavorWord("Unlock Ability")); + } + + private SphereGrid(final SphereGrid card) { + super(card); + } + + @Override + public SphereGrid copy() { + return new SphereGrid(this); + } +} diff --git a/Mage.Sets/src/mage/sets/FinalFantasyCommander.java b/Mage.Sets/src/mage/sets/FinalFantasyCommander.java index 53d646c13b5..d5a2572bdf7 100644 --- a/Mage.Sets/src/mage/sets/FinalFantasyCommander.java +++ b/Mage.Sets/src/mage/sets/FinalFantasyCommander.java @@ -272,6 +272,8 @@ public final class FinalFantasyCommander extends ExpansionSet { cards.add(new SetCardInfo("Sol Ring", 358, Rarity.UNCOMMON, mage.cards.s.SolRing.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Sol Ring", 359, Rarity.UNCOMMON, mage.cards.s.SolRing.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Solemn Simulacrum", 360, Rarity.RARE, mage.cards.s.SolemnSimulacrum.class)); + cards.add(new SetCardInfo("Sphere Grid", 123, Rarity.RARE, mage.cards.s.SphereGrid.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Sphere Grid", 70, Rarity.RARE, mage.cards.s.SphereGrid.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Spire of Industry", 426, Rarity.RARE, mage.cards.s.SpireOfIndustry.class)); cards.add(new SetCardInfo("Stitch Together", 286, Rarity.UNCOMMON, mage.cards.s.StitchTogether.class)); cards.add(new SetCardInfo("Stitcher's Supplier", 287, Rarity.UNCOMMON, mage.cards.s.StitchersSupplier.class));