[Simulated AI] Get target candidates from the SA that requires targets, rather than the root one.

This makes sense correct target restrictions are used.
This commit is contained in:
Myrd
2016-12-29 06:44:14 +00:00
parent 1d1b94e757
commit c67a809367

View File

@@ -70,7 +70,7 @@ public class PossibleTargetSelector {
maxTargets = tgt.getMaxTargets(sa.getHostCard(), targetingSa); maxTargets = tgt.getMaxTargets(sa.getHostCard(), targetingSa);
SimilarTargetSkipper skipper = new SimilarTargetSkipper(); SimilarTargetSkipper skipper = new SimilarTargetSkipper();
for (GameObject o : tgt.getAllCandidates(sa, true)) { for (GameObject o : tgt.getAllCandidates(targetingSa, true)) {
if (maxTargets == 1 && skipper.shouldSkipTarget(o)) { if (maxTargets == 1 && skipper.shouldSkipTarget(o)) {
continue; continue;
} }