From 05c3a1e0f72481e34eebcd5ae0d84e53284dd25d Mon Sep 17 00:00:00 2001 From: Cameron Merkel <44722506+Cguy7777@users.noreply.github.com> Date: Sun, 24 Nov 2024 23:46:53 -0600 Subject: [PATCH] [DSC] Implement Giggling Skitterspike (#13074) * [DSC] Implement Giggling Skitterspike * Use OrTriggeredAbility instead of custom ability --- .../mage/cards/g/GigglingSkitterspike.java | 60 +++++++++++++++++++ .../sets/DuskmournHouseOfHorrorCommander.java | 1 + 2 files changed, 61 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GigglingSkitterspike.java diff --git a/Mage.Sets/src/mage/cards/g/GigglingSkitterspike.java b/Mage.Sets/src/mage/cards/g/GigglingSkitterspike.java new file mode 100644 index 00000000000..1d935d8195b --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GigglingSkitterspike.java @@ -0,0 +1,60 @@ +package mage.cards.g; + +import java.util.UUID; + +import mage.MageInt; +import mage.abilities.common.AttacksOrBlocksTriggeredAbility; +import mage.abilities.common.BecomesTargetSourceTriggeredAbility; +import mage.abilities.dynamicvalue.common.SourcePermanentPowerValue; +import mage.abilities.effects.common.DamagePlayersEffect; +import mage.abilities.keyword.MonstrosityAbility; +import mage.abilities.meta.OrTriggeredAbility; +import mage.constants.SubType; +import mage.abilities.keyword.IndestructibleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.TargetController; +import mage.constants.Zone; +import mage.filter.StaticFilters; + +/** + * @author Cguy7777 + */ +public final class GigglingSkitterspike extends CardImpl { + + public GigglingSkitterspike(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{4}"); + + this.subtype.add(SubType.TOY); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // Indestructible + this.addAbility(IndestructibleAbility.getInstance()); + + // Whenever Giggling Skitterspike attacks, blocks, or becomes the target of a spell, + // it deals damage equal to its power to each opponent. + this.addAbility(new OrTriggeredAbility( + Zone.BATTLEFIELD, + new DamagePlayersEffect(SourcePermanentPowerValue.NOT_NEGATIVE, TargetController.OPPONENT) + .setText("it deals damage equal to its power to each opponent"), + false, + "Whenever {this} attacks, blocks, or becomes the target of a spell, ", + new AttacksOrBlocksTriggeredAbility(null, false), + new BecomesTargetSourceTriggeredAbility(null, StaticFilters.FILTER_SPELL_A))); + + // {5}: Monstrosity 5. + this.addAbility(new MonstrosityAbility("{5}", 5)); + + } + + private GigglingSkitterspike(final GigglingSkitterspike card) { + super(card); + } + + @Override + public GigglingSkitterspike copy() { + return new GigglingSkitterspike(this); + } +} diff --git a/Mage.Sets/src/mage/sets/DuskmournHouseOfHorrorCommander.java b/Mage.Sets/src/mage/sets/DuskmournHouseOfHorrorCommander.java index e8fdce8dc5e..7353d9329a1 100644 --- a/Mage.Sets/src/mage/sets/DuskmournHouseOfHorrorCommander.java +++ b/Mage.Sets/src/mage/sets/DuskmournHouseOfHorrorCommander.java @@ -115,6 +115,7 @@ public final class DuskmournHouseOfHorrorCommander extends ExpansionSet { cards.add(new SetCardInfo("Formless Genesis", 34, Rarity.RARE, mage.cards.f.FormlessGenesis.class)); cards.add(new SetCardInfo("Geothermal Bog", 278, Rarity.COMMON, mage.cards.g.GeothermalBog.class)); cards.add(new SetCardInfo("Giant Adephage", 179, Rarity.MYTHIC, mage.cards.g.GiantAdephage.class)); + cards.add(new SetCardInfo("Giggling Skitterspike", 39, Rarity.RARE, mage.cards.g.GigglingSkitterspike.class)); cards.add(new SetCardInfo("Gleeful Arsonist", 27, Rarity.RARE, mage.cards.g.GleefulArsonist.class)); cards.add(new SetCardInfo("Glitch Interpreter", 13, Rarity.RARE, mage.cards.g.GlitchInterpreter.class)); cards.add(new SetCardInfo("Gnarlwood Dryad", 180, Rarity.UNCOMMON, mage.cards.g.GnarlwoodDryad.class)); -- 2.47.2