mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Fix #8533
This commit is contained in:
parent
c074561048
commit
f07004e27c
1 changed files with 6 additions and 1 deletions
|
@ -57,8 +57,13 @@ class DiabolicRevelationEffect extends OneShotEffect {
|
|||
if (player == null) {
|
||||
return false;
|
||||
}
|
||||
int xValue = source.getManaCostsToPay().getX();
|
||||
if (xValue < 1) {
|
||||
player.shuffleLibrary(source, game);
|
||||
return true;
|
||||
}
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(
|
||||
0, source.getManaCostsToPay().getX(), StaticFilters.FILTER_CARD
|
||||
0, xValue, StaticFilters.FILTER_CARD
|
||||
);
|
||||
player.searchLibrary(target, source, game);
|
||||
Cards cards = new CardsImpl();
|
||||
|
|
Loading…
Reference in a new issue