Implemented Sai, Master Thopterist

This commit is contained in:
Evan Kranzler 2018-06-20 16:40:50 -04:00
parent 341083fa60
commit e7d6ea0be5
2 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,69 @@
package mage.cards.s;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.common.SpellCastControllerTriggeredAbility;
import mage.abilities.costs.common.SacrificeTargetCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Zone;
import mage.filter.FilterSpell;
import mage.filter.common.FilterControlledArtifactPermanent;
import mage.filter.predicate.mageobject.CardTypePredicate;
import mage.game.permanent.token.ThopterColorlessToken;
import mage.target.common.TargetControlledPermanent;
/**
*
* @author TheElk801
*/
public final class SaiMasterThopterist extends CardImpl {
private static final FilterSpell filter = new FilterSpell("an artifact spell");
private static final FilterControlledArtifactPermanent filter2 = new FilterControlledArtifactPermanent("artifacts");
static {
filter.add(new CardTypePredicate(CardType.ARTIFACT));
}
public SaiMasterThopterist(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}");
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.ARTIFICER);
this.power = new MageInt(1);
this.toughness = new MageInt(4);
// Whenever you cast an artifact spell, create a 1/1 colorless Thopter artifact creature token with flying.
this.addAbility(new SpellCastControllerTriggeredAbility(new CreateTokenEffect(new ThopterColorlessToken()), filter, false));
// {1}{U}, Sacrifice two artifacts: Draw a card.
Ability ability = new SimpleActivatedAbility(
Zone.BATTLEFIELD,
new DrawCardSourceControllerEffect(1),
new ManaCostsImpl("{1}{U}")
);
ability.addCost(new SacrificeTargetCost(
new TargetControlledPermanent(2, 2, filter2, false)
));
this.addAbility(ability);
}
public SaiMasterThopterist(final SaiMasterThopterist card) {
super(card);
}
@Override
public SaiMasterThopterist copy() {
return new SaiMasterThopterist(this);
}
}

View file

@ -169,6 +169,7 @@ public final class CoreSet2019 extends ExpansionSet {
cards.add(new SetCardInfo("Rogue's Gloves", 243, Rarity.UNCOMMON, mage.cards.r.RoguesGloves.class));
cards.add(new SetCardInfo("Root Snare", 199, Rarity.COMMON, mage.cards.r.RootSnare.class));
cards.add(new SetCardInfo("Rustwing Falcon", 36, Rarity.COMMON, mage.cards.r.RustwingFalcon.class));
cards.add(new SetCardInfo("Sai, Master Thopterist", 69, Rarity.RARE, mage.cards.s.SaiMasterThopterist.class));
cards.add(new SetCardInfo("Salvager of Secrets", 70, Rarity.COMMON, mage.cards.s.SalvagerOfSecrets.class));
cards.add(new SetCardInfo("Sarkhan's Unsealing", 155, Rarity.RARE, mage.cards.s.SarkhansUnsealing.class));
cards.add(new SetCardInfo("Sarkhan's Whelp", 299, Rarity.UNCOMMON, mage.cards.s.SarkhansWhelp.class));