From cb945d997e56f1609320c42246eb27e4a733fd0a Mon Sep 17 00:00:00 2001 From: Loki Date: Sun, 6 May 2012 23:17:57 +0400 Subject: [PATCH] Added looking at card and revealing it for Miracle keyword --- Mage/src/mage/watchers/common/MiracleWatcher.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Mage/src/mage/watchers/common/MiracleWatcher.java b/Mage/src/mage/watchers/common/MiracleWatcher.java index b3355656a1..ba843d4ec3 100644 --- a/Mage/src/mage/watchers/common/MiracleWatcher.java +++ b/Mage/src/mage/watchers/common/MiracleWatcher.java @@ -35,6 +35,8 @@ import mage.abilities.costs.mana.ManaCost; import mage.abilities.costs.mana.ManaCosts; import mage.abilities.keyword.MiracleAbility; import mage.cards.Card; +import mage.cards.Cards; +import mage.cards.CardsImpl; import mage.game.Game; import mage.game.events.GameEvent; import mage.game.stack.StackAbility; @@ -98,8 +100,12 @@ public class MiracleWatcher extends WatcherImpl { ManaCosts manaCostsToPay = ability.getManaCostsToPay(); if (controller != null) { game.getStack().add(new StackAbility(ability, controller.getId())); + Cards cards = new CardsImpl(Constants.Zone.PICK); + cards.add(card); + controller.lookAtCards("Miracle", cards, game); if (controller.chooseUse(Constants.Outcome.Benefit, "Use Miracle " + manaCostsToPay.getText() + "?", game)) { game.getStack().poll(); + controller.revealCards("Miracle", cards, game); ManaCosts costRef = card.getSpellAbility().getManaCostsToPay(); // replace with the new cost costRef.clear();