mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +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() {
|
RitesOfSpringEffect() {
|
||||||
super(Outcome.DrawCard);
|
super(Outcome.DrawCard);
|
||||||
this.staticText = "discard any number of cards. Search your library for up to that many basic land cards, " +
|
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";
|
+ "reveal them, put them into your hand, then shuffle";
|
||||||
}
|
}
|
||||||
|
|
||||||
private RitesOfSpringEffect(final RitesOfSpringEffect effect) {
|
private RitesOfSpringEffect(final RitesOfSpringEffect effect) {
|
||||||
|
@ -63,9 +63,15 @@ class RitesOfSpringEffect extends OneShotEffect {
|
||||||
if (controller == null) {
|
if (controller == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
int numDiscarded = controller.discard(0, Integer.MAX_VALUE, false, source, game).size();
|
int numDiscarded = controller.discard(0, Integer.MAX_VALUE, false, source, game).size();
|
||||||
|
|
||||||
|
if (numDiscarded == 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
TargetCardInLibrary target = new TargetCardInLibrary(
|
TargetCardInLibrary target = new TargetCardInLibrary(
|
||||||
0, numDiscarded, StaticFilters.FILTER_CARD_BASIC_LAND
|
numDiscarded, StaticFilters.FILTER_CARD_BASIC_LAND
|
||||||
);
|
);
|
||||||
controller.searchLibrary(target, source, game);
|
controller.searchLibrary(target, source, game);
|
||||||
Cards cards = new CardsImpl();
|
Cards cards = new CardsImpl();
|
||||||
|
|
Loading…
Reference in a new issue