1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-05 09:12:29 -09:00

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
Mage.Sets/src/mage/sets
magic2010
newphyrexia

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) {