mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 12:19:59 -08:00
Some minor fixes.
This commit is contained in:
parent
c2fb2de67a
commit
a47c0adfda
2 changed files with 4 additions and 3 deletions
|
|
@ -112,11 +112,11 @@ class WaveOfVitriolEffect extends OneShotEffect {
|
|||
if (player != null) {
|
||||
int count = 0;
|
||||
for(Permanent permanent: game.getBattlefield().getAllActivePermanents(filter, playerId, game)) {
|
||||
if (permanent.getCardType().contains(CardType.LAND)) {
|
||||
if (permanent.sacrifice(source.getSourceId(), game) && permanent.getCardType().contains(CardType.LAND)) {
|
||||
count++;
|
||||
}
|
||||
permanent.sacrifice(source.getSourceId(), game);
|
||||
}
|
||||
game.getState().handleSimultaneousEvent(game);
|
||||
if (count > 0 && player.chooseUse(Outcome.PutLandInPlay, "Search your library for up to " + count + " basic lands?", game)) {
|
||||
Target target = new TargetCardInLibrary(0,count, new FilterBasicLandCard());
|
||||
player.chooseTarget(outcome, target, source, game);
|
||||
|
|
@ -127,6 +127,7 @@ class WaveOfVitriolEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
player.shuffleLibrary(game);
|
||||
game.getState().handleSimultaneousEvent(game);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue