mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
Merge pull request #1518 from spjspj/master
spjspj - Lands are ok from top of library
This commit is contained in:
commit
82fed1ed87
1 changed files with 2 additions and 1 deletions
|
@ -32,6 +32,7 @@ import mage.abilities.Ability;
|
|||
import mage.abilities.effects.AsThoughEffectImpl;
|
||||
import mage.cards.Card;
|
||||
import mage.constants.AsThoughEffectType;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Outcome;
|
||||
import mage.filter.FilterCard;
|
||||
|
@ -77,7 +78,7 @@ public class PlayTheTopCardEffect extends AsThoughEffectImpl {
|
|||
if (cardOnTop != null
|
||||
&& affectedControllerId.equals(source.getControllerId())
|
||||
&& cardOnTop.getOwnerId().equals(source.getControllerId())
|
||||
&& !cardOnTop.getManaCost().isEmpty()
|
||||
&& (!cardOnTop.getManaCost().isEmpty() || cardOnTop.getCardType().contains(CardType.LAND))
|
||||
&& filter.match(cardOnTop, game)) {
|
||||
Player player = game.getPlayer(cardOnTop.getOwnerId());
|
||||
if (player != null && cardOnTop.equals(player.getLibrary().getFromTop(game))) {
|
||||
|
|
Loading…
Reference in a new issue