From 9c1f55a08f6095eed63029ccde012d58603d9ee7 Mon Sep 17 00:00:00 2001 From: Jeff Date: Wed, 24 Apr 2019 10:20:12 -0500 Subject: [PATCH] - Fixed #5749 --- Mage.Sets/src/mage/cards/b/BolassCitadel.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Mage.Sets/src/mage/cards/b/BolassCitadel.java b/Mage.Sets/src/mage/cards/b/BolassCitadel.java index 59ea9da6bf..f7f617045d 100644 --- a/Mage.Sets/src/mage/cards/b/BolassCitadel.java +++ b/Mage.Sets/src/mage/cards/b/BolassCitadel.java @@ -69,8 +69,8 @@ class BolassCitadelPlayTheTopCardEffect extends AsThoughEffectImpl { BolassCitadelPlayTheTopCardEffect() { super(AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE, Duration.WhileOnBattlefield, Outcome.AIDontUseIt); // AI will need help with this - staticText = "You may play the top card of your library. If you cast a spell this way, " + - "pay life equal to its converted mana cost rather than pay its mana cost."; + staticText = "You may play the top card of your library. If you cast a spell this way, " + + "pay life equal to its converted mana cost rather than pay its mana cost."; } private BolassCitadelPlayTheTopCardEffect(final BolassCitadelPlayTheTopCardEffect effect) { @@ -90,10 +90,11 @@ class BolassCitadelPlayTheTopCardEffect extends AsThoughEffectImpl { @Override public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) { Card cardOnTop = game.getCard(objectId); - if (cardOnTop != null - && affectedControllerId.equals(source.getControllerId()) - && cardOnTop.isOwnedBy(source.getControllerId()) - || cardOnTop.isLand()) { + if (cardOnTop == null) { + return false; + } + if (affectedControllerId.equals(source.getControllerId()) + && cardOnTop.isOwnedBy(source.getControllerId())) { Player controller = game.getPlayer(cardOnTop.getOwnerId()); if (controller != null && cardOnTop.equals(controller.getLibrary().getFromTop(game))) {