mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Better version of the previous fix.
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user