[DSK] Implement Commune with Evil

This commit is contained in:
theelk801 2024-09-06 21:36:00 -04:00
parent 3fe8cae306
commit b509e29c31
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,35 @@
package mage.cards.c;
import mage.abilities.effects.common.GainLifeEffect;
import mage.abilities.effects.common.LookLibraryAndPickControllerEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.PutCards;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class CommuneWithEvil extends CardImpl {
public CommuneWithEvil(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}");
// Look at the top four cards of your library. Put one of them into your hand and the rest into your graveyard. You gain 3 life.
this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect(
4, 1, PutCards.HAND, PutCards.GRAVEYARD
));
this.getSpellAbility().addEffect(new GainLifeEffect(3));
}
private CommuneWithEvil(final CommuneWithEvil card) {
super(card);
}
@Override
public CommuneWithEvil copy() {
return new CommuneWithEvil(this);
}
}

View file

@ -33,6 +33,7 @@ public final class DuskmournHouseOfHorror extends ExpansionSet {
cards.add(new SetCardInfo("Chainsaw", 128, Rarity.RARE, mage.cards.c.Chainsaw.class));
cards.add(new SetCardInfo("Clammy Prowler", 45, Rarity.COMMON, mage.cards.c.ClammyProwler.class));
cards.add(new SetCardInfo("Clockwork Percussionist", 130, Rarity.COMMON, mage.cards.c.ClockworkPercussionist.class));
cards.add(new SetCardInfo("Commune with Evil", 87, Rarity.UNCOMMON, mage.cards.c.CommuneWithEvil.class));
cards.add(new SetCardInfo("Cult Healer", 2, Rarity.COMMON, mage.cards.c.CultHealer.class));
cards.add(new SetCardInfo("Cursed Recording", 131, Rarity.RARE, mage.cards.c.CursedRecording.class));
cards.add(new SetCardInfo("Cursed Windbreaker", 47, Rarity.UNCOMMON, mage.cards.c.CursedWindbreaker.class));