Redesign of SearchTargetGraveyardHandLibraryForCardNameAndExileEffect for reusablility.

This commit is contained in:
LevelX2 2012-10-17 14:29:13 +02:00
parent 3b83e37adf
commit d2f1a98511
7 changed files with 239 additions and 186 deletions

View file

@ -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) {

View file

@ -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) {

View file

@ -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) {

View file

@ -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) {