mirror of
https://github.com/correl/mage.git
synced 2024-11-14 11:09:31 +00:00
SearchLibraryPutInHandEffect: simplify constructors
This commit is contained in:
parent
5ee6bed33a
commit
ae7266efba
148 changed files with 161 additions and 194 deletions
|
@ -51,7 +51,7 @@ public final class AlpineHoundmaster extends CardImpl {
|
|||
|
||||
// When Alpine Houndmaster enters the battlefield, you may search your library for a card named Alpine Watchdog and/or a card named Igneous Cur, reveal them, put them into your hand, then shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardWithDifferentNameInLibrary(0, 2, filter2), true, true
|
||||
new TargetCardWithDifferentNameInLibrary(0, 2, filter2), true
|
||||
).setText("search your library for a card named Alpine Watchdog and/or a card named Igneous Cur, reveal them, put them into your hand, then shuffle"), true));
|
||||
|
||||
// Whenever Alpine Houndmaster attacks, it gets +X/+0 until end of turn, where X is the number of other attacking creatures.
|
||||
|
|
|
@ -27,7 +27,7 @@ public final class ArmillarySphere extends CardImpl {
|
|||
|
||||
// {2}, {tap}, Sacrifice Armillary Sphere: Search your library for up to two basic land cards, reveal them, and put them into your hand. Then shuffle your library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0, 2, StaticFilters.FILTER_CARD_BASIC_LANDS), true, true),
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0, 2, StaticFilters.FILTER_CARD_BASIC_LANDS), true),
|
||||
new GenericManaCost(2));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
|
|
|
@ -87,6 +87,6 @@ class AssemblyHallEffect extends OneShotEffect {
|
|||
String nameToSearch = CardUtil.getCardNameForSameNameSearch(cardToReveal);
|
||||
FilterCard filterCard = new FilterCard("card named " + nameToSearch);
|
||||
filterCard.add(new NamePredicate(nameToSearch));
|
||||
return new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filterCard), true, true).apply(game, source);
|
||||
return new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filterCard), true).apply(game, source);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ public final class Avarax extends CardImpl {
|
|||
|
||||
// When Avarax enters the battlefield, you may search your library for a card named Avarax, reveal it, and put it into your hand. If you do, shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(1, filter), true, true
|
||||
new TargetCardInLibrary(1, filter), true
|
||||
), true));
|
||||
|
||||
// {1}{R}: Avarax gets +1/+0 until end of turn.
|
||||
|
|
|
@ -47,7 +47,7 @@ public final class AyarasOathsworn extends CardImpl {
|
|||
"search your library for a card, put it into your hand, then shuffle."
|
||||
);
|
||||
ability.addEffect(new ConditionalOneShotEffect(
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary()), condition2
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false), condition2
|
||||
));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ public final class BattalionFootSoldier extends CardImpl {
|
|||
|
||||
// When Battalion Foot Soldier enters the battlefield, you may search your library for any number of cards named Battalion Foot Soldier, reveal them, put them into your hand, then shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(0, Integer.MAX_VALUE, filter), true, true
|
||||
new TargetCardInLibrary(0, Integer.MAX_VALUE, filter), true
|
||||
), true));
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ public final class BeholdTheBeyond extends CardImpl {
|
|||
// Discard your hand. Search your library for three cards and put those cards into your hand. Then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new DiscardHandControllerEffect());
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(0, 3, new FilterCard("cards"));
|
||||
Effect effect = new SearchLibraryPutInHandEffect(target);
|
||||
Effect effect = new SearchLibraryPutInHandEffect(target, false);
|
||||
effect.setText("Search your library for three cards, put those cards into your hand, then shuffle");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ public final class BeseechTheQueen extends CardImpl {
|
|||
|
||||
// <i>({2B} can be paid with any two mana or with {B}. This card's converted mana cost is 6.)</i>
|
||||
// Search your library for a card with converted mana cost less than or equal to the number of lands you control, reveal it, and put it into your hand. Then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true));
|
||||
}
|
||||
|
||||
private BeseechTheQueen(final BeseechTheQueen card) {
|
||||
|
|
|
@ -43,7 +43,7 @@ public final class BloodSpeaker extends CardImpl {
|
|||
// At the beginning of your upkeep, you may sacrifice Blood Speaker. If you do, search your library for a Demon card, reveal that card, and put it into your hand. Then shuffle your library.
|
||||
Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD,
|
||||
new DoIfCostPaid(
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filterCard), true, true, "search your library for "),
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filterCard), true),
|
||||
new SacrificeSourceCost()
|
||||
),
|
||||
TargetController.YOU,
|
||||
|
|
|
@ -27,7 +27,7 @@ public final class BorderlandRanger extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Borderland Ranger enters the battlefield, you may search your library for a basic land card, reveal it, and put it into your hand. If you do, shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true), true));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true), true));
|
||||
}
|
||||
|
||||
private BorderlandRanger(final BorderlandRanger card) {
|
||||
|
|
|
@ -45,7 +45,7 @@ public final class BoseijuReachesSkyward extends CardImpl {
|
|||
this, SagaChapter.CHAPTER_I,
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(
|
||||
0, 2, filter
|
||||
), true, true)
|
||||
), true)
|
||||
);
|
||||
|
||||
// II — Put up to one target land card from your graveyard on top of your library.
|
||||
|
|
|
@ -44,7 +44,7 @@ public final class Bossk extends CardImpl {
|
|||
this.addAbility(new BosskTriggeredAbility());
|
||||
|
||||
// <i>Bounty</i> — Whenever a creature an opponent controls with a bounty counter on it dies, you may search your library for a basic land card, reveal it, and put it in to your hand. If you do, shuffle your library.
|
||||
this.addAbility(new BountyAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true), true));
|
||||
this.addAbility(new BountyAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true), true));
|
||||
}
|
||||
|
||||
private Bossk(final Bossk card) {
|
||||
|
|
|
@ -27,7 +27,7 @@ public final class BraidwoodSextant extends CardImpl {
|
|||
|
||||
// {2}, {tap}, Sacrifice Braidwood Sextant: Search your library for a basic land card, reveal that card, and put it into your hand. Then shuffle your library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true),
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true),
|
||||
new ManaCostsImpl<>("{2}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
|
|
|
@ -51,7 +51,7 @@ public final class CaptainPhasma extends CardImpl {
|
|||
new GainAbilityControlledEffect(ability, Duration.WhileOnBattlefield, filter, false)));
|
||||
|
||||
// {W}{U}{B}{R}{G}: Search your library for a Trooper creature card, reveal it, put it into your hand, then shuffle your library.
|
||||
this.addAbility(new SimpleActivatedAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filterCard), true, true), new ManaCostsImpl<>("{W}{U}{B}{R}{G}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filterCard), true), new ManaCostsImpl<>("{W}{U}{B}{R}{G}")));
|
||||
}
|
||||
|
||||
private CaptainPhasma(final CaptainPhasma card) {
|
||||
|
|
|
@ -37,7 +37,7 @@ public final class CaptainSisay extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// {tap}: Search your library for a legendary card, reveal that card, and put it into your hand. Then shuffle your library.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true), new TapSourceCost()));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true), new TapSourceCost()));
|
||||
}
|
||||
|
||||
private CaptainSisay(final CaptainSisay card) {
|
||||
|
|
|
@ -23,7 +23,7 @@ public final class Conflux extends CardImpl {
|
|||
|
||||
// Search your library for a white card, a blue card, a black card, a red card, and a green card. Reveal those cards and put them into your hand. Then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(
|
||||
new ConfluxTarget(), true, true
|
||||
new ConfluxTarget(), true
|
||||
).setText("search your library for a white card, a blue card, a black card, a red card, and a green card. " +
|
||||
"Reveal those cards, put them into your hand, then shuffle"));
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ public final class CovetedPrize extends CardImpl {
|
|||
).addHint(PartyCountHint.instance).setRuleAtTheTop(true));
|
||||
|
||||
// Search your library for a card, put it into your hand, then shuffle your library. If you have a full party, you may cast a spell with converted mana cost 4 or less from your hand without paying its mana cost.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary()));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false));
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new CastFromHandForFreeEffect(filter),
|
||||
FullPartyCondition.instance, "If you have a full party, " +
|
||||
|
|
|
@ -23,7 +23,7 @@ public final class DarkPetition extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{B}{B}");
|
||||
|
||||
// Search your library for a card and put that card into your hand. Then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary()));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false));
|
||||
|
||||
// <i>Spell mastery</i> — If there are two or more instant and/or sorcery cards in your graveyard, add {B}{B}{B}.
|
||||
Effect effect = new ConditionalOneShotEffect(new AddManaToManaPoolSourceControllerEffect(Mana.BlackMana(3)),
|
||||
|
|
|
@ -39,7 +39,7 @@ public final class DaruCavalier extends CardImpl {
|
|||
|
||||
// When Daru Cavalier enters the battlefield, you may search your library for a card named Daru Cavalier, reveal it, and put it into your hand. If you do, shuffle your library.
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(0, 1, filter);
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true, true), true));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true), true));
|
||||
}
|
||||
|
||||
private DaruCavalier(final DaruCavalier card) {
|
||||
|
|
|
@ -38,7 +38,7 @@ public final class DeadeyeQuartermaster extends CardImpl {
|
|||
|
||||
// When Deadeye Quartermaster enters the battlefield, you may search your library for an Equipment or a Vehicle card and put it into your hand. If you do, shuffle your library.
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(1, 1, filter);
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true, true), true));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true), true));
|
||||
}
|
||||
|
||||
private DeadeyeQuartermaster(final DeadeyeQuartermaster card) {
|
||||
|
|
|
@ -17,7 +17,7 @@ public final class DemonicTutor extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{B}");
|
||||
|
||||
// Search your library for a card and put that card into your hand. Then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary()));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false));
|
||||
}
|
||||
|
||||
private DemonicTutor(final DemonicTutor card) {
|
||||
|
|
|
@ -24,7 +24,7 @@ public final class DiabolicIntent extends CardImpl {
|
|||
this.getSpellAbility().addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
|
||||
|
||||
// Search your library for a card and put that card into your hand. Then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary()));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false));
|
||||
}
|
||||
|
||||
private DiabolicIntent(final DiabolicIntent card) {
|
||||
|
|
|
@ -19,7 +19,7 @@ public final class DiabolicTutor extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{B}{B}");
|
||||
|
||||
TargetCardInLibrary target = new TargetCardInLibrary();
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(target));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(target, false));
|
||||
}
|
||||
|
||||
private DiabolicTutor(final DiabolicTutor card) {
|
||||
|
|
|
@ -19,7 +19,7 @@ public final class DigUp extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{G}");
|
||||
|
||||
// Cleave {1}{B}{B}{G}
|
||||
this.addAbility(new CleaveAbility(this, new SearchLibraryPutInHandEffect(new TargetCardInLibrary()), "{1}{B}{B}{G}"));
|
||||
this.addAbility(new CleaveAbility(this, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false), "{1}{B}{B}{G}"));
|
||||
|
||||
// Search your library for a [basic land] card, [reveal it,] put it into your hand, then shuffle.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(
|
||||
|
|
|
@ -87,7 +87,7 @@ class DiscipleOfDeceitEffect extends OneShotEffect {
|
|||
String targetName = "card with mana value of " + card.getManaValue();
|
||||
FilterCard filter = new FilterCard(targetName);
|
||||
filter.add(new ManaValuePredicate(ComparisonType.EQUAL_TO, card.getManaValue()));
|
||||
return new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true).apply(game, source);
|
||||
return new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true).apply(game, source);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -42,7 +42,7 @@ public final class DistrictGuide extends CardImpl {
|
|||
// When District Guide enters the battlefield, you may search your library for a basic land card or Gate card, reveal it, put it into your hand, then shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(
|
||||
new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filter), true, true
|
||||
new TargetCardInLibrary(filter), true
|
||||
), true
|
||||
));
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ public final class DjeruWithEyesOpen extends CardImpl {
|
|||
this.addAbility(VigilanceAbility.getInstance());
|
||||
|
||||
// When Djeru, With Eyes Open enters the battlefield, you may search your library for a planeswalker card, reveal it, put it into your hand, then shuffle your library.
|
||||
Effect effect = new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0, 1, filter), true, true);
|
||||
Effect effect = new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0, 1, filter), true);
|
||||
effect.setText("you may search your library for a planeswalker card, reveal it, put it into your hand, then shuffle");
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(effect, true));
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ public final class DraconicMuralists extends CardImpl {
|
|||
|
||||
// When Draconic Muralists dies, you may search your library for a Dragon card, reveal it, put it into your hand, then shuffle.
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filter), true, true
|
||||
new TargetCardInLibrary(filter), true
|
||||
), true));
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ public final class EladamrisCall extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{G}{W}");
|
||||
|
||||
// Search your library for a creature card, reveal that card, and put it into your hand. Then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true));
|
||||
}
|
||||
|
||||
private EladamrisCall(final EladamrisCall card) {
|
||||
|
|
|
@ -41,7 +41,7 @@ public final class EmbermageGoblin extends CardImpl {
|
|||
|
||||
// When Embermage Goblin enters the battlefield, you may search your library for a card named Embermage Goblin, reveal it, and put it into your hand. If you do, shuffle your library.
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(1, 1, filter);
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true, true), true));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true), true));
|
||||
|
||||
// {tap}: Embermage Goblin deals 1 damage to any target.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost());
|
||||
|
|
|
@ -92,7 +92,7 @@ class UrzasHotTubEffect extends OneShotEffect {
|
|||
if (discardedCard != null) {
|
||||
FilterCard filter = new FilterCard();
|
||||
filter.add(new UrzasHotTubPredicate(discardedCard.getName()));
|
||||
return new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true).apply(game, source);
|
||||
return new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true).apply(game, source);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ public final class EvolutionCharm extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G}");
|
||||
|
||||
// Choose one - Search your library for a basic land card, reveal it, put it into your hand, then shuffle your library;
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0, 1, StaticFilters.FILTER_CARD_BASIC_LAND), true, true).setText("Search your library for a basic land card, reveal it, put it into your hand, then shuffle"));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0, 1, StaticFilters.FILTER_CARD_BASIC_LAND), true).setText("Search your library for a basic land card, reveal it, put it into your hand, then shuffle"));
|
||||
|
||||
// or return target creature card from your graveyard to your hand;
|
||||
Mode mode = new Mode(new ReturnFromGraveyardToHandTargetEffect());
|
||||
|
|
|
@ -30,7 +30,7 @@ public final class Farfinder extends CardImpl {
|
|||
|
||||
// When Farfinder etners the battlefield, you may search your library for a basic land card, reveal it, put it into your hand, then shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true
|
||||
new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true
|
||||
), true));
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ public final class FierceEmpath extends CardImpl {
|
|||
|
||||
// When Fierce Empath enters the battlefield, you may search your library for a creature card with converted mana cost 6 or greater, reveal it, put it into your hand, then shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filter), true, true)
|
||||
new TargetCardInLibrary(filter), true)
|
||||
.setText("search your library for a creature card with mana value 6 or greater, reveal it, put it into your hand, then shuffle"),
|
||||
true));
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public final class FlowerFlourish extends SplitCard {
|
|||
// Search your library for a basic Forest or Plains card, reveal it, put it into your hand, then shuffle your library.
|
||||
this.getLeftHalfCard().getSpellAbility().addEffect(
|
||||
new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filter), true, true
|
||||
new TargetCardInLibrary(filter), true
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ public final class FromBeyond extends CardImpl {
|
|||
|
||||
// {1}{G}, Sacrifice From Beyond: Search your library for an Eldrazi card, reveal it, put it into your hand, then shuffle your library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true),
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true),
|
||||
new ManaCostsImpl<>("{1}{G}"));
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -65,7 +65,7 @@ public final class FrostpyreArcanist extends CardImpl {
|
|||
|
||||
// When Frostpyre Arcanist enters the battlefield, search your library for an instant or sorcery card with the same name as a card in your graveyard, reveal it, put it into your hand, then shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filter2), true, true
|
||||
new TargetCardInLibrary(filter2), true
|
||||
)));
|
||||
}
|
||||
|
||||
|
@ -95,4 +95,4 @@ enum FrostpyreArcanistPredicate implements ObjectSourcePlayerPredicate<Card> {
|
|||
.map(MageObject::getName)
|
||||
.anyMatch(input.getObject().getName()::equals);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ public final class Gamble extends CardImpl {
|
|||
|
||||
|
||||
// Search your library for a card, put that card into your hand, discard a card at random, then shuffle your library.
|
||||
Effect effect = new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false, true);
|
||||
Effect effect = new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false);
|
||||
effect.setText("Search your library for a card, put that card into your hand");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
effect = new DiscardControllerEffect(1, true);
|
||||
|
|
|
@ -49,7 +49,7 @@ public final class GarrukTheVeilCursed extends CardImpl {
|
|||
this.addAbility(new LoyaltyAbility(new DoIfCostPaid(
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(
|
||||
StaticFilters.FILTER_CARD_CREATURE_A
|
||||
), true, true),
|
||||
), true),
|
||||
null,
|
||||
new SacrificeTargetCost(new TargetControlledPermanent(
|
||||
StaticFilters.FILTER_CONTROLLED_CREATURE_SHORT_TEXT
|
||||
|
|
|
@ -45,7 +45,7 @@ public final class GatecreeperVine extends CardImpl {
|
|||
|
||||
// When Gatecreeper Vine enters the battlefield, you may search your library for a basic land card or a Gate card, reveal it, put it into your hand, then shuffle your library.
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true, true), true));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true), true));
|
||||
}
|
||||
|
||||
private GatecreeperVine(final GatecreeperVine card) {
|
||||
|
|
|
@ -34,7 +34,7 @@ public final class GatheringThrong extends CardImpl {
|
|||
|
||||
// When Gathering Throng enters the battlefield, you may search your library for any number of cards named Gathering Throng, reveal them, put them into your hand, then shuffle.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(0, Integer.MAX_VALUE, filter), true, true
|
||||
new TargetCardInLibrary(0, Integer.MAX_VALUE, filter), true
|
||||
), true));
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ public final class GeneralTazri extends CardImpl {
|
|||
|
||||
// When General Tazri enters the battlefield, you may search your library for an Ally creature card, reveal it, put it into your hand, then shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filter), true, true), true));
|
||||
new TargetCardInLibrary(filter), true), true));
|
||||
// {W}{U}{B}{R}{G}: Ally creatures you control get +X/+X until end of turn, where X is the number of colors among those creatures.
|
||||
DynamicValue xValue = new GeneralTazriColorCount();
|
||||
BoostControlledEffect effect = new BoostControlledEffect(xValue, xValue, Duration.EndOfTurn, new FilterCreaturePermanent(SubType.ALLY, "Ally creatures"), false);
|
||||
|
|
|
@ -33,7 +33,7 @@ public final class Greenseeker extends CardImpl {
|
|||
|
||||
// {G}, {tap}, Discard a card: Search your library for a basic land card, reveal it, and put it into your hand. Then shuffle your library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(1, 1, StaticFilters.FILTER_CARD_BASIC_LAND), true, true),
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(1, 1, StaticFilters.FILTER_CARD_BASIC_LAND), true),
|
||||
new ManaCostsImpl<>("{G}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new DiscardCardCost());
|
||||
|
|
|
@ -18,7 +18,7 @@ public final class GrimTutor extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{B}{B}");
|
||||
|
||||
// Search your library for a card and put that card into your hand, then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary()));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false));
|
||||
|
||||
// You lose 3 life.
|
||||
this.getSpellAbility().addEffect(new LoseLifeSourceControllerEffect(3));
|
||||
|
|
|
@ -42,7 +42,7 @@ public final class Grozoth extends CardImpl {
|
|||
|
||||
// When Grozoth enters the battlefield, you may search your library for any number of cards that have converted mana cost 9, reveal them, and put them into your hand. If you do, shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(0, Integer.MAX_VALUE, filter), true, true
|
||||
new TargetCardInLibrary(0, Integer.MAX_VALUE, filter), true
|
||||
), true));
|
||||
|
||||
// {4}: Grozoth loses defender until end of turn.
|
||||
|
|
|
@ -34,7 +34,7 @@ public final class HeliodsPilgrim extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Heliod's Pilgrim enters the battlefield, you may search your library for an Aura card, reveal it, put it into your hand, then shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true), true));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true), true));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ public final class HerdMigration extends CardImpl {
|
|||
Ability ability = new SimpleActivatedAbility(
|
||||
Zone.HAND,
|
||||
new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND_A), true, true
|
||||
new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND_A), true
|
||||
), new ManaCostsImpl<>("{1}{G}")
|
||||
);
|
||||
ability.addCost(new DiscardSourceCost());
|
||||
|
|
|
@ -7,7 +7,6 @@ import mage.abilities.Ability;
|
|||
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.combat.CantBeBlockedTargetEffect;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
|
||||
import mage.abilities.keyword.NinjutsuAbility;
|
||||
|
@ -49,7 +48,7 @@ public final class HigureTheStillWind extends CardImpl {
|
|||
this.addAbility(new NinjutsuAbility("{2}{U}{U}"));
|
||||
|
||||
// Whenever Higure, the Still Wind deals combat damage to a player, you may search your library for a Ninja card, reveal it, and put it into your hand. If you do, shuffle your library.
|
||||
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, false), true));
|
||||
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true), true));
|
||||
|
||||
// {2}: Target Ninja creature can't be blocked this turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(), new GenericManaCost(2));
|
||||
|
|
|
@ -33,7 +33,7 @@ public final class HowlingWolf extends CardImpl {
|
|||
|
||||
// When Howling Wolf enters the battlefield, you may search your library for up to three cards named Howling Wolf, reveal them, and put them into your hand. If you do, shuffle your library.
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(0, 3, filter);
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true, true), true));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true), true));
|
||||
}
|
||||
|
||||
private HowlingWolf(final HowlingWolf card) {
|
||||
|
|
|
@ -21,7 +21,7 @@ public final class IllicitShipment extends CardImpl {
|
|||
this.addAbility(new CasualtyAbility(3));
|
||||
|
||||
// Search your library for a card, put that card into your hand, then shuffle.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary()));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false));
|
||||
}
|
||||
|
||||
private IllicitShipment(final IllicitShipment card) {
|
||||
|
|
|
@ -35,7 +35,7 @@ public final class ImperialHellkite extends CardImpl {
|
|||
this.addAbility(new MorphAbility(new ManaCostsImpl<>("{6}{R}{R}")));
|
||||
|
||||
// When Imperial Hellkite is turned face up, you may search your library for a Dragon card, reveal it, and put it into your hand. If you do, shuffle your library.
|
||||
Effect effect = new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0, 1, new FilterBySubtypeCard(SubType.DRAGON)), true, true);
|
||||
Effect effect = new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0, 1, new FilterBySubtypeCard(SubType.DRAGON)), true);
|
||||
effect.setText("you may search your library for a Dragon card, reveal it, and put it into your hand. If you do, shuffle");
|
||||
this.addAbility(new TurnedFaceUpSourceTriggeredAbility(effect));
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ public final class ImperialRecruiter extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Imperial Recruiter enters the battlefield, search your library for a creature card with power 2 or less, reveal it, and put it into your hand. Then shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true)));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true)));
|
||||
}
|
||||
|
||||
private ImperialRecruiter(final ImperialRecruiter card) {
|
||||
|
|
|
@ -9,7 +9,6 @@ import mage.abilities.keyword.FlashbackAbility;
|
|||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.TimingRule;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
|
@ -28,8 +27,8 @@ public final class IncreasingAmbition extends CardImpl {
|
|||
|
||||
// Search your library for a card and put that card into your hand. If this spell was cast from a graveyard, instead search your library for two cards and put those cards into your hand. Then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(2, StaticFilters.FILTER_CARD)),
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary()),
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(2, StaticFilters.FILTER_CARD), false),
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false),
|
||||
IncreasingAmbitionCondition.instance, "Search your library for a card " +
|
||||
"and put that card into your hand. If this spell was cast from a graveyard, " +
|
||||
"instead search your library for two cards and put those cards into your hand. " +
|
||||
|
|
|
@ -55,7 +55,7 @@ public final class InfectiousBloodlust extends CardImpl {
|
|||
|
||||
// When enchanted creature dies, you may search your library for a card named Infectious Bloodlust, reveal it, put it into your hand, then shuffle your library.
|
||||
this.addAbility(new DiesAttachedTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filter), true, true
|
||||
new TargetCardInLibrary(filter), true
|
||||
), "enchanted creature", true));
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ public final class InfernalTutor extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new InfernalTutorEffect());
|
||||
// Hellbent - If you have no cards in hand, instead search your library for a card, put it into your hand, then shuffle your library.
|
||||
Effect effect = new ConditionalOneShotEffect(
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD), false, true),
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD), false),
|
||||
HellbentCondition.instance,
|
||||
"<br/><br/><i>Hellbent</i> — If you have no cards in hand, instead search your library for a card, put it into your hand, then shuffle");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
|
@ -95,7 +95,7 @@ class InfernalTutorEffect extends OneShotEffect {
|
|||
} else {
|
||||
filterCard = new FilterCard();
|
||||
}
|
||||
return new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filterCard), true, true).apply(game, source);
|
||||
return new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filterCard), true).apply(game, source);
|
||||
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -40,7 +40,7 @@ public final class InvasionOfTheros extends CardImpl {
|
|||
|
||||
// When Invasion of Theros enters the battlefield, search your library for an Aura, God, or Demigod card, reveal it, put it into your hand, then shuffle.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true)
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true)
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ class IsperiaTheInscrutableEffect extends OneShotEffect {
|
|||
player.revealCards(player.getLogName() + " hand", player.getHand(), game, true);
|
||||
for (Card card : player.getHand().getCards(game)) {
|
||||
if (CardUtil.haveSameNames(card, cardName, game)) {
|
||||
return new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true).apply(game, source);
|
||||
return new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true).apply(game, source);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class IthorianInitiate extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Ithorian Initiate enters the battlefield, you may search your library for a basic land, reveal it, and put it into your hand. If you do shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true), true));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true), true));
|
||||
|
||||
// Meditate {1}{G}
|
||||
this.addAbility(new MeditateAbility(new ManaCostsImpl<>("{1}{G}")));
|
||||
|
|
|
@ -30,7 +30,7 @@ public final class JohnnyComboPlayer extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// {4}: Search your library for a card, put that card into your hand, then shuffle your library.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(new FilterCard("a card")), false, true), new ManaCostsImpl<>("{4}")));
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(new FilterCard("a card")), false), new ManaCostsImpl<>("{4}")));
|
||||
}
|
||||
|
||||
private JohnnyComboPlayer(final JohnnyComboPlayer card) {
|
||||
|
|
|
@ -32,7 +32,7 @@ public final class KrosanTusker extends CardImpl {
|
|||
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}{G}")));
|
||||
// When you cycle Krosan Tusker, you may search your library for a basic land card, reveal that card, put it into your hand, then shuffle your library.
|
||||
this.addAbility(new CycleTriggeredAbility(
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true),
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true),
|
||||
true));
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ public final class LagomosHandOfHatred extends CardImpl {
|
|||
// {T}: Search your library for a card, put it into your hand, then shuffle. Activate only if five or more creatures died this turn.
|
||||
this.addAbility(new ConditionalActivatedAbility(
|
||||
Zone.BATTLEFIELD,
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary()),
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false),
|
||||
new TapSourceCost(),
|
||||
LagomosHandOfHatredCondition.instance
|
||||
));
|
||||
|
|
|
@ -38,7 +38,7 @@ public final class LandGrant extends CardImpl {
|
|||
"If you have no land cards in hand, you may reveal your hand rather than pay this spell's mana cost."));
|
||||
|
||||
// Search your library for a Forest card, reveal that card, and put it into your hand. Then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true));
|
||||
}
|
||||
|
||||
private LandGrant(final LandGrant card) {
|
||||
|
|
|
@ -25,7 +25,7 @@ public final class LandTax extends CardImpl {
|
|||
|
||||
// At the beginning of your upkeep, if an opponent controls more lands than you, you may search your library for up to three basic land cards, reveal them, and put them into your hand. If you do, shuffle your library.
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
|
||||
new BeginningOfUpkeepTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0, 3, StaticFilters.FILTER_CARD_BASIC_LAND), true, true), TargetController.YOU, true),
|
||||
new BeginningOfUpkeepTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0, 3, StaticFilters.FILTER_CARD_BASIC_LAND), true), TargetController.YOU, true),
|
||||
new OpponentControlsMoreCondition(StaticFilters.FILTER_LANDS),
|
||||
"At the beginning of your upkeep, if an opponent controls more lands than you, you may search your library for up to three basic land cards, reveal them, put them into your hand, then shuffle."
|
||||
));
|
||||
|
|
|
@ -36,7 +36,7 @@ public final class LegionConquistador extends CardImpl {
|
|||
|
||||
// When Legion Conquistador enters the battlefield, you may search your library for any number of cards named Legion Conquistador, reveal them, put them into your hand, then shuffle your library
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(0, Integer.MAX_VALUE, filter);
|
||||
Effect effect = new SearchLibraryPutInHandEffect(target, true, true);
|
||||
Effect effect = new SearchLibraryPutInHandEffect(target, true);
|
||||
effect.setText("you may search your library for any number of cards named Legion Conquistador, reveal them, put them into your hand, then shuffle");
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(effect, true));
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ public final class LibraryOfLatNam extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new AtTheBeginOfNextUpkeepDelayedTriggeredAbility(new DrawCardSourceControllerEffect(3).setText("you draw three cards")), false));
|
||||
|
||||
// or you search your library for a card, put that card into your hand, then shuffle your library.
|
||||
this.getSpellAbility().addMode(new Mode(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false, true).setText("you search your library for a card, put that card into your hand, then shuffle")));
|
||||
this.getSpellAbility().addMode(new Mode(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false).setText("you search your library for a card, put that card into your hand, then shuffle")));
|
||||
}
|
||||
|
||||
private LibraryOfLatNam(final LibraryOfLatNam card) {
|
||||
|
|
|
@ -37,7 +37,7 @@ public final class LilianasShade extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Liliana's Shade enters the battlefield, you may search your library for a Swamp card, reveal it, put it into your hand, then shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true), true));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true), true));
|
||||
// {B}: Liliana's Shade gets +1/+1 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl<>("{B}")));
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ public final class MastermindsAcquisition extends CardImpl {
|
|||
|
||||
// Choose one -
|
||||
// Search your library for a card and put that card into your hand. Then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary()));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false));
|
||||
|
||||
// Put a card you own from outside the game into your hand.
|
||||
Mode mode = new Mode(new WishEffect().setText("put a card you own from outside the game into your hand"));
|
||||
|
|
|
@ -37,7 +37,7 @@ public final class Micromancer extends CardImpl {
|
|||
|
||||
// When Micromancer enters the battlefield, you may search your library for an instant or sorcery card with mana value 1, reveal it, put it into your hand, then shuffle.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filter), true, true
|
||||
new TargetCardInLibrary(filter), true
|
||||
), true));
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ public final class MoonsilverKey extends CardImpl {
|
|||
|
||||
// {1}, {T}, Sacrifice Moonsilver Key: Search your library for an artifact card with a mana ability or a basic land card, reveal it, put it into your hand, then shuffle.
|
||||
Ability ability = new SimpleActivatedAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filter), true, true
|
||||
new TargetCardInLibrary(filter), true
|
||||
), new GenericManaCost(1));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
|
@ -66,4 +66,4 @@ enum MoonsilverKeyPredicate implements Predicate<Card> {
|
|||
.stream()
|
||||
.anyMatch(ManaAbility.class::isInstance);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ public final class MycosynthWellspring extends CardImpl {
|
|||
// When Mycosynth Wellspring enters the battlefield or is put into a graveyard from the battlefield,
|
||||
// you may search your library for a basic land card, reveal it, put it into your hand, then shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldOrDiesSourceTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true
|
||||
new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true
|
||||
), true, false));
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ public final class MyrKinsmith extends CardImpl {
|
|||
|
||||
// When Myr Kinsmith enters the battlefield, you may search your library for a Myr card, reveal it, put it into your hand, then shuffle.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filter), true, true
|
||||
new TargetCardInLibrary(filter), true
|
||||
), true));
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ import mage.abilities.keyword.FlashbackAbility;
|
|||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.TimingRule;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||
|
@ -35,7 +34,7 @@ public final class MysticalTeachings extends CardImpl {
|
|||
|
||||
|
||||
// Search your library for an instant card or a card with flash, reveal it, and put it into your hand. Then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true));
|
||||
// Flashback {5}{B}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{5}{B}")));
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public final class NestingWurm extends CardImpl {
|
|||
|
||||
// When Nesting Wurm enters the battlefield, you may search your library for up to three cards named Nesting Wurm, reveal them, and put them into your hand. If you do, shuffle your library.
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(0, 3, filter);
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true, true), true));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true), true));
|
||||
}
|
||||
|
||||
private NestingWurm(final NestingWurm card) {
|
||||
|
|
|
@ -41,7 +41,7 @@ public final class NissaVastwoodSeer extends CardImpl {
|
|||
this.secondSideCardClazz = mage.cards.n.NissaSageAnimist.class;
|
||||
|
||||
// When Nissa, Vastwood Seer enters the battlefield, you may search your library for a basic Forest card, reveal it, put it into your hand, then shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true), true));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true), true));
|
||||
|
||||
// Whenever a land enters the battlefield under your control, if you control seven or more lands, exile Nissa, then return her to the battlefield transformed under her owner's control.
|
||||
this.addAbility(new TransformAbility());
|
||||
|
|
|
@ -39,10 +39,10 @@ public final class NissasTriumph extends CardImpl {
|
|||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(
|
||||
0, 3, StaticFilters.FILTER_CARD_LAND
|
||||
), true, true),
|
||||
), true),
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(
|
||||
0, 2, filter
|
||||
), true, true),
|
||||
), true),
|
||||
new PermanentsOnTheBattlefieldCondition(filter2),
|
||||
"Search your library for up to two basic Forest cards. If you control a Nissa planeswalker, " +
|
||||
"instead search your library for up to three land cards. " +
|
||||
|
|
|
@ -79,6 +79,6 @@ class NyleasInterventionEffect extends OneShotEffect {
|
|||
int xValue = source.getManaCostsToPay().getX();
|
||||
return new SearchLibraryPutInHandEffect(new TargetCardInLibrary(
|
||||
0, xValue, StaticFilters.FILTER_CARD_LAND
|
||||
), true, true).apply(game, source);
|
||||
), true).apply(game, source);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ public final class OpenTheArmory extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{W}");
|
||||
|
||||
// Search your library for an Aura or Equipment card, reveal it, and put it into your hand. Then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(1, 1, auraOrEquipmentTarget), true, true));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(1, 1, auraOrEquipmentTarget), true));
|
||||
}
|
||||
|
||||
private OpenTheArmory(final OpenTheArmory card) {
|
||||
|
@ -39,4 +39,4 @@ public final class OpenTheArmory extends CardImpl {
|
|||
public OpenTheArmory copy() {
|
||||
return new OpenTheArmory(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ class RegularExpression extends OneShotEffect {
|
|||
= new FilterCard("a creature card with the same name as another creature you control");
|
||||
filter.add(Predicates.or(predicates));
|
||||
return new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filter), true, true
|
||||
new TargetCardInLibrary(filter), true
|
||||
).apply(game, source);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public final class PilgrimOfTheAges extends CardImpl {
|
|||
|
||||
// When Pilgrim of the Ages enters the battlefield, you may search your library for a basic Plains card, reveal it, put it into your hand, then shuffle.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filter), true, true
|
||||
new TargetCardInLibrary(filter), true
|
||||
), true));
|
||||
|
||||
// {6}: Return Pilgrim of the Ages from your graveyard to your hand.
|
||||
|
|
|
@ -23,7 +23,7 @@ public final class PlanarPortal extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{6}");
|
||||
|
||||
// {6}, {tap}: Search your library for a card and put that card into your hand. Then shuffle your library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false, true), new ManaCostsImpl<>("{6}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false), new ManaCostsImpl<>("{6}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ public final class PleaForGuidance extends CardImpl {
|
|||
|
||||
|
||||
// Search your library for up to two enchantment cards, reveal them, and put them into your hand. Then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0,2, filter), true, true));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0,2, filter), true));
|
||||
}
|
||||
|
||||
private PleaForGuidance(final PleaForGuidance card) {
|
||||
|
|
|
@ -52,7 +52,7 @@ public final class PriestOfTheWakeningSun extends CardImpl {
|
|||
|
||||
// {3}{W}{W}, Sacrifice Priest of the Wakening Sun: Search your library for a Dinosaur card, reveal it, put it into your hand, then shuffle your library.
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
||||
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(target), true, true), new ManaCostsImpl<>("{3}{W}{W}"));
|
||||
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(target), true), new ManaCostsImpl<>("{3}{W}{W}"));
|
||||
ability2.addCost(new SacrificeSourceCost());
|
||||
this.addAbility(ability2);
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ public final class PrimalCommand extends CardImpl {
|
|||
mode.addTarget(new TargetPlayer());
|
||||
this.getSpellAbility().getModes().addMode(mode);
|
||||
// or search your library for a creature card, reveal it, put it into your hand, then shuffle your library.
|
||||
mode = new Mode(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_CREATURE), true, true));
|
||||
mode = new Mode(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_CREATURE), true));
|
||||
this.getSpellAbility().getModes().addMode(mode);
|
||||
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ public final class ProfaneTutor extends CardImpl {
|
|||
this.addAbility(new SuspendAbility(2, new ManaCostsImpl<>("{1}{B}"), this));
|
||||
|
||||
// Search your library for a card, put that card into your hand, then shuffle.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary()));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false));
|
||||
}
|
||||
|
||||
private ProfaneTutor(final ProfaneTutor card) {
|
||||
|
|
|
@ -40,7 +40,7 @@ public final class RangerOfEos extends CardImpl {
|
|||
// When Ranger of Eos enters the battlefield, you may search your library for up to two creature cards with converted mana cost 1 or less,
|
||||
// reveal them, and put them into your hand. If you do, shuffle your library.
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(0, 2, filter);
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true, true), true));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true), true));
|
||||
}
|
||||
|
||||
private RangerOfEos(final RangerOfEos card) {
|
||||
|
|
|
@ -39,7 +39,7 @@ public final class Ratcatcher extends CardImpl {
|
|||
|
||||
// At the beginning of your upkeep, you may search your library for a Rat card, reveal it, and put it into your hand. If you do, shuffle your library.
|
||||
TargetCardInLibrary targetCard = new TargetCardInLibrary(1, 1, filter);
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(targetCard, true, true), TargetController.YOU, true));
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(targetCard, true), TargetController.YOU, true));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ public final class RazakethTheFoulblooded extends CardImpl {
|
|||
this.addAbility(TrampleAbility.getInstance());
|
||||
|
||||
// Pay 2 life, Sacrifice another creature: Search your library for a card and put that card into your hand. Then shuffle your library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false, true), new PayLifeCost(2));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false), new PayLifeCost(2));
|
||||
ability.addCost(new SacrificeTargetCost(
|
||||
new TargetControlledCreaturePermanent(1, 1, StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE, false)));
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -17,7 +17,7 @@ public final class RazakethsRite extends CardImpl {
|
|||
// Search your library for a card and put that card into your hand
|
||||
// Then shuffle your library
|
||||
TargetCardInLibrary target = new TargetCardInLibrary();
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(target));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(target, false));
|
||||
|
||||
// Cycling {B}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ public final class RecklessHandling extends CardImpl {
|
|||
|
||||
// Search your library for an artifact card, reveal it, put it into your hand, shuffle, then discard a card at random. If an artifact card was discarded this way, Reckless Handling deals 2 damage to each opponent.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(StaticFilters.FILTER_CARD_ARTIFACT_AN), true, true
|
||||
new TargetCardInLibrary(StaticFilters.FILTER_CARD_ARTIFACT_AN), true
|
||||
).setText("search your library for an artifact card, reveal it, put it into your hand, shuffle"));
|
||||
this.getSpellAbility().addEffect(new RecklessHandlingEffect());
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ public final class RecruiterOfTheGuard extends CardImpl {
|
|||
// When Recruiter of the Guard enters the battlefield, you may search your library for a creature card with toughness 2 or less,
|
||||
// reveal it, put it into your hand, then shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filter), true, true), true));
|
||||
new TargetCardInLibrary(filter), true), true));
|
||||
}
|
||||
|
||||
private RecruiterOfTheGuard(final RecruiterOfTheGuard card) {
|
||||
|
|
|
@ -38,7 +38,7 @@ public final class RelicSeeker extends CardImpl {
|
|||
|
||||
// When Relic Seeker becomes renowned, you may search your library for an Equipment card, reveal it, put it into your hand, then shuffle your library.
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(1, 1, filter);
|
||||
this.addAbility(new BecomesRenownedSourceTriggeredAbility(new SearchLibraryPutInHandEffect(target, true, true), true));
|
||||
this.addAbility(new BecomesRenownedSourceTriggeredAbility(new SearchLibraryPutInHandEffect(target, true), true));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ class RemembranceTriggeredAbility extends TriggeredAbilityImpl {
|
|||
filterCard.add(new NamePredicate(permanent.getName()));
|
||||
this.getEffects().clear();
|
||||
this.addEffect(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filterCard), true, true
|
||||
new TargetCardInLibrary(filterCard), true
|
||||
));
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ public final class RhysticTutor extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{B}");
|
||||
|
||||
// Unless any player pays {2}, search your library for a card, put that card into your hand, then shuffle your library.
|
||||
Effect effect = new DoUnlessAnyPlayerPaysEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary()), new ManaCostsImpl<>("{2}"));
|
||||
Effect effect = new DoUnlessAnyPlayerPaysEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false), new ManaCostsImpl<>("{2}"));
|
||||
effect.setText("Unless any player pays {2}, search your library for a card, put that card into your hand, then shuffle");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class RingOfThreeWishes extends CardImpl {
|
|||
// Ring of Three Wishes enters the battlefield with three wish counters on it.
|
||||
this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.WISH.createInstance(3)), "with three wish counters on it"));
|
||||
// {5}, {T}, Remove a wish counter from Ring of Three Wishes: Search your library for a card and put that card into your hand. Then shuffle your library.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false, true), new ManaCostsImpl<>("{5}"));
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false), new ManaCostsImpl<>("{5}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new RemoveCountersSourceCost(CounterType.WISH.createInstance()));
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class RuneScarredDemon extends CardImpl {
|
|||
this.toughness = new MageInt( 6);
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
TargetCardInLibrary target = new TargetCardInLibrary();
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target));
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, false));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ public final class SarkhansTriumph extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{R}");
|
||||
|
||||
// Search your library for a Dragon creature card, reveal it, put it into your hand, then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true));
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true));
|
||||
}
|
||||
|
||||
private SarkhansTriumph(final SarkhansTriumph card) {
|
||||
|
|
|
@ -38,7 +38,7 @@ public final class ScreamingSeahawk extends CardImpl {
|
|||
|
||||
// When Screaming Seahawk enters the battlefield, you may search your library for a card named Screaming Seahawk, reveal it, and put it into your hand. If you do, shuffle your library.
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(1, 1, filter);
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true, true), true));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInHandEffect(target, true), true));
|
||||
}
|
||||
|
||||
private ScreamingSeahawk(final ScreamingSeahawk card) {
|
||||
|
|
|
@ -77,6 +77,6 @@ class SecretSalvageEffect extends OneShotEffect {
|
|||
nameFilter.add(new NamePredicate(nameToSearch));
|
||||
return new SearchLibraryPutInHandEffect(new TargetCardInLibrary(
|
||||
0, Integer.MAX_VALUE, nameFilter
|
||||
), true, true).apply(game, source);
|
||||
), true).apply(game, source);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ public final class SelfAssembler extends CardImpl {
|
|||
|
||||
// When Self-Assembler enters the battlefield, you may search your library for an Assembly-Worker creature card, reveal it, put it into your hand,
|
||||
// then shuffle your library.
|
||||
Effect effect = new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0, 1, filter), true, true);
|
||||
Effect effect = new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0, 1, filter), true);
|
||||
effect.setText("you may search your library for an Assembly-Worker creature card, reveal it, put it into your hand, then shuffle");
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(effect, true));
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ public final class SharedSummons extends CardImpl {
|
|||
|
||||
// Search your library for up to two creature cards with different names, reveal them, put them into your hand, then shuffle your library.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(
|
||||
new TargetCardWithDifferentNameInLibrary(0, 2, filter), true, true
|
||||
new TargetCardWithDifferentNameInLibrary(0, 2, filter), true
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue