mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Prevent an infinite loop when trying to process PumpAllAi in predictSpellToCastInMain2.
This commit is contained in:
@@ -647,7 +647,7 @@ public class AiController {
|
|||||||
Collections.sort(all, saComparator); // put best spells first
|
Collections.sort(all, saComparator); // put best spells first
|
||||||
|
|
||||||
for (final SpellAbility sa : getOriginalAndAltCostAbilities(all)) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
sa.setActivatingPlayer(player);
|
sa.setActivatingPlayer(player);
|
||||||
|
|||||||
Reference in New Issue
Block a user