- A better comment in ChangeZoneAi

This commit is contained in:
Agetian
2015-09-21 16:37:58 +00:00
parent 723a607c9f
commit 147c7263d5

View File

@@ -1021,7 +1021,7 @@ public class ChangeZoneAi extends SpellAbilityAi {
} }
} }
// if max CMC exceeded, stop choosing // if max CMC exceeded, do not choose this card (but keep looking for other options)
if (sa.hasParam("MaxTotalTargetCMC")) { if (sa.hasParam("MaxTotalTargetCMC")) {
if (choice.getCMC() > sa.getTargetRestrictions().getMaxTotalCMC(choice, sa) - sa.getTargets().getTotalTargetedCMC()) { if (choice.getCMC() > sa.getTargetRestrictions().getMaxTotalCMC(choice, sa) - sa.getTargets().getTotalTargetedCMC()) {
list.remove(choice); list.remove(choice);