mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
- Fixed #7960
This commit is contained in:
parent
3eabb7a718
commit
0a31110164
1 changed files with 9 additions and 3 deletions
|
@ -44,8 +44,8 @@ class RitesOfSpringEffect extends OneShotEffect {
|
|||
|
||||
RitesOfSpringEffect() {
|
||||
super(Outcome.DrawCard);
|
||||
this.staticText = "discard any number of cards. Search your library for up to that many basic land cards, " +
|
||||
"reveal them, put them into your hand, then shuffle";
|
||||
this.staticText = "discard any number of cards. Search your library for up to that many basic land cards, "
|
||||
+ "reveal them, put them into your hand, then shuffle";
|
||||
}
|
||||
|
||||
private RitesOfSpringEffect(final RitesOfSpringEffect effect) {
|
||||
|
@ -63,9 +63,15 @@ class RitesOfSpringEffect extends OneShotEffect {
|
|||
if (controller == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
int numDiscarded = controller.discard(0, Integer.MAX_VALUE, false, source, game).size();
|
||||
|
||||
if (numDiscarded == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(
|
||||
0, numDiscarded, StaticFilters.FILTER_CARD_BASIC_LAND
|
||||
numDiscarded, StaticFilters.FILTER_CARD_BASIC_LAND
|
||||
);
|
||||
controller.searchLibrary(target, source, game);
|
||||
Cards cards = new CardsImpl();
|
||||
|
|
Loading…
Reference in a new issue