mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
[M3C] Implement Spawnbed Protector
This commit is contained in:
parent
5d26d44cf0
commit
c3c2b0ebba
2 changed files with 56 additions and 0 deletions
55
Mage.Sets/src/mage/cards/s/SpawnbedProtector.java
Normal file
55
Mage.Sets/src/mage/cards/s/SpawnbedProtector.java
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.common.FilterCreatureCard;
|
||||
import mage.game.permanent.token.EldraziScionToken;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SpawnbedProtector extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCreatureCard("Eldrazi creature card from your graveyard");
|
||||
|
||||
static {
|
||||
filter.add(SubType.ELDRAZI.getPredicate());
|
||||
}
|
||||
|
||||
public SpawnbedProtector(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{7}");
|
||||
|
||||
this.subtype.add(SubType.ELDRAZI);
|
||||
this.power = new MageInt(6);
|
||||
this.toughness = new MageInt(8);
|
||||
|
||||
// At the beginning of your end step, return up to one target Eldrazi creature card from your graveyard to your hand. Create two 1/1 colorless Eldrazi Scion creature tokens with "Sacrifice this creature: Add {C}."
|
||||
Ability ability = new BeginningOfEndStepTriggeredAbility(
|
||||
new ReturnFromGraveyardToHandTargetEffect(), TargetController.YOU, false
|
||||
);
|
||||
ability.addEffect(new CreateTokenEffect(new EldraziScionToken(), 2));
|
||||
ability.addTarget(new TargetCardInYourGraveyard(0, 1, filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private SpawnbedProtector(final SpawnbedProtector card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SpawnbedProtector copy() {
|
||||
return new SpawnbedProtector(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -233,6 +233,7 @@ public final class ModernHorizons3Commander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Smoldering Marsh", 379, Rarity.RARE, mage.cards.s.SmolderingMarsh.class));
|
||||
cards.add(new SetCardInfo("Sol Ring", 305, Rarity.UNCOMMON, mage.cards.s.SolRing.class));
|
||||
cards.add(new SetCardInfo("Solemn Simulacrum", 306, Rarity.RARE, mage.cards.s.SolemnSimulacrum.class));
|
||||
cards.add(new SetCardInfo("Spawnbed Protector", 36, Rarity.RARE, mage.cards.s.SpawnbedProtector.class));
|
||||
cards.add(new SetCardInfo("Spawning Bed", 380, Rarity.UNCOMMON, mage.cards.s.SpawningBed.class));
|
||||
cards.add(new SetCardInfo("Stitcher's Supplier", 204, Rarity.UNCOMMON, mage.cards.s.StitchersSupplier.class));
|
||||
cards.add(new SetCardInfo("Stone Idol Generator", 77, Rarity.RARE, mage.cards.s.StoneIdolGenerator.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue