Cleanup SearchLibraryPutOnLibraryEffect, part 2

This commit is contained in:
xenohedron 2023-05-13 23:04:45 -04:00
parent a4616bc7ee
commit 6de43dc06e
5 changed files with 4 additions and 9 deletions

View file

@ -30,7 +30,7 @@ public final class BibFortuna extends CardImpl {
this.toughness = new MageInt(1);
// When Bib Fortuna enters the battlefield search your library for a card then shuffle your library and put in on top. You lose 1 life.
Ability ability = new EntersBattlefieldTriggeredAbility(new SearchLibraryPutOnLibraryEffect(new TargetCardInLibrary()), false);
Ability ability = new EntersBattlefieldTriggeredAbility(new SearchLibraryPutOnLibraryEffect(new TargetCardInLibrary(), false), false);
ability.addEffect(new LoseLifeSourceControllerEffect(1));
this.addAbility(ability);

View file

@ -37,7 +37,7 @@ public final class BringerOfTheBlackDawn extends CardImpl {
// Trample
this.addAbility(TrampleAbility.getInstance());
// At the beginning of your upkeep, you may pay 2 life. If you do, search your library for a card, then shuffle your library and put that card on top of it.
Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new DoIfCostPaid(new SearchLibraryPutOnLibraryEffect(new TargetCardInLibrary()), new PayLifeCost(2)), TargetController.YOU, false);
Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new DoIfCostPaid(new SearchLibraryPutOnLibraryEffect(new TargetCardInLibrary(), false), new PayLifeCost(2)), TargetController.YOU, false);
this.addAbility(ability);
}

View file

@ -20,7 +20,7 @@ public final class ImperialSeal extends CardImpl {
// Search your library for a card, then shuffle your library and put that card on top of it. You lose 2 life.
this.getSpellAbility().addEffect(new SearchLibraryPutOnLibraryEffect(new TargetCardInLibrary()));
this.getSpellAbility().addEffect(new SearchLibraryPutOnLibraryEffect(new TargetCardInLibrary(), false));
this.getSpellAbility().addEffect(new LoseLifeSourceControllerEffect(2));
}

View file

@ -40,7 +40,7 @@ public final class LilianaVess extends CardImpl {
this.addAbility(ability1);
// -2: Search your library for a card, then shuffle your library and put that card on top of it.
this.addAbility(new LoyaltyAbility(new SearchLibraryPutOnLibraryEffect(new TargetCardInLibrary()), -2));
this.addAbility(new LoyaltyAbility(new SearchLibraryPutOnLibraryEffect(new TargetCardInLibrary(), false), -2));
// -8: Put all creature cards from all graveyards onto the battlefield under your control.
this.addAbility(new LoyaltyAbility(new LilianaVessEffect(), -8));

View file

@ -19,11 +19,6 @@ public class SearchLibraryPutOnLibraryEffect extends SearchEffect {
private boolean reveal;
public SearchLibraryPutOnLibraryEffect(TargetCardInLibrary target) {
this(target, false);
setText();
}
public SearchLibraryPutOnLibraryEffect(TargetCardInLibrary target, boolean reveal) {
super(target, Outcome.DrawCard);
this.reveal = reveal;