* Fixed move to exile method of player. Fixes the alternat cost problem of force of will and Contagion.

This commit is contained in:
LevelX2 2014-02-21 19:14:44 +01:00
parent 786fc03044
commit de21b60484
3 changed files with 4 additions and 6 deletions

View file

@ -28,17 +28,14 @@
package mage.sets.alliances;
import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.ObjectColor;
import mage.abilities.costs.AlternativeCostImpl;
import mage.abilities.costs.AlternativeCostSourceAbility;
import mage.abilities.costs.Cost;
import mage.abilities.costs.CostsImpl;
import mage.abilities.costs.common.ExileFromHandCost;
import mage.abilities.costs.common.PayLifeCost;
import mage.abilities.effects.common.CounterTargetEffect;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.filter.common.FilterOwnedCard;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.CardIdPredicate;

View file

@ -70,7 +70,7 @@ public class ExileFromHandCost extends CostImpl<ExileFromHandCost> {
if (card == null) {
return false;
}
this.cards.add(card.copy());
this.cards.add(card);
paid |= player.moveCardToExileWithInfo(card, null, null, ability.getSourceId(), game, Zone.HAND);
}
}

View file

@ -2132,6 +2132,7 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
.append(" moves ").append(card.getName()).append(" ")
.append(fromZone != null ? new StringBuilder("from ").append(fromZone.toString().toLowerCase(Locale.ENGLISH)).append(" "):"")
.append("to exile").toString());
result = true;
}
return result;
}