From fd8b0d1f99128c4c05ba41ee71ff25abbaf4fab4 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 2 Sep 2024 11:26:25 -0400 Subject: [PATCH] [DSK] Implement Patched Plaything --- .../src/mage/cards/p/PatchedPlaything.java | 48 +++++++++++++++++++ .../src/mage/sets/DuskmournHouseOfHorror.java | 1 + .../src/main/java/mage/constants/SubType.java | 1 + 3 files changed, 50 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/p/PatchedPlaything.java diff --git a/Mage.Sets/src/mage/cards/p/PatchedPlaything.java b/Mage.Sets/src/mage/cards/p/PatchedPlaything.java new file mode 100644 index 00000000000..1b54ec214b1 --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/PatchedPlaything.java @@ -0,0 +1,48 @@ +package mage.cards.p; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldAbility; +import mage.abilities.condition.common.CastFromHandSourcePermanentCondition; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.keyword.DoubleStrikeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.watchers.common.CastFromHandWatcher; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class PatchedPlaything extends CardImpl { + + public PatchedPlaything(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{2}{W}"); + + this.subtype.add(SubType.TOY); + this.power = new MageInt(4); + this.toughness = new MageInt(3); + + // Double strike + this.addAbility(DoubleStrikeAbility.getInstance()); + + // Patched Plaything enters with two -1/-1 counters on it if you cast it from your hand. + this.addAbility(new EntersBattlefieldAbility( + new AddCountersSourceEffect(CounterType.M1M1.createInstance(2)), + CastFromHandSourcePermanentCondition.instance, null, + "with two -1/-1 counters on it if you cast it from your hand" + ), new CastFromHandWatcher()); + } + + private PatchedPlaything(final PatchedPlaything card) { + super(card); + } + + @Override + public PatchedPlaything copy() { + return new PatchedPlaything(this); + } +} diff --git a/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java b/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java index 2ce48f1e704..474c213b7af 100644 --- a/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java +++ b/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java @@ -38,6 +38,7 @@ public final class DuskmournHouseOfHorror extends ExpansionSet { cards.add(new SetCardInfo("Island", 273, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Leyline of Hope", 18, Rarity.RARE, mage.cards.l.LeylineOfHope.class)); cards.add(new SetCardInfo("Mountain", 275, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS)); + cards.add(new SetCardInfo("Patched Plaything", 24, Rarity.UNCOMMON, mage.cards.p.PatchedPlaything.class)); cards.add(new SetCardInfo("Peer Past the Veil", 226, Rarity.RARE, mage.cards.p.PeerPastTheVeil.class)); cards.add(new SetCardInfo("Plains", 272, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Razorkin Needlehead", 153, Rarity.RARE, mage.cards.r.RazorkinNeedlehead.class)); diff --git a/Mage/src/main/java/mage/constants/SubType.java b/Mage/src/main/java/mage/constants/SubType.java index d7ecbae173b..9190e31f95d 100644 --- a/Mage/src/main/java/mage/constants/SubType.java +++ b/Mage/src/main/java/mage/constants/SubType.java @@ -397,6 +397,7 @@ public enum SubType { THRULL("Thrull", SubTypeSet.CreatureType), TIEFLING("Tiefling", SubTypeSet.CreatureType), TIME_LORD("Time Lord", SubTypeSet.CreatureType), + TOY("Toy", SubTypeSet.CreatureType), TRANDOSHAN("Trandoshan", SubTypeSet.CreatureType, true), // Star Wars TREEFOLK("Treefolk", SubTypeSet.CreatureType), TRILOBITE("Trilobite", SubTypeSet.CreatureType),