* Oblivion Sower - Fixed that it can grab face-down cards if they're lands (fixes #3410).

This commit is contained in:
LevelX2 2017-05-22 11:07:31 +02:00
parent a4aae3ed00
commit c8bbc0f035

View file

@ -42,6 +42,8 @@ import mage.constants.Outcome;
import mage.constants.Zone; import mage.constants.Zone;
import mage.filter.FilterCard; import mage.filter.FilterCard;
import mage.filter.common.FilterLandCard; import mage.filter.common.FilterLandCard;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.other.FaceDownPredicate;
import mage.filter.predicate.other.OwnerIdPredicate; import mage.filter.predicate.other.OwnerIdPredicate;
import mage.game.Game; import mage.game.Game;
import mage.players.Player; import mage.players.Player;
@ -104,6 +106,7 @@ class OblivionSowerEffect extends OneShotEffect {
if (controller != null && targetPlayer != null) { if (controller != null && targetPlayer != null) {
FilterLandCard filter = new FilterLandCard(); FilterLandCard filter = new FilterLandCard();
filter.add(new OwnerIdPredicate(targetPlayer.getId())); filter.add(new OwnerIdPredicate(targetPlayer.getId()));
filter.add(Predicates.not(new FaceDownPredicate()));
Cards exiledCards = new CardsImpl(); Cards exiledCards = new CardsImpl();
exiledCards.addAll(game.getExile().getAllCards(game)); exiledCards.addAll(game.getExile().getAllCards(game));
Cards exiledLands = new CardsImpl(); Cards exiledLands = new CardsImpl();