fix for Stuffy Doll

This commit is contained in:
magenoxx 2012-07-21 15:27:30 +04:00
parent 134266fe87
commit e4c416c180

View file

@ -27,7 +27,6 @@
*/ */
package mage.sets.timespiral; package mage.sets.timespiral;
import java.util.UUID;
import mage.Constants.CardType; import mage.Constants.CardType;
import mage.Constants.Outcome; import mage.Constants.Outcome;
import mage.Constants.Rarity; import mage.Constants.Rarity;
@ -47,6 +46,8 @@ import mage.game.permanent.Permanent;
import mage.players.Player; import mage.players.Player;
import mage.target.TargetPlayer; import mage.target.TargetPlayer;
import java.util.UUID;
/** /**
* *
* @author North * @author North
@ -102,6 +103,7 @@ class StuffyDollChoosePlayerEffect extends OneShotEffect<StuffyDollChoosePlayerE
Permanent permanent = game.getPermanent(source.getSourceId()); Permanent permanent = game.getPermanent(source.getSourceId());
if (player != null && permanent != null) { if (player != null && permanent != null) {
TargetPlayer target = new TargetPlayer(); TargetPlayer target = new TargetPlayer();
target.setRequired(true);
if (player.choose(this.outcome, target, source.getId(), game)) { if (player.choose(this.outcome, target, source.getId(), game)) {
Player chosenPlayer = game.getPlayer(target.getFirstTarget()); Player chosenPlayer = game.getPlayer(target.getFirstTarget());
if (chosenPlayer != null) { if (chosenPlayer != null) {