mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
[DMU] Implemented Meria, Scholar of Antiquity
This commit is contained in:
parent
7dc9985b86
commit
90d3f8e3f5
2 changed files with 67 additions and 0 deletions
66
Mage.Sets/src/mage/cards/m/MeriaScholarOfAntiquity.java
Normal file
66
Mage.Sets/src/mage/cards/m/MeriaScholarOfAntiquity.java
Normal file
|
@ -0,0 +1,66 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.Mana;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.TapTargetCost;
|
||||
import mage.abilities.effects.common.ExileTopXMayPlayUntilEndOfTurnEffect;
|
||||
import mage.abilities.mana.SimpleManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterControlledArtifactPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.permanent.TappedPredicate;
|
||||
import mage.filter.predicate.permanent.TokenPredicate;
|
||||
import mage.target.common.TargetControlledPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class MeriaScholarOfAntiquity extends CardImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter
|
||||
= new FilterControlledArtifactPermanent("untapped nontoken artifact you control");
|
||||
|
||||
static {
|
||||
filter.add(TappedPredicate.UNTAPPED);
|
||||
filter.add(TokenPredicate.FALSE);
|
||||
}
|
||||
|
||||
public MeriaScholarOfAntiquity(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}{G}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.ELF);
|
||||
this.subtype.add(SubType.ARTIFICER);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Tap an untapped nontoken artifact you control: Add {G}.
|
||||
this.addAbility(new SimpleManaAbility(
|
||||
Zone.BATTLEFIELD, Mana.GreenMana(1),
|
||||
new TapTargetCost(new TargetControlledPermanent(filter))
|
||||
));
|
||||
|
||||
// Tap two untapped nontoken artifacts you control: Exile the top card of your library. You may play it this turn.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new ExileTopXMayPlayUntilEndOfTurnEffect(1),
|
||||
new TapTargetCost(new TargetControlledPermanent(2, filter))
|
||||
));
|
||||
}
|
||||
|
||||
private MeriaScholarOfAntiquity(final MeriaScholarOfAntiquity card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MeriaScholarOfAntiquity copy() {
|
||||
return new MeriaScholarOfAntiquity(this);
|
||||
}
|
||||
}
|
|
@ -143,6 +143,7 @@ public final class DominariaUnited extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Love Song of Night and Day", 25, Rarity.UNCOMMON, mage.cards.l.LoveSongOfNightAndDay.class));
|
||||
cards.add(new SetCardInfo("Magnigoth Sentry", 172, Rarity.COMMON, mage.cards.m.MagnigothSentry.class));
|
||||
cards.add(new SetCardInfo("Meria's Outrider", 138, Rarity.COMMON, mage.cards.m.MeriasOutrider.class));
|
||||
cards.add(new SetCardInfo("Meria, Scholar of Antiquity", 206, Rarity.RARE, mage.cards.m.MeriaScholarOfAntiquity.class));
|
||||
cards.add(new SetCardInfo("Mesa Cavalier", 26, Rarity.COMMON, mage.cards.m.MesaCavalier.class));
|
||||
cards.add(new SetCardInfo("Meteorite", 235, Rarity.COMMON, mage.cards.m.Meteorite.class));
|
||||
cards.add(new SetCardInfo("Micromancer", 57, Rarity.UNCOMMON, mage.cards.m.Micromancer.class));
|
||||
|
|
Loading…
Reference in a new issue