mirror of
https://github.com/correl/mage.git
synced 2025-04-10 01:01:05 -09:00
Implementd Scaretiller
This commit is contained in:
parent
5207db7893
commit
79332f4594
2 changed files with 55 additions and 0 deletions
Mage.Sets/src/mage
54
Mage.Sets/src/mage/cards/s/Scaretiller.java
Normal file
54
Mage.Sets/src/mage/cards/s/Scaretiller.java
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
package mage.cards.s;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.Mode;
|
||||||
|
import mage.abilities.common.BecomesTappedSourceTriggeredAbility;
|
||||||
|
import mage.abilities.effects.common.PutCardFromHandOntoBattlefieldEffect;
|
||||||
|
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
|
import mage.filter.common.FilterLandCard;
|
||||||
|
import mage.target.common.TargetCardInYourGraveyard;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class Scaretiller extends CardImpl {
|
||||||
|
|
||||||
|
private static final FilterLandCard filter = new FilterLandCard("land card from your graveyard");
|
||||||
|
|
||||||
|
public Scaretiller(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{4}");
|
||||||
|
|
||||||
|
this.subtype.add(SubType.SCARECROW);
|
||||||
|
this.power = new MageInt(1);
|
||||||
|
this.toughness = new MageInt(4);
|
||||||
|
|
||||||
|
// Whenever Scaretiller becomes tapped, choose one —
|
||||||
|
// • You may put a land card from your hand onto the battlefield tapped.
|
||||||
|
Ability ability = new BecomesTappedSourceTriggeredAbility(new PutCardFromHandOntoBattlefieldEffect(
|
||||||
|
StaticFilters.FILTER_CARD_LAND_A, false, true
|
||||||
|
));
|
||||||
|
|
||||||
|
// • Return target land card from your graveyard to the battlefield tapped.
|
||||||
|
Mode mode = new Mode(new ReturnFromGraveyardToBattlefieldTargetEffect(true));
|
||||||
|
mode.addTarget(new TargetCardInYourGraveyard(filter));
|
||||||
|
ability.addMode(mode);
|
||||||
|
this.addAbility(ability);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Scaretiller(final Scaretiller card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Scaretiller copy() {
|
||||||
|
return new Scaretiller(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -29,6 +29,7 @@ public final class Commander2019Edition extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Kadena, Slinking Sorcerer", 45, Rarity.MYTHIC, mage.cards.k.KadenaSlinkingSorcerer.class));
|
cards.add(new SetCardInfo("Kadena, Slinking Sorcerer", 45, Rarity.MYTHIC, mage.cards.k.KadenaSlinkingSorcerer.class));
|
||||||
cards.add(new SetCardInfo("Leadership Vacuum", 9, Rarity.UNCOMMON, mage.cards.l.LeadershipVacuum.class));
|
cards.add(new SetCardInfo("Leadership Vacuum", 9, Rarity.UNCOMMON, mage.cards.l.LeadershipVacuum.class));
|
||||||
cards.add(new SetCardInfo("Sanctum of Eternity", 59, Rarity.RARE, mage.cards.s.SanctumOfEternity.class));
|
cards.add(new SetCardInfo("Sanctum of Eternity", 59, Rarity.RARE, mage.cards.s.SanctumOfEternity.class));
|
||||||
|
cards.add(new SetCardInfo("Scaretiller", 57, Rarity.COMMON, mage.cards.s.Scaretiller.class));
|
||||||
cards.add(new SetCardInfo("Seedborn Muse", 179, Rarity.RARE, mage.cards.s.SeedbornMuse.class));
|
cards.add(new SetCardInfo("Seedborn Muse", 179, Rarity.RARE, mage.cards.s.SeedbornMuse.class));
|
||||||
cards.add(new SetCardInfo("Sevinne's Reclamation", 5, Rarity.RARE, mage.cards.s.SevinnesReclamation.class));
|
cards.add(new SetCardInfo("Sevinne's Reclamation", 5, Rarity.RARE, mage.cards.s.SevinnesReclamation.class));
|
||||||
cards.add(new SetCardInfo("Sevinne, the Chronoclasm", 49, Rarity.MYTHIC, mage.cards.s.SevinneTheChronoclasm.class));
|
cards.add(new SetCardInfo("Sevinne, the Chronoclasm", 49, Rarity.MYTHIC, mage.cards.s.SevinneTheChronoclasm.class));
|
||||||
|
|
Loading…
Add table
Reference in a new issue