* Cut the Tethers - fixed that it doesn't return cards to hand;
-
package mage.cards.c;
-import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.costs.Cost;
import mage.abilities.costs.mana.GenericManaCost;
@@ -18,8 +16,9 @@ import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.players.Player;
+import java.util.UUID;
+
/**
- *
* @author LevelX2
*/
public final class CutTheTethers extends CardImpl {
@@ -45,6 +44,7 @@ public final class CutTheTethers extends CardImpl {
class CutTheTethersEffect extends OneShotEffect {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Spirit creatures");
+
static {
filter.add(new SubtypePredicate(SubType.SPIRIT));
}
@@ -69,17 +69,15 @@ class CutTheTethersEffect extends OneShotEffect {
Player player = game.getPlayer(creature.getControllerId());
if (player != null) {
boolean paid = false;
- if (player.chooseUse(outcome, "Pay {3} to keep " + creature.getName() + " on the battlefield?", source, game)) {
+ if (player.chooseUse(Outcome.Benefit, "Pay {3} to keep " + creature.getName() + " on the battlefield?", source, game)) {
Cost cost = new GenericManaCost(3);
- if (!cost.pay(source, game, source.getSourceId(), creature.getControllerId(), false, null)) {
- paid = true;
+ paid = cost.pay(source, game, source.getSourceId(), creature.getControllerId(), false, null);
}
if (!paid) {
creature.moveToZone(Zone.HAND, source.getSourceId(), game, true);
}
}
}
- }
return true;
}
}
