forked from External/mage
* Distended Mindbender - Fixed the not working card selection from target players hand.
This commit is contained in:
parent
9933420f57
commit
d8bb67cffe
1 changed files with 5 additions and 4 deletions
|
|
@ -24,6 +24,7 @@ import mage.target.common.TargetCardInHand;
|
|||
import mage.target.common.TargetOpponent;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.constants.Zone;
|
||||
|
||||
/**
|
||||
* @author fireshoes
|
||||
|
|
@ -91,13 +92,13 @@ class DistendedMindbenderEffect extends OneShotEffect {
|
|||
return false;
|
||||
}
|
||||
opponent.revealCards(source, opponent.getHand(), game);
|
||||
TargetCard targetThreeOrLess = new TargetCardInHand(1, filterThreeOrLess);
|
||||
TargetCard targetFourOrGreater = new TargetCardInHand(1, filterFourOrGreater);
|
||||
TargetCard targetThreeOrLess = new TargetCard(1, Zone.HAND, filterThreeOrLess);
|
||||
TargetCard targetFourOrGreater = new TargetCard(1, Zone.HAND, filterFourOrGreater);
|
||||
Cards toDiscard = new CardsImpl();
|
||||
if (controller.choose(Outcome.Benefit, opponent.getHand(), targetThreeOrLess, game)) {
|
||||
if (controller.chooseTarget(Outcome.Benefit, opponent.getHand(), targetThreeOrLess, source, game)) {
|
||||
toDiscard.addAll(targetThreeOrLess.getTargets());
|
||||
}
|
||||
if (controller.choose(Outcome.Benefit, opponent.getHand(), targetFourOrGreater, game)) {
|
||||
if (controller.chooseTarget(Outcome.Benefit, opponent.getHand(), targetFourOrGreater, source, game)) {
|
||||
toDiscard.addAll(targetFourOrGreater.getTargets());
|
||||
}
|
||||
opponent.discard(toDiscard, source, game);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue