From a0be37922ea68d19bc6be1b1a84c184787db87b7 Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Wed, 30 Jun 2021 21:00:25 -0500 Subject: [PATCH] [AFR] Implemented Grazilaxx, Illithid Scholar --- .../cards/g/GrazilaxxIllithidScholar.java | 54 +++++++++++++++++++ .../sets/AdventuresInTheForgottenRealms.java | 1 + 2 files changed, 55 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GrazilaxxIllithidScholar.java diff --git a/Mage.Sets/src/mage/cards/g/GrazilaxxIllithidScholar.java b/Mage.Sets/src/mage/cards/g/GrazilaxxIllithidScholar.java new file mode 100644 index 0000000000..551c0ee72a --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GrazilaxxIllithidScholar.java @@ -0,0 +1,54 @@ +package mage.cards.g; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.common.BecomesBlockedAllTriggeredAbility; +import mage.abilities.common.ControlledCreaturesDealCombatDamagePlayerTriggeredAbility; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.ReturnToHandTargetEffect; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.TargetController; +import mage.filter.common.FilterCreaturePermanent; + +/** + * + * @author weirddan455 + */ +public final class GrazilaxxIllithidScholar extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("a creature you control"); + + static { + filter.add(TargetController.YOU.getControllerPredicate()); + } + + public GrazilaxxIllithidScholar(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}{U}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.HORROR); + this.power = new MageInt(3); + this.toughness = new MageInt(2); + + // Whenever a creature you control becomes blocked, you may return it to its owner's hand. + this.addAbility(new BecomesBlockedAllTriggeredAbility( + new ReturnToHandTargetEffect().setText("return it to its owner's hand"), true, filter, true + )); + + // Whenever one or more creatures you control deal combat damage to a player, draw a card. + this.addAbility(new ControlledCreaturesDealCombatDamagePlayerTriggeredAbility(new DrawCardSourceControllerEffect(1))); + } + + private GrazilaxxIllithidScholar(final GrazilaxxIllithidScholar card) { + super(card); + } + + @Override + public GrazilaxxIllithidScholar copy() { + return new GrazilaxxIllithidScholar(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java index fed5e6d09c..c177392682 100644 --- a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java +++ b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java @@ -50,6 +50,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet { cards.add(new SetCardInfo("Flumph", 15, Rarity.RARE, mage.cards.f.Flumph.class)); cards.add(new SetCardInfo("Forest", 278, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Gloom Stalker", 16, Rarity.COMMON, mage.cards.g.GloomStalker.class)); + cards.add(new SetCardInfo("Grazilaxx, Illithid Scholar", 60, Rarity.RARE, mage.cards.g.GrazilaxxIllithidScholar.class)); cards.add(new SetCardInfo("Guild Thief", 61, Rarity.UNCOMMON, mage.cards.g.GuildThief.class)); cards.add(new SetCardInfo("Hive of the Eye Tyrant", 258, Rarity.RARE, mage.cards.h.HiveOfTheEyeTyrant.class)); cards.add(new SetCardInfo("Hobgoblin Captain", 148, Rarity.COMMON, mage.cards.h.HobgoblinCaptain.class));