Merge branch 'master' into 'master'

Fix the AI failing to bounce stuff e.g. with Riddlemaster Sphinx

See merge request core-developers/forge!3838
This commit is contained in:
Michael Kamensky
2021-02-14 19:53:56 +00:00

View File

@@ -1125,7 +1125,7 @@ public class ChangeZoneAi extends SpellAbilityAi {
// the Unless cost (for example, Erratic Portal)
list.removeAll(getSafeTargetsIfUnlessCostPaid(ai, sa, list));
if (!mandatory && sa.isTargetNumberValid()) {
if (!mandatory && list.size() < sa.getTargetRestrictions().getMinTargets(sa.getHostCard(), sa)) {
return false;
}