ChandraTorchOfDefiance should only be able to cast spells with a casting cost. Cards like Ancestral Visions can not be cast.

This commit is contained in:
ingmargoudt 2017-02-18 22:49:43 +01:00
parent 4201520cb4
commit d729ab31d2

View file

@ -28,6 +28,7 @@
package mage.cards.c;
import java.util.UUID;
import mage.MageObject;
import mage.Mana;
import mage.abilities.Ability;
@ -57,7 +58,6 @@ import mage.target.common.TargetCreatureOrPlayer;
import mage.target.common.TargetCreaturePermanent;
/**
*
* @author fireshoes
*/
public class ChandraTorchOfDefiance extends CardImpl {
@ -117,7 +117,7 @@ class ChandraTorchOfDefianceEffect extends OneShotEffect {
if (controller != null && sourceObject != null && controller.getLibrary().size() > 0) {
Library library = controller.getLibrary();
Card card = library.removeFromTop(game);
if (card != null) {
if (card != null && !card.getManaCost().isEmpty()) {
boolean exiledCardWasCast = false;
controller.moveCardToExileWithInfo(card, source.getSourceId(), sourceObject.getIdName(), source.getSourceId(), game, Zone.LIBRARY, true);
if (controller.chooseUse(Outcome.Benefit, "Cast the card? (You still pay the costs)", source, game) && !card.getCardType().contains(CardType.LAND)) {