From a1dc4ec5b34c6ed26efa84c422b4095ecca5b37c Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 4 Feb 2014 22:54:59 +0100 Subject: [PATCH] * Scry - Fixed that if you play with the top card of library revealed you didn't reveal the next card during scry effect. --- Mage/src/mage/abilities/effects/common/ScryEffect.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Mage/src/mage/abilities/effects/common/ScryEffect.java b/Mage/src/mage/abilities/effects/common/ScryEffect.java index d088bbbe58f..f2c1d9debac 100644 --- a/Mage/src/mage/abilities/effects/common/ScryEffect.java +++ b/Mage/src/mage/abilities/effects/common/ScryEffect.java @@ -68,6 +68,8 @@ public class ScryEffect extends OneShotEffect { public boolean apply(Game game, Ability source) { Player player = game.getPlayer(source.getControllerId()); if (player != null) { + boolean revealed = player.isTopCardRevealed(); // by looking at the cards with scry you have not to reveal the next card + player.setTopCardRevealed(false); Cards cards = new CardsImpl(Zone.PICK); int count = Math.min(scryNumber, player.getLibrary().size()); if (count == 0) { @@ -112,6 +114,7 @@ public class ScryEffect extends OneShotEffect { .append(" on the bottom of his or her library (scry ") .append(scryNumber).append(")").toString()); game.fireEvent(new GameEvent(GameEvent.EventType.SCRY, source.getControllerId(), source.getSourceId(), source.getControllerId())); + player.setTopCardRevealed(revealed); return true; } return false;