mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Prevented playSpellAbilities from creating infinite loops.
This commit is contained in:
@@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user