Applied AI fix to ComputerPlayer6.

This commit is contained in:
magenoxx 2011-03-06 02:18:28 +03:00
parent 93496b38c5
commit e44d8482af

View file

@ -452,6 +452,11 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
List<Ability> allActions = currentPlayer.simulatePriority(game, filter);
logger.debug("simulating -- adding " + allActions.size() + " children:" + allActions);
for (Ability action: allActions) {
if (Thread.interrupted()) {
Thread.currentThread().interrupt();
logger.debug("interrupted");
break;
}
Game sim = game.copy();
if (sim.getPlayer(currentPlayer.getId()).activateAbility((ActivatedAbility) action.copy(), sim)) {
sim.applyEffects();