mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 19:59:54 -08: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…
Add table
Add a link
Reference in a new issue