mirror of
https://github.com/correl/mage.git
synced 2025-03-17 17:00:08 -09:00
Fixed cascade. Cards were not put back in library
This commit is contained in:
parent
e98edfc8c1
commit
390b3d97b8
1 changed files with 4 additions and 3 deletions
|
@ -120,15 +120,16 @@ class CascadeEffect extends OneShotEffect {
|
|||
if (card == null) {
|
||||
break;
|
||||
}
|
||||
player.moveCardToExileWithInfo(card, source.getId(), exile.getName(), source.getSourceId(), game, Zone.LIBRARY);
|
||||
player.moveCardToExileWithInfo(card, exile.getId(), exile.getName(), source.getSourceId(), game, Zone.LIBRARY);
|
||||
} while (player.isInGame() && card.getCardType().contains(CardType.LAND) || card.getManaCost().convertedManaCost() >= sourceCost);
|
||||
|
||||
if (card != null) {
|
||||
if (player.chooseUse(outcome, "Use cascade effect on " + card.getName() + "?", game)) {
|
||||
player.cast(card.getSpellAbility(), game, true);
|
||||
if(player.cast(card.getSpellAbility(), game, true)){
|
||||
exile.remove(card.getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
while (exile.size() > 0) {
|
||||
card = exile.getRandom(game);
|
||||
|
|
Loading…
Add table
Reference in a new issue