mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 11:49:56 -08:00
Fixed Finale of Revelation that it always use x=10 effects;
This commit is contained in:
parent
00f871f155
commit
f1f58fbab4
1 changed files with 13 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue