From a0d2d9d76659fa109e6fe10e389eeb5084c0591f Mon Sep 17 00:00:00 2001 From: theelk801 Date: Thu, 6 Apr 2023 00:43:04 -0400 Subject: [PATCH] [MOM] Implement Zhalfirin Shapecraft --- .../src/mage/cards/z/ZhalfirinShapecraft.java | 37 +++++++++++++++++++ .../src/mage/sets/MarchOfTheMachine.java | 1 + 2 files changed, 38 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/z/ZhalfirinShapecraft.java diff --git a/Mage.Sets/src/mage/cards/z/ZhalfirinShapecraft.java b/Mage.Sets/src/mage/cards/z/ZhalfirinShapecraft.java new file mode 100644 index 0000000000..f6021abfe5 --- /dev/null +++ b/Mage.Sets/src/mage/cards/z/ZhalfirinShapecraft.java @@ -0,0 +1,37 @@ +package mage.cards.z; + +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.continuous.SetBasePowerToughnessTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ZhalfirinShapecraft extends CardImpl { + + public ZhalfirinShapecraft(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}"); + + // Target creature has base power and toughness 4/3 until end of turn. + this.getSpellAbility().addEffect(new SetBasePowerToughnessTargetEffect(4, 3, Duration.EndOfTurn)); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + + // Draw a card. + this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1).concatBy("
")); + } + + private ZhalfirinShapecraft(final ZhalfirinShapecraft card) { + super(card); + } + + @Override + public ZhalfirinShapecraft copy() { + return new ZhalfirinShapecraft(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java index b79085d6c4..a4966f840b 100644 --- a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java +++ b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java @@ -180,6 +180,7 @@ public final class MarchOfTheMachine extends ExpansionSet { cards.add(new SetCardInfo("Yargle and Multani", 256, Rarity.RARE, mage.cards.y.YargleAndMultani.class)); cards.add(new SetCardInfo("Zephyr Winder", 328, Rarity.COMMON, mage.cards.z.ZephyrWinder.class)); cards.add(new SetCardInfo("Zhalfirin Lancer", 45, Rarity.UNCOMMON, mage.cards.z.ZhalfirinLancer.class)); + cards.add(new SetCardInfo("Zhalfirin Shapecraft", 87, Rarity.COMMON, mage.cards.z.ZhalfirinShapecraft.class)); cards.add(new SetCardInfo("Zimone and Dina", 257, Rarity.MYTHIC, mage.cards.z.ZimoneAndDina.class)); cards.removeIf(setCardInfo -> unfinished.contains(setCardInfo.getName())); // remove when mechanic is implemented