[MKM] Implement Underground Mortuary

This commit is contained in:
theelk801 2024-01-16 19:09:23 -05:00
parent d609824fb9
commit 101dac5f54
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,45 @@
package mage.cards.u;
import mage.abilities.common.EntersBattlefieldTappedAbility;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.keyword.SurveilEffect;
import mage.abilities.mana.BlackManaAbility;
import mage.abilities.mana.GreenManaAbility;
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 UndergroundMortuary extends CardImpl {
public UndergroundMortuary(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
this.subtype.add(SubType.SWAMP);
this.subtype.add(SubType.FOREST);
// ({T}: Add {B} or {G}.)
this.addAbility(new BlackManaAbility());
this.addAbility(new GreenManaAbility());
// Underground Mortuary enters the battlefield tapped.
this.addAbility(new EntersBattlefieldTappedAbility());
// When Underground Mortuary enters the battlefield, surveil 1.
this.addAbility(new EntersBattlefieldTriggeredAbility(new SurveilEffect(1, false)));
}
private UndergroundMortuary(final UndergroundMortuary card) {
super(card);
}
@Override
public UndergroundMortuary copy() {
return new UndergroundMortuary(this);
}
}

View file

@ -52,6 +52,7 @@ public final class MurdersAtKarlovManor extends ExpansionSet {
cards.add(new SetCardInfo("Thundering Falls", 269, Rarity.RARE, mage.cards.t.ThunderingFalls.class));
cards.add(new SetCardInfo("Topiary Panther", 179, Rarity.COMMON, mage.cards.t.TopiaryPanther.class));
cards.add(new SetCardInfo("Undercity Sewers", 270, Rarity.RARE, mage.cards.u.UndercitySewers.class));
cards.add(new SetCardInfo("Underground Mortuary", 271, Rarity.RARE, mage.cards.u.UndergroundMortuary.class));
cards.add(new SetCardInfo("Wojek Investigator", 36, Rarity.RARE, mage.cards.w.WojekInvestigator.class));
}
}