mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
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:
@@ -1125,7 +1125,7 @@ public class ChangeZoneAi extends SpellAbilityAi {
|
|||||||
// the Unless cost (for example, Erratic Portal)
|
// the Unless cost (for example, Erratic Portal)
|
||||||
list.removeAll(getSafeTargetsIfUnlessCostPaid(ai, sa, list));
|
list.removeAll(getSafeTargetsIfUnlessCostPaid(ai, sa, list));
|
||||||
|
|
||||||
if (!mandatory && sa.isTargetNumberValid()) {
|
if (!mandatory && list.size() < sa.getTargetRestrictions().getMinTargets(sa.getHostCard(), sa)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user