implement [MH3] Malevolent Rumble

This commit is contained in:
Susucre 2024-06-01 15:05:04 +02:00
parent 6efdce1e4e
commit e96c9fce56
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,37 @@
package mage.cards.m;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.RevealLibraryPickControllerEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.PutCards;
import mage.filter.StaticFilters;
import mage.game.permanent.token.EldraziSpawnToken;
import java.util.UUID;
/**
* @author Susucr
*/
public final class MalevolentRumble extends CardImpl {
public MalevolentRumble(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{G}");
// Reveal the top four cards of your library. You may put a permanent card from among them into your hand. Put the rest into your graveyard. Create a 0/1 colorless Eldrazi Spawn creature token with "Sacrifice this creature: Add {C}."
this.getSpellAbility().addEffect(new RevealLibraryPickControllerEffect(
4, 1, StaticFilters.FILTER_CARD_PERMANENT, PutCards.HAND, PutCards.GRAVEYARD
));
this.getSpellAbility().addEffect(new CreateTokenEffect(new EldraziSpawnToken()));
}
private MalevolentRumble(final MalevolentRumble card) {
super(card);
}
@Override
public MalevolentRumble copy() {
return new MalevolentRumble(this);
}
}

View file

@ -154,6 +154,7 @@ public final class ModernHorizons3 extends ExpansionSet {
cards.add(new SetCardInfo("Legion Leadership", 255, Rarity.UNCOMMON, mage.cards.l.LegionLeadership.class));
cards.add(new SetCardInfo("Lethal Throwdown", 99, Rarity.UNCOMMON, mage.cards.l.LethalThrowdown.class));
cards.add(new SetCardInfo("Lion Umbra", 160, Rarity.UNCOMMON, mage.cards.l.LionUmbra.class));
cards.add(new SetCardInfo("Malevolent Rumble", 161, Rarity.COMMON, mage.cards.m.MalevolentRumble.class));
cards.add(new SetCardInfo("Mandibular Kite", 34, Rarity.COMMON, mage.cards.m.MandibularKite.class));
cards.add(new SetCardInfo("Marionette Apprentice", 100, Rarity.UNCOMMON, mage.cards.m.MarionetteApprentice.class));
cards.add(new SetCardInfo("Meltdown", 282, Rarity.UNCOMMON, mage.cards.m.Meltdown.class));