From 5e26b7eacd7ed8bca990a8f4271d8a2e18a01044 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 13 Sep 2022 06:34:05 -0400 Subject: [PATCH] [40K] Implemented Inquisitor Greyfax --- .../src/mage/cards/i/InquisitorGreyfax.java | 68 +++++++++++++++++++ Mage.Sets/src/mage/sets/Warhammer40000.java | 1 + .../src/main/java/mage/constants/SubType.java | 1 + 3 files changed, 70 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/i/InquisitorGreyfax.java diff --git a/Mage.Sets/src/mage/cards/i/InquisitorGreyfax.java b/Mage.Sets/src/mage/cards/i/InquisitorGreyfax.java new file mode 100644 index 0000000000..75a1772f17 --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/InquisitorGreyfax.java @@ -0,0 +1,68 @@ +package mage.cards.i; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.common.TapTargetEffect; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.effects.keyword.InvestigateEffect; +import mage.abilities.keyword.VigilanceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.filter.StaticFilters; +import mage.target.common.TargetOpponentsCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class InquisitorGreyfax extends CardImpl { + + public InquisitorGreyfax(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}{U}{B}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.INQUISITOR); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Vigilance + this.addAbility(VigilanceAbility.getInstance()); + + // Unquestioned Wisdom -- Other creatures you control get +1/+0 and have vigilance. + Ability ability = new SimpleStaticAbility(new BoostControlledEffect( + 1, 0, Duration.WhileOnBattlefield, true + )); + ability.addEffect(new GainAbilityControlledEffect( + VigilanceAbility.getInstance(), Duration.WhileOnBattlefield, + StaticFilters.FILTER_CONTROLLED_CREATURE, true + ).setText("and have vigilance")); + this.addAbility(ability.withFlavorWord("Unquestioned Wisdom")); + + // Hunt for Heresy -- {1}, {T}: Tap target creature an opponent controls. Investigate. + ability = new SimpleActivatedAbility(new TapTargetEffect(), new GenericManaCost(1)); + ability.addCost(new TapSourceCost()); + ability.addEffect(new InvestigateEffect()); + ability.addTarget(new TargetOpponentsCreaturePermanent()); + this.addAbility(ability.withFlavorWord("Hunt for Heresy")); + } + + private InquisitorGreyfax(final InquisitorGreyfax card) { + super(card); + } + + @Override + public InquisitorGreyfax copy() { + return new InquisitorGreyfax(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Warhammer40000.java b/Mage.Sets/src/mage/sets/Warhammer40000.java index b3c61ceb31..4699f4cfbf 100644 --- a/Mage.Sets/src/mage/sets/Warhammer40000.java +++ b/Mage.Sets/src/mage/sets/Warhammer40000.java @@ -26,6 +26,7 @@ public final class Warhammer40000 extends ExpansionSet { cards.add(new SetCardInfo("Command Tower", 270, Rarity.COMMON, mage.cards.c.CommandTower.class)); cards.add(new SetCardInfo("Fabricate", 181, Rarity.RARE, mage.cards.f.Fabricate.class)); cards.add(new SetCardInfo("Hardened Scales", 215, Rarity.RARE, mage.cards.h.HardenedScales.class)); + cards.add(new SetCardInfo("Inquisitor Greyfax", 3, Rarity.MYTHIC, mage.cards.i.InquisitorGreyfax.class)); cards.add(new SetCardInfo("Sol Ring", 249, Rarity.UNCOMMON, mage.cards.s.SolRing.class)); } } diff --git a/Mage/src/main/java/mage/constants/SubType.java b/Mage/src/main/java/mage/constants/SubType.java index 2233ce77ff..00f3b9b126 100644 --- a/Mage/src/main/java/mage/constants/SubType.java +++ b/Mage/src/main/java/mage/constants/SubType.java @@ -198,6 +198,7 @@ public enum SubType { IMP("Imp", SubTypeSet.CreatureType), INCARNATION("Incarnation", SubTypeSet.CreatureType), INKLING("Inkling", SubTypeSet.CreatureType), + INQUISITOR("Inquisitor", SubTypeSet.CreatureType), INSECT("Insect", SubTypeSet.CreatureType), ITHORIAN("Ithorian", SubTypeSet.CreatureType, true), // Star Wars // J