[MH3] Implement Muster the Departed

This commit is contained in:
theelk801 2024-05-30 13:26:27 -04:00
parent 1e116704e1
commit debd6bf931
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,43 @@
package mage.cards.m;
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.condition.common.MorbidCondition;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.PopulateEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.AbilityWord;
import mage.constants.CardType;
import mage.constants.TargetController;
import mage.game.permanent.token.SpiritWhiteToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class MusterTheDeparted extends CardImpl {
public MusterTheDeparted(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{W}");
// When Muster the Departed enters the battlefield, create a 1/1 white Spirit creature token with flying.
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new SpiritWhiteToken())));
// Morbid -- At the beginning of your end step, if a creature died this turn, populate.
this.addAbility(new BeginningOfEndStepTriggeredAbility(
new PopulateEffect(), TargetController.YOU,
MorbidCondition.instance, false
).setAbilityWord(AbilityWord.MORBID));
}
private MusterTheDeparted(final MusterTheDeparted card) {
super(card);
}
@Override
public MusterTheDeparted copy() {
return new MusterTheDeparted(this);
}
}

View file

@ -148,6 +148,7 @@ public final class ModernHorizons3 extends ExpansionSet {
cards.add(new SetCardInfo("Molten Gatekeeper", 128, Rarity.COMMON, mage.cards.m.MoltenGatekeeper.class));
cards.add(new SetCardInfo("Monstrous Vortex", 162, Rarity.UNCOMMON, mage.cards.m.MonstrousVortex.class));
cards.add(new SetCardInfo("Mountain", 307, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS));
cards.add(new SetCardInfo("Muster the Departed", 36, Rarity.UNCOMMON, mage.cards.m.MusterTheDeparted.class));
cards.add(new SetCardInfo("Nadier's Nightblade", 275, Rarity.UNCOMMON, mage.cards.n.NadiersNightblade.class));
cards.add(new SetCardInfo("Nadu, Winged Wisdom", 193, Rarity.RARE, mage.cards.n.NaduWingedWisdom.class));
cards.add(new SetCardInfo("Nesting Grounds", 302, Rarity.UNCOMMON, mage.cards.n.NestingGrounds.class));