Merge branch 'master' into 'master'

Fix AI activating ChangeZone with ChangeType when the change list is empty

See merge request core-developers/forge!5899
This commit is contained in:
Michael Kamensky
2021-11-30 06:39:29 +00:00

View File

@@ -379,7 +379,7 @@ public class ChangeZoneAi extends SpellAbilityAi {
list = CardLists.getValidCards(list, type, source.getController(), source, sa); list = CardLists.getValidCards(list, type, source.getController(), source, sa);
} }
if (!activateForCost && list.isEmpty()) { if (!activateForCost || list.isEmpty()) {
return false; return false;
} }
if ("Atarka's Command".equals(sourceName) if ("Atarka's Command".equals(sourceName)