mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Update TymaretCallsTheDead.java
This commit is contained in:
parent
a0888af73a
commit
49cc515832
1 changed files with 6 additions and 8 deletions
|
@ -8,10 +8,7 @@ import mage.abilities.effects.common.CreateTokenEffect;
|
||||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveControllerEffect;
|
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveControllerEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.*;
|
||||||
import mage.constants.SagaChapter;
|
|
||||||
import mage.constants.SubType;
|
|
||||||
import mage.constants.Zone;
|
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
|
@ -97,13 +94,13 @@ class TymaretCallsTheDeadFirstEffect extends OneShotEffect {
|
||||||
}
|
}
|
||||||
millEffect.apply(game, source);
|
millEffect.apply(game, source);
|
||||||
if (player.getGraveyard().count(filter, game) == 0
|
if (player.getGraveyard().count(filter, game) == 0
|
||||||
|| !player.chooseUse(outcome, "Exile a creature or enchantment card from your graveyard?", source, game)) {
|
|| !player.chooseUse(Outcome.Exile, "Exile a creature or enchantment card from your graveyard?", source, game)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
TargetCard target = new TargetCardInYourGraveyard(filter);
|
TargetCard target = new TargetCardInYourGraveyard(filter);
|
||||||
target.setNotTarget(true);
|
target.setNotTarget(true);
|
||||||
if (!player.choose(outcome, player.getGraveyard(), target, game)) {
|
if (!player.choose(outcome, player.getGraveyard(), target, game)) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
return player.moveCards(game.getCard(target.getFirstTarget()), Zone.EXILED, source, game)
|
return player.moveCards(game.getCard(target.getFirstTarget()), Zone.EXILED, source, game)
|
||||||
&& tokenEffect.apply(game, source);
|
&& tokenEffect.apply(game, source);
|
||||||
|
@ -139,6 +136,7 @@ class TymaretCallsTheDeadLastEffect extends OneShotEffect {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
player.gainLife(zombieCount, game, source);
|
player.gainLife(zombieCount, game, source);
|
||||||
return player.scry(zombieCount, source, game);
|
player.scry(zombieCount, source, game);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue