From c8df28bd89edf7dbda62925d0ddcca637af09824 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 26 May 2021 07:28:38 -0400 Subject: [PATCH] [MH2] Implemented Drey Keeper --- Mage.Sets/src/mage/cards/d/DreyKeeper.java | 58 ++++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons2.java | 1 + 2 files changed, 59 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DreyKeeper.java diff --git a/Mage.Sets/src/mage/cards/d/DreyKeeper.java b/Mage.Sets/src/mage/cards/d/DreyKeeper.java new file mode 100644 index 00000000000..4262504522c --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DreyKeeper.java @@ -0,0 +1,58 @@ +package mage.cards.d; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.keyword.MenaceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.common.FilterCreaturePermanent; +import mage.game.permanent.token.SquirrelToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DreyKeeper extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent(SubType.SQUIRREL, ""); + + public DreyKeeper(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}{G}"); + + this.subtype.add(SubType.ELF); + this.subtype.add(SubType.DRUID); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // When Drey Keeper enters the battlefield, create two 1/1 green Squirrel creature tokens. + this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new SquirrelToken(), 2))); + + // {3}{B}: Squirrels you control get +1/+0 and gain menace until end of turn. + Ability ability = new SimpleActivatedAbility(new BoostControlledEffect( + 1, 0, Duration.EndOfTurn, filter + ).setText("squirrels you control get +1/+0"), new ManaCostsImpl<>("{3}{B}")); + ability.addEffect(new GainAbilityControlledEffect( + new MenaceAbility(), Duration.EndOfTurn, filter + ).setText("and gain menace until end of turn")); + this.addAbility(ability); + } + + private DreyKeeper(final DreyKeeper card) { + super(card); + } + + @Override + public DreyKeeper copy() { + return new DreyKeeper(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons2.java b/Mage.Sets/src/mage/sets/ModernHorizons2.java index 5ac439ce4e9..9017d4a7580 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons2.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons2.java @@ -38,6 +38,7 @@ public final class ModernHorizons2 extends ExpansionSet { cards.add(new SetCardInfo("Counterspell", 267, Rarity.UNCOMMON, mage.cards.c.Counterspell.class)); cards.add(new SetCardInfo("Dakkon, Shadow Slayer", 192, Rarity.MYTHIC, mage.cards.d.DakkonShadowSlayer.class)); cards.add(new SetCardInfo("Diamond Lion", 225, Rarity.RARE, mage.cards.d.DiamondLion.class)); + cards.add(new SetCardInfo("Drey Keeper", 194, Rarity.COMMON, mage.cards.d.DreyKeeper.class)); cards.add(new SetCardInfo("Extruder", 296, Rarity.UNCOMMON, mage.cards.e.Extruder.class)); cards.add(new SetCardInfo("Flametongue Yearling", 125, Rarity.UNCOMMON, mage.cards.f.FlametongueYearling.class)); cards.add(new SetCardInfo("Forest", 489, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));