fixed Agonizing Remorse not allowing players to pick cards

This commit is contained in:
Evan Kranzler 2020-01-12 13:49:25 -05:00
parent ef3b555467
commit 0f6fcaee18

View file

@ -14,8 +14,6 @@ import mage.filter.common.FilterNonlandCard;
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.TargetCardInGraveyard;
import mage.target.common.TargetCardInHand;
import mage.target.common.TargetOpponent; import mage.target.common.TargetOpponent;
import java.util.UUID; import java.util.UUID;
@ -71,11 +69,11 @@ class AgonizingRemorseEffect extends OneShotEffect {
TargetCard target; TargetCard target;
Cards cards; Cards cards;
if (controller.chooseUse(outcome, "Exile a card from hand or graveyard?", null, "Hand", "Graveyard", source, game)) { if (controller.chooseUse(outcome, "Exile a card from hand or graveyard?", null, "Hand", "Graveyard", source, game)) {
target = new TargetCardInHand(new FilterNonlandCard("nonland card in " + opponent.getName() + "'s hand")); target = new TargetCard(Zone.HAND, new FilterNonlandCard("nonland card in " + opponent.getName() + "'s hand"));
target.setNotTarget(true); target.setNotTarget(true);
cards = opponent.getHand(); cards = opponent.getHand();
} else { } else {
target = new TargetCardInGraveyard(new FilterCard("card in " + opponent.getName() + "'s graveyard")); target = new TargetCard(Zone.GRAVEYARD, new FilterCard("card in " + opponent.getName() + "'s graveyard"));
target.setNotTarget(true); target.setNotTarget(true);
cards = opponent.getGraveyard(); cards = opponent.getGraveyard();
} }