Fixed Finale of Revelation that it always use x=10 effects;

This commit is contained in:
Oleg Agafonov 2019-04-21 21:24:28 +04:00
parent 00f871f155
commit f1f58fbab4

View file

@ -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;
}
}