condition for no targets is target.size() == 1 due to automatic addition of MagicTargetNone

master
melvin 2013-02-17 10:45:45 +08:00
parent 8a1f8b686b
commit eeee24379b
1 changed files with 2 additions and 2 deletions

View File

@ -454,8 +454,8 @@ public class MagicTargetChoice extends MagicChoice {
final MagicPlayer player,
final MagicSource source) {
Collection<MagicTarget> targets = game.getLegalTargets(player,source,this,targetHint);
// try without hint
if (targets.isEmpty() && targetHint != MagicTargetHint.None) {
// disregard hint if only target is MagicTargetNone
if (targets.size() == 1 && targetHint != MagicTargetHint.None) {
targets = game.getLegalTargets(player,source,this,MagicTargetHint.None);
}
if (game.getFastChoices()) {