From 20fbde2860849cb661f82d127ae8a09c43293ad6 Mon Sep 17 00:00:00 2001 From: ciaccona007 Date: Wed, 15 Sep 2021 14:34:12 -0400 Subject: [PATCH] [MID] Implement Slogurk, the Overslime --- .../src/mage/cards/s/SlogurkTheOverslime.java | 65 +++++++++++++++++++ .../src/mage/sets/InnistradMidnightHunt.java | 1 + 2 files changed, 66 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/SlogurkTheOverslime.java diff --git a/Mage.Sets/src/mage/cards/s/SlogurkTheOverslime.java b/Mage.Sets/src/mage/cards/s/SlogurkTheOverslime.java new file mode 100644 index 0000000000..292337f839 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SlogurkTheOverslime.java @@ -0,0 +1,65 @@ +package mage.cards.s; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.LeavesBattlefieldTriggeredAbility; +import mage.abilities.common.PutCardIntoGraveFromAnywhereAllTriggeredAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.RemoveCountersSourceCost; +import mage.abilities.effects.common.ReturnToHandSourceEffect; +import mage.abilities.effects.common.ReturnToHandTargetEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.*; +import mage.counters.CounterType; +import mage.filter.StaticFilters; +import mage.filter.common.FilterLandCard; +import mage.target.common.TargetCardInYourGraveyard; + +import java.util.UUID; + +/** + * @author ciaccona007 + */ +public final class SlogurkTheOverslime extends CardImpl { + + public SlogurkTheOverslime(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}{U}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.OOZE); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Trample + this.addAbility(TrampleAbility.getInstance()); + + // Whenever a land card is put into your graveyard from anywhere, put a +1/+1 counter on Slogurk, the Overslime. + this.addAbility(new PutCardIntoGraveFromAnywhereAllTriggeredAbility( + new AddCountersSourceEffect(CounterType.P1P1.createInstance()), + false, StaticFilters.FILTER_CARD_LAND_A, TargetController.YOU + )); + + // Remove three +1/+1 counters from Slogurk: Return it to its owner's hand. + this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(), + new RemoveCountersSourceCost(CounterType.P1P1.createInstance(3)))); + + // When Slogurk leaves the battlefield, return up to three target land cards from your graveyard to your hand. + Ability ability = new LeavesBattlefieldTriggeredAbility(new ReturnToHandTargetEffect() + .setText("return up to three target land cards from your graveyard to your hand"), false); + ability.addTarget(new TargetCardInYourGraveyard( + 0, 3, new FilterLandCard("land cards from your graveyard"))); + this.addAbility(ability); + } + + private SlogurkTheOverslime(final SlogurkTheOverslime card) { + super(card); + } + + @Override + public SlogurkTheOverslime copy() { + return new SlogurkTheOverslime(this); + } +} diff --git a/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java b/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java index 3ba34f84bf..7080025242 100644 --- a/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java +++ b/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java @@ -267,6 +267,7 @@ public final class InnistradMidnightHunt extends ExpansionSet { cards.add(new SetCardInfo("Silver Bolt", 258, Rarity.COMMON, mage.cards.s.SilverBolt.class)); cards.add(new SetCardInfo("Skaab Wrangler", 75, Rarity.UNCOMMON, mage.cards.s.SkaabWrangler.class)); cards.add(new SetCardInfo("Slaughter Specialist", 122, Rarity.RARE, mage.cards.s.SlaughterSpecialist.class)); + cards.add(new SetCardInfo("Slogurk, the Overslime", 242, Rarity.RARE, mage.cards.s.SlogurkTheOverslime.class)); cards.add(new SetCardInfo("Sludge Monster", 76, Rarity.RARE, mage.cards.s.SludgeMonster.class)); cards.add(new SetCardInfo("Smoldering Egg", 159, Rarity.RARE, mage.cards.s.SmolderingEgg.class)); cards.add(new SetCardInfo("Snarling Wolf", 199, Rarity.COMMON, mage.cards.s.SnarlingWolf.class));