- Prevent an infinite loop when trying to process PumpAllAi in predictSpellToCastInMain2.

This commit is contained in:
Agetian
2014-09-19 03:54:36 +00:00
parent 824cee4632
commit 9564fba6f2

View File

@@ -647,7 +647,7 @@ public class AiController {
Collections.sort(all, saComparator); // put best spells first
for (final SpellAbility sa : getOriginalAndAltCostAbilities(all)) {
if (sa.getApi() == ApiType.Counter || sa.getApi() == exceptSA) {
if (sa.getApi() == ApiType.Counter || sa.getApi() == exceptSA || (exceptSA == ApiType.Pump && sa.getApi() == ApiType.PumpAll)) {
continue;
}
sa.setActivatingPlayer(player);