From f1f58fbab47a31375ff90b279dd985558640182d Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Sun, 21 Apr 2019 21:24:28 +0400 Subject: [PATCH] Fixed Finale of Revelation that it always use x=10 effects; --- .../src/mage/cards/f/FinaleOfRevelation.java | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Mage.Sets/src/mage/cards/f/FinaleOfRevelation.java b/Mage.Sets/src/mage/cards/f/FinaleOfRevelation.java index 8b230e3aca5..afaf5aee130 100644 --- a/Mage.Sets/src/mage/cards/f/FinaleOfRevelation.java +++ b/Mage.Sets/src/mage/cards/f/FinaleOfRevelation.java @@ -64,16 +64,20 @@ class FinaleOfRevelationEffect extends OneShotEffect { return false; } int xValue = source.getManaCostsToPay().getX(); - if (xValue <= 10) { + + if (xValue < 10) { + player.drawCards(xValue, game); + } else { + player.putCardsOnTopOfLibrary(player.getGraveyard(), game, source, false); + player.shuffleLibrary(source, game); + player.drawCards(xValue, game); + new UntapLandsEffect(5).apply(game, source); + game.addEffect(new MaximumHandSizeControllerEffect( + Integer.MAX_VALUE, Duration.EndOfGame, + MaximumHandSizeControllerEffect.HandSizeModification.SET + ), source); } - player.putCardsOnTopOfLibrary(player.getGraveyard(), game, source, false); - player.shuffleLibrary(source, game); - player.drawCards(xValue, game); - new UntapLandsEffect(5).apply(game, source); - game.addEffect(new MaximumHandSizeControllerEffect( - Integer.MAX_VALUE, Duration.EndOfGame, - MaximumHandSizeControllerEffect.HandSizeModification.SET - ), source); + return true; } } \ No newline at end of file