From 3b76f9e6d016b39f19f1bb3a19c9fdeeb142ec6c Mon Sep 17 00:00:00 2001 From: theelk801 Date: Thu, 6 Apr 2023 00:03:39 -0400 Subject: [PATCH] [MOM] Implement Infected Defector --- .../src/mage/cards/i/InfectedDefector.java | 38 +++++++++++++++++++ .../src/mage/sets/MarchOfTheMachine.java | 1 + 2 files changed, 39 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/i/InfectedDefector.java diff --git a/Mage.Sets/src/mage/cards/i/InfectedDefector.java b/Mage.Sets/src/mage/cards/i/InfectedDefector.java new file mode 100644 index 0000000000..8f132a64bb --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/InfectedDefector.java @@ -0,0 +1,38 @@ +package mage.cards.i; + +import mage.MageInt; +import mage.abilities.common.DiesSourceTriggeredAbility; +import mage.abilities.effects.keyword.IncubateEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class InfectedDefector extends CardImpl { + + public InfectedDefector(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{W}"); + + this.subtype.add(SubType.PHYREXIAN); + this.subtype.add(SubType.KNIGHT); + this.power = new MageInt(4); + this.toughness = new MageInt(3); + + // When Infected Defector dies, incubate 3. + this.addAbility(new DiesSourceTriggeredAbility(new IncubateEffect(3))); + } + + private InfectedDefector(final InfectedDefector card) { + super(card); + } + + @Override + public InfectedDefector copy() { + return new InfectedDefector(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java index db047dee70..054cb78fcd 100644 --- a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java +++ b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java @@ -76,6 +76,7 @@ public final class MarchOfTheMachine extends ExpansionSet { cards.add(new SetCardInfo("Heliod, the Radiant Dawn", 17, Rarity.RARE, mage.cards.h.HeliodTheRadiantDawn.class)); cards.add(new SetCardInfo("Heliod, the Warped Eclipse", 17, Rarity.RARE, mage.cards.h.HeliodTheWarpedEclipse.class)); cards.add(new SetCardInfo("Ichor Drinker", 111, Rarity.COMMON, mage.cards.i.IchorDrinker.class)); + cards.add(new SetCardInfo("Infected Defector", 18, Rarity.COMMON, mage.cards.i.InfectedDefector.class)); cards.add(new SetCardInfo("Injector Crocodile", 329, Rarity.COMMON, mage.cards.i.InjectorCrocodile.class)); cards.add(new SetCardInfo("Inspired Charge", 19, Rarity.COMMON, mage.cards.i.InspiredCharge.class)); cards.add(new SetCardInfo("Interdisciplinary Mascot", 326, Rarity.RARE, mage.cards.i.InterdisciplinaryMascot.class));