mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
* Glacial Revelation - fixed that it couldn't put any snow cards to hand;
This commit is contained in:
parent
503b3e8947
commit
8575d437ce
3 changed files with 8 additions and 8 deletions
|
|
@ -1,7 +1,5 @@
|
||||||
|
|
||||||
package mage.cards.f;
|
package mage.cards.f;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.ObjectColor;
|
import mage.ObjectColor;
|
||||||
import mage.abilities.costs.AlternativeCostSourceAbility;
|
import mage.abilities.costs.AlternativeCostSourceAbility;
|
||||||
import mage.abilities.costs.common.ExileFromHandCost;
|
import mage.abilities.costs.common.ExileFromHandCost;
|
||||||
|
|
@ -17,14 +15,15 @@ import mage.filter.predicate.mageobject.ColorPredicate;
|
||||||
import mage.target.TargetSpell;
|
import mage.target.TargetSpell;
|
||||||
import mage.target.common.TargetCardInHand;
|
import mage.target.common.TargetCardInHand;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author Plopman
|
* @author Plopman
|
||||||
*/
|
*/
|
||||||
public final class ForceOfWill extends CardImpl {
|
public final class ForceOfWill extends CardImpl {
|
||||||
|
|
||||||
public ForceOfWill(UUID ownerId, CardSetInfo setInfo) {
|
public ForceOfWill(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{3}{U}{U}");
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{U}{U}");
|
||||||
|
|
||||||
// You may pay 1 life and exile a blue card from your hand rather than pay Force of Will's mana cost.
|
// You may pay 1 life and exile a blue card from your hand rather than pay Force of Will's mana cost.
|
||||||
FilterOwnedCard filter = new FilterOwnedCard("a blue card from your hand");
|
FilterOwnedCard filter = new FilterOwnedCard("a blue card from your hand");
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@ import mage.filter.predicate.mageobject.SupertypePredicate;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.TargetCard;
|
import mage.target.TargetCard;
|
||||||
import mage.target.common.TargetCardInHand;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
|
@ -73,7 +72,8 @@ class GlacialRevelationEffect extends OneShotEffect {
|
||||||
}
|
}
|
||||||
Cards cards = new CardsImpl(player.getLibrary().getTopCards(game, 6));
|
Cards cards = new CardsImpl(player.getLibrary().getTopCards(game, 6));
|
||||||
player.revealCards(source, cards, game);
|
player.revealCards(source, cards, game);
|
||||||
TargetCard targetCard = new TargetCardInHand(0, Integer.MAX_VALUE, filter);
|
TargetCard targetCard = new TargetCard(0, Integer.MAX_VALUE, Zone.LIBRARY, filter);
|
||||||
|
targetCard.setNotTarget(true);
|
||||||
if (player.choose(outcome, cards, targetCard, game)) {
|
if (player.choose(outcome, cards, targetCard, game)) {
|
||||||
Cards toHand = new CardsImpl(targetCard.getTargets());
|
Cards toHand = new CardsImpl(targetCard.getTargets());
|
||||||
cards.removeAll(targetCard.getTargets());
|
cards.removeAll(targetCard.getTargets());
|
||||||
|
|
|
||||||
|
|
@ -123,6 +123,7 @@ class XenagosExileEffect extends OneShotEffect {
|
||||||
filter.add(Predicates.or(new CardTypePredicate(CardType.CREATURE),
|
filter.add(Predicates.or(new CardTypePredicate(CardType.CREATURE),
|
||||||
new CardTypePredicate(CardType.LAND)));
|
new CardTypePredicate(CardType.LAND)));
|
||||||
TargetCard target1 = new TargetCard(0, Integer.MAX_VALUE, Zone.EXILED, filter);
|
TargetCard target1 = new TargetCard(0, Integer.MAX_VALUE, Zone.EXILED, filter);
|
||||||
|
target1.setNotTarget(true);
|
||||||
if (!exiledCards.isEmpty()
|
if (!exiledCards.isEmpty()
|
||||||
&& target1.canChoose(source.getSourceId(), source.getControllerId(), game)
|
&& target1.canChoose(source.getSourceId(), source.getControllerId(), game)
|
||||||
&& controller.choose(Outcome.PutCardInPlay, exiledCards, target1, game)) {
|
&& controller.choose(Outcome.PutCardInPlay, exiledCards, target1, game)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue