mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
[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:
@@ -70,7 +70,7 @@ public class PossibleTargetSelector {
|
||||
maxTargets = tgt.getMaxTargets(sa.getHostCard(), targetingSa);
|
||||
|
||||
SimilarTargetSkipper skipper = new SimilarTargetSkipper();
|
||||
for (GameObject o : tgt.getAllCandidates(sa, true)) {
|
||||
for (GameObject o : tgt.getAllCandidates(targetingSa, true)) {
|
||||
if (maxTargets == 1 && skipper.shouldSkipTarget(o)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user