mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
fixed a small error
This commit is contained in:
parent
1bb5f18acd
commit
a79d392d63
1 changed files with 3 additions and 2 deletions
|
@ -8,6 +8,7 @@ import mage.cards.CardSetInfo;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.common.FilterNonlandCard;
|
||||
import mage.filter.predicate.other.OwnerIdPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
@ -68,12 +69,12 @@ class NeverHappenedEffect extends OneShotEffect {
|
|||
opponent.revealCards(source, opponent.getHand(), game);
|
||||
Target target;
|
||||
if (controller.chooseUse(outcome, "Exile a card from hand or graveyard?", null, "Hand", "Graveyard", source, game)) {
|
||||
FilterCard filter = new FilterCard("card in " + opponent.getName() + "'s hand");
|
||||
FilterCard filter = new FilterNonlandCard("nonland card in " + opponent.getName() + "'s hand");
|
||||
filter.add(new OwnerIdPredicate(opponent.getId()));
|
||||
target = new TargetCardInHand(filter);
|
||||
target.setNotTarget(true);
|
||||
} else {
|
||||
FilterCard filter = new FilterCard("card in " + opponent.getName() + "'s graveyard");
|
||||
FilterCard filter = new FilterNonlandCard("nonland card in " + opponent.getName() + "'s graveyard");
|
||||
filter.add(new OwnerIdPredicate(opponent.getId()));
|
||||
target = new TargetCardInGraveyard(filter);
|
||||
target.setNotTarget(true);
|
||||
|
|
Loading…
Reference in a new issue