mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Oblivion Sower - Fixed that it can grab face-down cards if they're lands (fixes #3410).
This commit is contained in:
parent
a4aae3ed00
commit
c8bbc0f035
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
|
@ -55,7 +57,7 @@ import mage.target.common.TargetOpponent;
|
||||||
public class OblivionSower extends CardImpl {
|
public class OblivionSower extends CardImpl {
|
||||||
|
|
||||||
public OblivionSower(UUID ownerId, CardSetInfo setInfo) {
|
public OblivionSower(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{6}");
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{6}");
|
||||||
this.subtype.add("Eldrazi");
|
this.subtype.add("Eldrazi");
|
||||||
this.power = new MageInt(5);
|
this.power = new MageInt(5);
|
||||||
this.toughness = new MageInt(8);
|
this.toughness = new MageInt(8);
|
||||||
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue