This commit is contained in:
Jeff 2019-04-24 10:20:12 -05:00
parent 43ebdf9e94
commit 9c1f55a08f

View file

@ -69,8 +69,8 @@ class BolassCitadelPlayTheTopCardEffect extends AsThoughEffectImpl {
BolassCitadelPlayTheTopCardEffect() { BolassCitadelPlayTheTopCardEffect() {
super(AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE, super(AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE,
Duration.WhileOnBattlefield, Outcome.AIDontUseIt); // AI will need help with this 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, " + 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."; + "pay life equal to its converted mana cost rather than pay its mana cost.";
} }
private BolassCitadelPlayTheTopCardEffect(final BolassCitadelPlayTheTopCardEffect effect) { private BolassCitadelPlayTheTopCardEffect(final BolassCitadelPlayTheTopCardEffect effect) {
@ -90,10 +90,11 @@ class BolassCitadelPlayTheTopCardEffect extends AsThoughEffectImpl {
@Override @Override
public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) { public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {
Card cardOnTop = game.getCard(objectId); Card cardOnTop = game.getCard(objectId);
if (cardOnTop != null if (cardOnTop == null) {
&& affectedControllerId.equals(source.getControllerId()) return false;
&& cardOnTop.isOwnedBy(source.getControllerId()) }
|| cardOnTop.isLand()) { if (affectedControllerId.equals(source.getControllerId())
&& cardOnTop.isOwnedBy(source.getControllerId())) {
Player controller = game.getPlayer(cardOnTop.getOwnerId()); Player controller = game.getPlayer(cardOnTop.getOwnerId());
if (controller != null if (controller != null
&& cardOnTop.equals(controller.getLibrary().getFromTop(game))) { && cardOnTop.equals(controller.getLibrary().getFromTop(game))) {