mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Implemented Dovin's Dismissal
This commit is contained in:
parent
ad4f125969
commit
e7f90296e9
2 changed files with 50 additions and 0 deletions
49
Mage.Sets/src/mage/cards/d/DovinsDismissal.java
Normal file
49
Mage.Sets/src/mage/cards/d/DovinsDismissal.java
Normal file
|
@ -0,0 +1,49 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.abilities.effects.common.PutOnLibraryTargetEffect;
|
||||
import mage.abilities.effects.common.search.SearchLibraryGraveyardPutInHandEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.NamePredicate;
|
||||
import mage.filter.predicate.permanent.TappedPredicate;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DovinsDismissal extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("card named Dovin, Architect of Law");
|
||||
private static final FilterPermanent filter2 = new FilterCreaturePermanent("tapped creature");
|
||||
|
||||
static {
|
||||
filter.add(new NamePredicate("Dovin, Architect of Law"));
|
||||
filter2.add(new TappedPredicate());
|
||||
}
|
||||
|
||||
public DovinsDismissal(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{W}{U}");
|
||||
|
||||
// Put up to one target tapped creature on top of its owner's library. You may search your library and/or graveyard for a card named Dovin, Architect of Law, reveal it, and put it into your hand. If you search your library this way, shuffle it.
|
||||
this.getSpellAbility().addEffect(new PutOnLibraryTargetEffect(true));
|
||||
this.getSpellAbility().addEffect(
|
||||
new SearchLibraryGraveyardPutInHandEffect(filter, false, true)
|
||||
);
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(0, 1, filter2, false));
|
||||
}
|
||||
|
||||
private DovinsDismissal(final DovinsDismissal card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DovinsDismissal copy() {
|
||||
return new DovinsDismissal(this);
|
||||
}
|
||||
}
|
|
@ -73,6 +73,7 @@ public final class RavnicaAllegiance extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Domri, City Smasher", 269, Rarity.RARE, mage.cards.d.DomriCitySmasher.class));
|
||||
cards.add(new SetCardInfo("Dovin's Acuity", 168, Rarity.UNCOMMON, mage.cards.d.DovinsAcuity.class));
|
||||
cards.add(new SetCardInfo("Dovin's Automaton", 268, Rarity.COMMON, mage.cards.d.DovinsAutomaton.class));
|
||||
cards.add(new SetCardInfo("Dovin's Dismissal", 267, Rarity.RARE, mage.cards.d.DovinsDismissal.class));
|
||||
cards.add(new SetCardInfo("Dovin, Architect of Law", 265, Rarity.MYTHIC, mage.cards.d.DovinArchitectOfLaw.class));
|
||||
cards.add(new SetCardInfo("Dovin, Grand Arbiter", 167, Rarity.MYTHIC, mage.cards.d.DovinGrandArbiter.class));
|
||||
cards.add(new SetCardInfo("Drill Bit", 73, Rarity.UNCOMMON, mage.cards.d.DrillBit.class));
|
||||
|
|
Loading…
Reference in a new issue