mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 12:49:39 -08:00
Redesign of SearchTargetGraveyardHandLibraryForCardNameAndExileEffect for reusablility.
This commit is contained in:
parent
3b83e37adf
commit
d2f1a98511
7 changed files with 239 additions and 186 deletions
|
|
@ -58,7 +58,7 @@ public class Eradicate extends CardImpl<Eradicate> {
|
|||
// Exile target nonblack creature. Search its controller's graveyard, hand, and library for all cards
|
||||
// with the same name as that creature and exile them. Then that player shuffles his or her library.
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
|
||||
this.getSpellAbility().addEffect(new ExileTargetAndSearchGraveyardHandLibraryEffect());
|
||||
this.getSpellAbility().addEffect(new ExileTargetAndSearchGraveyardHandLibraryEffect(false, "its controller's","all cards with the same name as that creature"));
|
||||
}
|
||||
|
||||
public Eradicate(final Eradicate card) {
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public class Scour extends CardImpl<Scour> {
|
|||
// Exile target enchantment.
|
||||
// Search its controller's graveyard, hand, and library for all cards with the same name as that enchantment and exile them. Then that player shuffles his or her library.
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(filter));
|
||||
this.getSpellAbility().addEffect(new ExileTargetAndSearchGraveyardHandLibraryEffect());
|
||||
this.getSpellAbility().addEffect(new ExileTargetAndSearchGraveyardHandLibraryEffect(false, "its controller's","all cards with the same name as that enchantment"));
|
||||
}
|
||||
|
||||
public Scour(final Scour card) {
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public class SowingSalt extends CardImpl<SowingSalt> {
|
|||
// Exile target nonbasic land. Search its controller's graveyard, hand, and library for all cards with
|
||||
// the same name as that land and exile them. Then that player shuffles his or her library.
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(filter));
|
||||
this.getSpellAbility().addEffect(new ExileTargetAndSearchGraveyardHandLibraryEffect());
|
||||
this.getSpellAbility().addEffect(new ExileTargetAndSearchGraveyardHandLibraryEffect(false, "its controller's","all cards with the same name as that land"));
|
||||
}
|
||||
|
||||
public SowingSalt(final SowingSalt card) {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public class Splinter extends CardImpl<Splinter> {
|
|||
// Exile target artifact. Search its controller's graveyard, hand, and library for all cards
|
||||
// with the same name as that artifact and exile them. Then that player shuffles his or her library.
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(filter));
|
||||
this.getSpellAbility().addEffect(new ExileTargetAndSearchGraveyardHandLibraryEffect());
|
||||
this.getSpellAbility().addEffect(new ExileTargetAndSearchGraveyardHandLibraryEffect(false, "its controller's","all cards with the same name as that artifact"));
|
||||
}
|
||||
|
||||
public Splinter(final Splinter card) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue