Fix Field of Ruin search logic

Per #5126:
field of ruin bugged: doesn't let u search for a land. (reported by vespel / 2018-07-15 03:18:09.356).

Changed search logic to match the search from CollectiveVoyage.java.
This commit is contained in:
Michael Simons 2018-08-03 00:45:29 -04:00 committed by GitHub
parent 097569148e
commit 59907b59e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ class FieldOfRuinEffect extends OneShotEffect {
if (player != null) {
TargetCardInLibrary target = new TargetCardInLibrary(0, 1, StaticFilters.FILTER_CARD_BASIC_LAND);
if (player.searchLibrary(target, game)) {
player.moveCards(new CardsImpl(target.getTargets()), Zone.BATTLEFIELD, source, game);
player.moveCards(new CardsImpl(target.getTargets()).getCards(game), Zone.BATTLEFIELD, source, game);
player.shuffleLibrary(source, game);
}
}