[LTR] Implement Mithril Coat

This commit is contained in:
theelk801 2023-06-09 19:13:21 -04:00
parent 74f660dae0
commit 7143be4f01
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,56 @@
package mage.cards.m;
import mage.abilities.common.EntersBattlefieldAttachToTarget;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
import mage.abilities.keyword.EquipAbility;
import mage.abilities.keyword.FlashAbility;
import mage.abilities.keyword.IndestructibleAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.AttachmentType;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.filter.StaticFilters;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class MithrilCoat extends CardImpl {
public MithrilCoat(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.EQUIPMENT);
// Flash
this.addAbility(FlashAbility.getInstance());
// Indestructible
this.addAbility(IndestructibleAbility.getInstance());
// When Mithril Coat enters the battlefield, attach it to target legendary creature you control.
this.addAbility(new EntersBattlefieldAttachToTarget(StaticFilters.FILTER_CONTROLLED_CREATURE_LEGENDARY));
// Equipped creature has indestructible.
this.addAbility(new SimpleStaticAbility(new GainAbilityAttachedEffect(
IndestructibleAbility.getInstance(), AttachmentType.EQUIPMENT
)));
// Equip {3}
this.addAbility(new EquipAbility(3, false));
}
private MithrilCoat(final MithrilCoat card) {
super(card);
}
@Override
public MithrilCoat copy() {
return new MithrilCoat(this);
}
}

View file

@ -108,6 +108,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet {
cards.add(new SetCardInfo("Mines of Moria", 257, Rarity.RARE, mage.cards.m.MinesOfMoria.class));
cards.add(new SetCardInfo("Mirkwood Spider", 178, Rarity.COMMON, mage.cards.m.MirkwoodSpider.class));
cards.add(new SetCardInfo("Mirror of Galadriel", 244, Rarity.UNCOMMON, mage.cards.m.MirrorOfGaladriel.class));
cards.add(new SetCardInfo("Mithril Coat", 245, Rarity.RARE, mage.cards.m.MithrilCoat.class));
cards.add(new SetCardInfo("Morgul-Knife Wound", 98, Rarity.COMMON, mage.cards.m.MorgulKnifeWound.class));
cards.add(new SetCardInfo("Moria Marauder", 138, Rarity.RARE, mage.cards.m.MoriaMarauder.class));
cards.add(new SetCardInfo("Mount Doom", 258, Rarity.MYTHIC, mage.cards.m.MountDoom.class));