forked from External/mage
* Fixed some problems with card search in library and cancel button (Primecal Titan).
This commit is contained in:
parent
b72c671830
commit
9bd7bbd661
4 changed files with 8 additions and 4 deletions
|
|
@ -80,7 +80,7 @@ class IncreasingAmbitionEffect extends SearchEffect {
|
|||
|
||||
public IncreasingAmbitionEffect() {
|
||||
super(new TargetCardInLibrary(), Outcome.DrawCard);
|
||||
staticText = "Search your library for a card and put that card into your hand. If Increasing Ambition was cast from a graveyard, instead search your library for two cards and put those cards into your hand. Then shuffle your library";
|
||||
staticText = "Search your library for a card and put that card into your hand. If {this} was cast from a graveyard, instead search your library for two cards and put those cards into your hand. Then shuffle your library";
|
||||
}
|
||||
|
||||
public IncreasingAmbitionEffect(final IncreasingAmbitionEffect effect) {
|
||||
|
|
@ -108,8 +108,9 @@ class IncreasingAmbitionEffect extends SearchEffect {
|
|||
if (target.getTargets().size() > 0) {
|
||||
for (UUID cardId: (List<UUID>)target.getTargets()) {
|
||||
Card card = player.getLibrary().remove(cardId, game);
|
||||
if (card != null)
|
||||
if (card != null) {
|
||||
card.moveToZone(Zone.HAND, source.getId(), game, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,8 +110,9 @@ class CultivateEffect extends OneShotEffect {
|
|||
card.putOntoBattlefield(game, Zone.LIBRARY, source.getId(), source.getControllerId());
|
||||
revealed.remove(card);
|
||||
Permanent permanent = game.getPermanent(card.getId());
|
||||
if (permanent != null)
|
||||
if (permanent != null) {
|
||||
permanent.setTapped(true);
|
||||
}
|
||||
card = revealed.getCards(game).iterator().next();
|
||||
card.moveToZone(Zone.HAND, source.getId(), game, false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ class PrimevalTitanAbility extends TriggeredAbilityImpl {
|
|||
|
||||
public PrimevalTitanAbility() {
|
||||
super(Zone.BATTLEFIELD, null, true);
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(2, new FilterLandCard());
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(0, 2, new FilterLandCard());
|
||||
this.addEffect(new SearchLibraryPutInPlayEffect(target, true, Outcome.PutLandInPlay));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,11 +65,13 @@ public class TargetCardInLibrary extends TargetCard {
|
|||
|
||||
public TargetCardInLibrary(int minNumTargets, int maxNumTargets, FilterCard filter) {
|
||||
super(minNumTargets, maxNumTargets, Zone.LIBRARY, filter);
|
||||
this.setRequired(false);
|
||||
this.librarySearchLimit = Integer.MAX_VALUE;
|
||||
}
|
||||
|
||||
public TargetCardInLibrary(final TargetCardInLibrary target) {
|
||||
super(target);
|
||||
this.setRequired(false);
|
||||
this.librarySearchLimit = target.librarySearchLimit;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue