From db23786bec76357f133a63782f0db9713326cb05 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 20 Jan 2023 17:33:28 -0500 Subject: [PATCH] [ONE] Implement Prosthetic Injector --- .../src/mage/cards/p/ProstheticInjector.java | 47 +++++++++++++++++++ .../src/mage/sets/PhyrexiaAllWillBeOne.java | 1 + 2 files changed, 48 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/p/ProstheticInjector.java diff --git a/Mage.Sets/src/mage/cards/p/ProstheticInjector.java b/Mage.Sets/src/mage/cards/p/ProstheticInjector.java new file mode 100644 index 0000000000..08ee3ef00b --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/ProstheticInjector.java @@ -0,0 +1,47 @@ +package mage.cards.p; + +import java.util.UUID; + +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.continuous.BoostEquippedEffect; +import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect; +import mage.abilities.keyword.EquipAbility; +import mage.abilities.keyword.ToxicAbility; +import mage.abilities.keyword.TrampleAbility; +import mage.constants.AttachmentType; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Zone; + +/** + * @author TheElk801 + */ +public final class ProstheticInjector extends CardImpl { + + public ProstheticInjector(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}"); + + this.subtype.add(SubType.EQUIPMENT); + + // Equipped creature gets +0/+2 and has toxic 1. + Ability ability = new SimpleStaticAbility(new BoostEquippedEffect(0, 2)); + ability.addEffect(new GainAbilityAttachedEffect( + new ToxicAbility(1), AttachmentType.EQUIPMENT + ).setText("and has toxic 1")); + + // Equip {1} + this.addAbility(new EquipAbility(1)); + } + + private ProstheticInjector(final ProstheticInjector card) { + super(card); + } + + @Override + public ProstheticInjector copy() { + return new ProstheticInjector(this); + } +} diff --git a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java index 7e1b479a94..2ff154b51d 100644 --- a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java +++ b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java @@ -66,6 +66,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet { cards.add(new SetCardInfo("Phyrexian Arena", 104, Rarity.RARE, mage.cards.p.PhyrexianArena.class)); cards.add(new SetCardInfo("Phyrexian Obliterator", 105, Rarity.MYTHIC, mage.cards.p.PhyrexianObliterator.class)); cards.add(new SetCardInfo("Plains", 272, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Prosthetic Injector", 239, Rarity.UNCOMMON, mage.cards.p.ProstheticInjector.class)); cards.add(new SetCardInfo("Razorverge Thicket", 257, Rarity.RARE, mage.cards.r.RazorvergeThicket.class)); cards.add(new SetCardInfo("Seachrome Coast", 258, Rarity.RARE, mage.cards.s.SeachromeCoast.class)); cards.add(new SetCardInfo("Serum Sovereign", 405, Rarity.RARE, mage.cards.s.SerumSovereign.class));