From 861acd0da16b08d95df23e2e8114449198394162 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 16 Sep 2022 08:32:52 -0400 Subject: [PATCH] [40K] Implemented Cryptothrall --- Mage.Sets/src/mage/cards/c/Cryptothrall.java | 43 ++++++++++++++++++++ Mage.Sets/src/mage/sets/Warhammer40000.java | 1 + 2 files changed, 44 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/Cryptothrall.java diff --git a/Mage.Sets/src/mage/cards/c/Cryptothrall.java b/Mage.Sets/src/mage/cards/c/Cryptothrall.java new file mode 100644 index 0000000000..dda7498322 --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/Cryptothrall.java @@ -0,0 +1,43 @@ +package mage.cards.c; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.keyword.HexproofAbility; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; + +/** + * + * @author TheElk801 + */ +public final class Cryptothrall extends CardImpl { + + public Cryptothrall(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{4}"); + + this.subtype.add(SubType.CONSTRUCT); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Protector -- Other artifact creatures you control have hexproof. + this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect( + HexproofAbility.getInstance(), Duration.WhileOnBattlefield, + StaticFilters.FILTER_PERMANENTS_ARTIFACT_CREATURE,true + )).withFlavorWord("Protector")); + } + + private Cryptothrall(final Cryptothrall card) { + super(card); + } + + @Override + public Cryptothrall copy() { + return new Cryptothrall(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Warhammer40000.java b/Mage.Sets/src/mage/sets/Warhammer40000.java index 60fc1e20b6..6965dba5e3 100644 --- a/Mage.Sets/src/mage/sets/Warhammer40000.java +++ b/Mage.Sets/src/mage/sets/Warhammer40000.java @@ -50,6 +50,7 @@ public final class Warhammer40000 extends ExpansionSet { cards.add(new SetCardInfo("Commander's Sphere", 235, Rarity.COMMON, mage.cards.c.CommandersSphere.class)); cards.add(new SetCardInfo("Cranial Plating", 236, Rarity.UNCOMMON, mage.cards.c.CranialPlating.class)); cards.add(new SetCardInfo("Crumbling Necropolis", 273, Rarity.UNCOMMON, mage.cards.c.CrumblingNecropolis.class)); + cards.add(new SetCardInfo("Cryptothrall", 155, Rarity.RARE, mage.cards.c.Cryptothrall.class)); cards.add(new SetCardInfo("Cultivate", 211, Rarity.COMMON, mage.cards.c.Cultivate.class)); cards.add(new SetCardInfo("Dark Ritual", 196, Rarity.COMMON, mage.cards.d.DarkRitual.class)); cards.add(new SetCardInfo("Darkness", 197, Rarity.COMMON, mage.cards.d.Darkness.class));