From 85fd7bbea211d59a6483893c5ca7f2089e62db7e Mon Sep 17 00:00:00 2001 From: Max Lebedev Date: Tue, 20 Sep 2016 02:57:59 -0400 Subject: [PATCH] Prelate now shows the chosen number --- .../mage/sets/conspiracytakethecrown/SanctumPrelate.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Mage.Sets/src/mage/sets/conspiracytakethecrown/SanctumPrelate.java b/Mage.Sets/src/mage/sets/conspiracytakethecrown/SanctumPrelate.java index 3b8ce2490d0..decc2fb635e 100644 --- a/Mage.Sets/src/mage/sets/conspiracytakethecrown/SanctumPrelate.java +++ b/Mage.Sets/src/mage/sets/conspiracytakethecrown/SanctumPrelate.java @@ -43,6 +43,7 @@ import mage.choices.ChoiceImpl; import mage.constants.*; import mage.game.Game; import mage.game.events.GameEvent; +import mage.game.permanent.Permanent; import mage.game.stack.Spell; import mage.players.Player; import org.apache.log4j.Logger; @@ -95,6 +96,12 @@ class ChooseNumberEffect extends OneShotEffect { int numberChoice = controller.announceXMana(0, Integer.MAX_VALUE, "Choose a number. Noncreature spells with the chosen converted mana cost can't be cast", game, source); game.getState().setValue(source.getSourceId().toString(), numberChoice); + + Permanent permanent = game.getPermanentEntering(source.getSourceId()); + permanent.addInfo("chosen players", "Chosen Number: "+ numberChoice +"", game); + + game.informPlayers(permanent.getLogName() + ", chosen number: "+numberChoice); + return true; }