- Prevented playSpellAbilities from creating infinite loops.

This commit is contained in:
Sloth
2013-03-02 12:29:46 +00:00
parent 613dd2bac1
commit 846507ef40

View File

@@ -162,7 +162,9 @@ public class AiInputCommon extends Input {
sa = computer.getSpellAbilityToPlay(); sa = computer.getSpellAbilityToPlay();
if ( sa == null ) break; if ( sa == null ) break;
//System.out.println("Playing sa: " + sa); //System.out.println("Playing sa: " + sa);
ComputerUtil.handlePlayingSpellAbility(player, sa, game); if (!ComputerUtil.handlePlayingSpellAbility(player, sa, game)) {
break;
}
} while ( sa != null ); } while ( sa != null );
} }