mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00: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,13 +120,14 @@ 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);
|
||||
exile.remove(card.getId());
|
||||
if(player.cast(card.getSpellAbility(), game, true)){
|
||||
exile.remove(card.getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue