From 0bdd0de3ac8820ea2ae0693e9a6e23940d7918b7 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 29 Sep 2020 19:40:47 -0400 Subject: [PATCH] [SLD] Implemented Glenn, the Voice of Calm --- .../src/mage/cards/g/GlennTheVoiceOfCalm.java | 50 +++++++++++++++++++ Mage.Sets/src/mage/sets/SecretLairDrop.java | 1 + 2 files changed, 51 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GlennTheVoiceOfCalm.java diff --git a/Mage.Sets/src/mage/cards/g/GlennTheVoiceOfCalm.java b/Mage.Sets/src/mage/cards/g/GlennTheVoiceOfCalm.java new file mode 100644 index 00000000000..be76e046e21 --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GlennTheVoiceOfCalm.java @@ -0,0 +1,50 @@ +package mage.cards.g; + +import mage.MageInt; +import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility; +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.keyword.SkulkAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class GlennTheVoiceOfCalm extends CardImpl { + + private static final DynamicValue xValue = new SourcePermanentPowerCount(false); + + public GlennTheVoiceOfCalm(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}{U}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.ADVISOR); + this.power = new MageInt(1); + this.toughness = new MageInt(3); + + // Skulk + this.addAbility(new SkulkAbility()); + + // Whenever Glenn deals combat damage to a player, draw cards equal to his power. + this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility( + new DrawCardSourceControllerEffect(xValue).setText("draw cards equal to his power"), false + )); + } + + private GlennTheVoiceOfCalm(final GlennTheVoiceOfCalm card) { + super(card); + } + + @Override + public GlennTheVoiceOfCalm copy() { + return new GlennTheVoiceOfCalm(this); + } +} diff --git a/Mage.Sets/src/mage/sets/SecretLairDrop.java b/Mage.Sets/src/mage/sets/SecretLairDrop.java index 5fde27ab630..d9c4e413aaf 100644 --- a/Mage.Sets/src/mage/sets/SecretLairDrop.java +++ b/Mage.Sets/src/mage/sets/SecretLairDrop.java @@ -49,6 +49,7 @@ public class SecretLairDrop extends ExpansionSet { cards.add(new SetCardInfo("Explore", 114, Rarity.RARE, mage.cards.e.Explore.class)); cards.add(new SetCardInfo("Fatal Push", 112, Rarity.RARE, mage.cards.f.FatalPush.class)); cards.add(new SetCardInfo("Gilded Goose", 93, Rarity.RARE, mage.cards.g.GildedGoose.class)); + cards.add(new SetCardInfo("Glenn, the Voice of Calm", 145, Rarity.MYTHIC, mage.cards.g.GlennTheVoiceOfCalm.class)); cards.add(new SetCardInfo("Goblin Bushwhacker", 17, Rarity.RARE, mage.cards.g.GoblinBushwhacker.class)); cards.add(new SetCardInfo("Goblin King", 19, Rarity.RARE, mage.cards.g.GoblinKing.class)); cards.add(new SetCardInfo("Goblin Lackey", 20, Rarity.RARE, mage.cards.g.GoblinLackey.class));