mirror of
https://github.com/correl/mage.git
synced 2025-03-16 09:16:26 -09: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) {
|
if (player == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
int xValue = source.getManaCostsToPay().getX();
|
||||||
|
if (xValue < 1) {
|
||||||
|
player.shuffleLibrary(source, game);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
TargetCardInLibrary target = new TargetCardInLibrary(
|
TargetCardInLibrary target = new TargetCardInLibrary(
|
||||||
0, source.getManaCostsToPay().getX(), StaticFilters.FILTER_CARD
|
0, xValue, StaticFilters.FILTER_CARD
|
||||||
);
|
);
|
||||||
player.searchLibrary(target, source, game);
|
player.searchLibrary(target, source, game);
|
||||||
Cards cards = new CardsImpl();
|
Cards cards = new CardsImpl();
|
||||||
|
|
Loading…
Add table
Reference in a new issue