[NEO] Implemented Leech Gauntlet

This commit is contained in:
Evan Kranzler 2022-01-29 10:17:34 -05:00
parent 5c9261d597
commit 37c7573acd
4 changed files with 93 additions and 0 deletions

View file

@ -0,0 +1,49 @@
package mage.cards.l;
import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
import mage.abilities.keyword.LifelinkAbility;
import mage.abilities.keyword.ReconfigureAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.AttachmentType;
import mage.constants.CardType;
import mage.constants.SubType;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class LeechGauntlet extends CardImpl {
public LeechGauntlet(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{1}{B}");
this.subtype.add(SubType.EQUIPMENT);
this.subtype.add(SubType.LEECH);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// Lifelink
this.addAbility(LifelinkAbility.getInstance());
// Equipped creature has lifelink.
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(
LifelinkAbility.getInstance(), AttachmentType.EQUIPMENT
)));
// Reconfigure {4}
this.addAbility(new ReconfigureAbility("{4}"));
}
private LeechGauntlet(final LeechGauntlet card) {
super(card);
}
@Override
public LeechGauntlet copy() {
return new LeechGauntlet(this);
}
}

View file

@ -4,11 +4,15 @@ import mage.cards.ExpansionSet;
import mage.constants.Rarity; import mage.constants.Rarity;
import mage.constants.SetType; import mage.constants.SetType;
import java.util.Arrays;
import java.util.List;
/** /**
* @author TheElk801 * @author TheElk801
*/ */
public final class KamigawaNeonDynasty extends ExpansionSet { public final class KamigawaNeonDynasty extends ExpansionSet {
private static final List<String> unfinished = Arrays.asList("Bronzeplate Boar", "Leech Gauntlet", "Lizard Blades", "Simian Sling", "The Reality Chip");
private static final KamigawaNeonDynasty instance = new KamigawaNeonDynasty(); private static final KamigawaNeonDynasty instance = new KamigawaNeonDynasty();
public static KamigawaNeonDynasty getInstance() { public static KamigawaNeonDynasty getInstance() {
@ -34,6 +38,7 @@ public final class KamigawaNeonDynasty extends ExpansionSet {
cards.add(new SetCardInfo("Island", 295, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Island", 295, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS));
cards.add(new SetCardInfo("Jukai Naturalist", 225, Rarity.UNCOMMON, mage.cards.j.JukaiNaturalist.class)); cards.add(new SetCardInfo("Jukai Naturalist", 225, Rarity.UNCOMMON, mage.cards.j.JukaiNaturalist.class));
cards.add(new SetCardInfo("Kaito Shizuki", 226, Rarity.MYTHIC, mage.cards.k.KaitoShizuki.class)); cards.add(new SetCardInfo("Kaito Shizuki", 226, Rarity.MYTHIC, mage.cards.k.KaitoShizuki.class));
cards.add(new SetCardInfo("Leech Gauntlet", 106, Rarity.UNCOMMON, mage.cards.l.LeechGauntlet.class));
cards.add(new SetCardInfo("Mountain", 299, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Mountain", 299, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS));
cards.add(new SetCardInfo("Nameless Conqueror", 162, Rarity.COMMON, mage.cards.n.NamelessConqueror.class)); cards.add(new SetCardInfo("Nameless Conqueror", 162, Rarity.COMMON, mage.cards.n.NamelessConqueror.class));
cards.add(new SetCardInfo("Plains", 293, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Plains", 293, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
@ -44,5 +49,7 @@ public final class KamigawaNeonDynasty extends ExpansionSet {
cards.add(new SetCardInfo("The Shattered States Era", 162, Rarity.COMMON, mage.cards.t.TheShatteredStatesEra.class)); cards.add(new SetCardInfo("The Shattered States Era", 162, Rarity.COMMON, mage.cards.t.TheShatteredStatesEra.class));
cards.add(new SetCardInfo("Unstoppable Ogre", 169, Rarity.COMMON, mage.cards.u.UnstoppableOgre.class)); cards.add(new SetCardInfo("Unstoppable Ogre", 169, Rarity.COMMON, mage.cards.u.UnstoppableOgre.class));
cards.add(new SetCardInfo("Vector Glider", 66, Rarity.COMMON, mage.cards.v.VectorGlider.class)); cards.add(new SetCardInfo("Vector Glider", 66, Rarity.COMMON, mage.cards.v.VectorGlider.class));
cards.removeIf(setCardInfo -> unfinished.contains(setCardInfo.getName())); // remove when mechanic is fully implemented
} }
} }

View file

@ -0,0 +1,36 @@
package mage.abilities.keyword;
import mage.abilities.ActivatedAbilityImpl;
import mage.constants.Zone;
/**
* @author TheElk801
*/
public class ReconfigureAbility extends ActivatedAbilityImpl {
private final String manaString;
public ReconfigureAbility(String manaString) {
super(Zone.BATTLEFIELD, null);
this.manaString = manaString;
// TODO: Implement this
}
private ReconfigureAbility(final ReconfigureAbility ability) {
super(ability);
this.manaString = ability.manaString;
}
@Override
public ReconfigureAbility copy() {
return new ReconfigureAbility(this);
}
@Override
public String getRule() {
return "Reconfigure " + manaString + " (" + manaString
+ ": Attach to target creature you control; " +
"or unattach from a creature. Reconfigure only as a sorcery. " +
"While attached, this isnt a creature.)";
}
}

View file

@ -88,6 +88,7 @@ Provoke|new|
Prowess|new| Prowess|new|
Reach|instance| Reach|instance|
Rebound|new| Rebound|new|
Reconfigure|manaString|
Renown|number| Renown|number|
Replicate|card, manaString| Replicate|card, manaString|
Riot|new| Riot|new|