[ONC] Implement Monumental Corruption

This commit is contained in:
theelk801 2023-01-30 09:40:04 -05:00
parent 6f299a0cd2
commit b2b0a1df63
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,39 @@
package mage.cards.m;
import mage.abilities.dynamicvalue.common.ArtifactYouControlCount;
import mage.abilities.effects.common.DrawCardTargetEffect;
import mage.abilities.effects.common.LoseLifeTargetEffect;
import mage.abilities.hint.common.ArtifactYouControlHint;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.target.TargetPlayer;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class MonumentalCorruption extends CardImpl {
public MonumentalCorruption(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{B}{B}");
// Target player draws X cards an loses X life, where X is the number of artifacts you control.
this.getSpellAbility().addEffect(new DrawCardTargetEffect(ArtifactYouControlCount.instance)
.setText("target player draws X cards"));
this.getSpellAbility().addEffect(new LoseLifeTargetEffect(ArtifactYouControlCount.instance)
.setText("and loses X life, where X is the number of artifacts you control"));
this.getSpellAbility().addTarget(new TargetPlayer());
this.getSpellAbility().addHint(ArtifactYouControlHint.instance);
}
private MonumentalCorruption(final MonumentalCorruption card) {
super(card);
}
@Override
public MonumentalCorruption copy() {
return new MonumentalCorruption(this);
}
}

View file

@ -93,6 +93,7 @@ public final class PhyrexiaAllWillBeOneCommander extends ExpansionSet {
cards.add(new SetCardInfo("Midnight Haunting", 82, Rarity.UNCOMMON, mage.cards.m.MidnightHaunting.class));
cards.add(new SetCardInfo("Mind Stone", 137, Rarity.UNCOMMON, mage.cards.m.MindStone.class));
cards.add(new SetCardInfo("Moldervine Reclamation", 121, Rarity.UNCOMMON, mage.cards.m.MoldervineReclamation.class));
cards.add(new SetCardInfo("Monumental Corruption", 24, Rarity.RARE, mage.cards.m.MonumentalCorruption.class));
cards.add(new SetCardInfo("Mortify", 122, Rarity.UNCOMMON, mage.cards.m.Mortify.class));
cards.add(new SetCardInfo("Mycosynth Fiend", 109, Rarity.UNCOMMON, mage.cards.m.MycosynthFiend.class));
cards.add(new SetCardInfo("Myr Battlesphere", 138, Rarity.RARE, mage.cards.m.MyrBattlesphere.class));