From 390b3d97b83fad96409b2d8d8d7f846ac21f2b28 Mon Sep 17 00:00:00 2001 From: Plopman Date: Fri, 6 Jun 2014 14:18:48 +0200 Subject: [PATCH] Fixed cascade. Cards were not put back in library --- Mage/src/mage/abilities/keyword/CascadeAbility.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Mage/src/mage/abilities/keyword/CascadeAbility.java b/Mage/src/mage/abilities/keyword/CascadeAbility.java index f478c3a2b1..347520824f 100644 --- a/Mage/src/mage/abilities/keyword/CascadeAbility.java +++ b/Mage/src/mage/abilities/keyword/CascadeAbility.java @@ -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()); + } } }