mirror of
https://github.com/correl/mage.git
synced 2024-11-25 11:09:53 +00:00
fixed Agonizing Remorse not allowing players to pick cards
This commit is contained in:
parent
ef3b555467
commit
0f6fcaee18
1 changed files with 2 additions and 4 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue