- Better version of the previous fix.

This commit is contained in:
Agetian
2014-09-28 13:47:49 +00:00
parent cb93455530
commit 0c09cdbbe0

View File

@@ -133,7 +133,9 @@ public class TargetSelection {
//if only one valid target card for triggered ability, auto-target that card //if only one valid target card for triggered ability, auto-target that card
//only do this for triggered abilities to prevent auto-targeting when user chooses //only do this for triggered abilities to prevent auto-targeting when user chooses
//to play a spell or activat an ability //to play a spell or activat an ability
tgt.addDividedAllocation(validTargets.get(0), tgt.getStillToDivide()); if (tgt.isDividedAsYouChoose()) {
tgt.addDividedAllocation(validTargets.get(0), tgt.getStillToDivide());
}
return ability.getTargets().add(validTargets.get(0)); return ability.getTargets().add(validTargets.get(0));
} }
final Map<PlayerView, Object> playersWithValidTargets = Maps.newHashMap(); final Map<PlayerView, Object> playersWithValidTargets = Maps.newHashMap();