Duress and Despire targets must be selected

This commit is contained in:
Loki 2011-08-09 11:39:01 +03:00
parent af2c69b449
commit a5e96555e6
2 changed files with 2 additions and 0 deletions

View file

@ -94,6 +94,7 @@ class DuressEffect extends OneShotEffect<DuressEffect> {
Player you = game.getPlayer(source.getControllerId());
if (you != null) {
TargetCard target = new TargetCard(Zone.PICK, filter);
target.setRequired(true);
if (you.choose(Outcome.Benefit, player.getHand(), target, game)) {
Card card = player.getHand().get(target.getFirstTarget(), game);
if (card != null) {

View file

@ -97,6 +97,7 @@ class DespiseEffect extends OneShotEffect<DespiseEffect> {
Player you = game.getPlayer(source.getControllerId());
if (you != null) {
TargetCard target = new TargetCard(Constants.Zone.PICK, filter);
target.setRequired(true);
if (you.choose(Constants.Outcome.Benefit, player.getHand(), target, game)) {
Card card = player.getHand().get(target.getFirstTarget(), game);
if (card != null) {